diff --git "a/train_dataset.jsonl" "b/train_dataset.jsonl" --- "a/train_dataset.jsonl" +++ "b/train_dataset.jsonl" @@ -14,8 +14,8 @@ {"db_id": "department_management", "question": "List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.", "schema": "department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)", "summarized-schema": "head : born_state (text) , head_id (number) , name (text) , head_id (number) | department : department_id (number) , name (text) , department_id (number) | management : department_id (number) , head_id (number) , department_id (number)"} {"db_id": "department_management", "question": "Which department has more than 1 head at a time? List the id, name and the number of heads.", "schema": "department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)", "summarized-schema": "department : department_id (number) , name (text) , department_id (number) | management : department_id (number) , department_id (number) | head : name (text) , head_id (number)"} {"db_id": "department_management", "question": "Which head's name has the substring 'Ha'? List the id and name.", "schema": "department : department_id (number) , name (text) , creation (text) , ranking (number) , budget_in_billions (number) , num_employees (number) | head : head_id (number) , name (text) , born_state (text) , age (number) | management : department_id (number) , head_id (number) , temporary_acting (text)", "summarized-schema": "head : head_id (number) , name (text) , head_id (number) | management : head_id (number) , department_id (number) | department : name (text) , department_id (number)"} -{"db_id": "farm", "question": "How many farms are there?", "schema": "city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)", "summarized-schema": ""} -{"db_id": "farm", "question": "Count the number of farms.", "schema": "city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)", "summarized-schema": ""} +{"db_id": "farm", "question": "How many farms are there?", "schema": "city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)", "summarized-schema": "farm : farm_id (number)"} +{"db_id": "farm", "question": "Count the number of farms.", "schema": "city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)", "summarized-schema": "farm : farm_id (number)"} {"db_id": "farm", "question": "List the total number of horses on farms in ascending order.", "schema": "city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)", "summarized-schema": "farm : total_horses (number) , farm_id (number)"} {"db_id": "farm", "question": "What is the total horses record for each farm, sorted ascending?", "schema": "city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)", "summarized-schema": "farm : total_horses (number) , farm_id (number)"} {"db_id": "farm", "question": "What are the hosts of competitions whose theme is not \"Aliens\"?", "schema": "city : city_id (number) , official_name (text) , status (text) , area_km_2 (number) , population (number) , census_ranking (text) | farm : farm_id (number) , year (number) , total_horses (number) , working_horses (number) , total_cattle (number) , oxen (number) , bulls (number) , cows (number) , pigs (number) , sheep_and_goats (number) | farm_competition : competition_id (number) , year (number) , theme (text) , host_city_id (number) , hosts (text) | competition_record : competition_id (number) , farm_id (number) , rank (number)", "summarized-schema": "farm_competition : hosts (text) , theme (text) , competition_id (number)"} @@ -211,7 +211,7 @@ {"db_id": "bike_1", "question": "How many trips stated from a station in Mountain View and ended at one in Palo Alto?", "schema": "station : id (number) , name (text) , lat (number) , long (number) , dock_count (number) , city (text) , installation_date (text) | status : station_id (number) , bikes_available (number) , docks_available (number) , time (text) | trip : id (number) , duration (number) , start_date (text) , start_station_name (text) , start_station_id (number) , end_date (text) , end_station_name (text) , end_station_id (number) , bike_id (number) , subscription_type (text) , zip_code (number) | weather : date (text) , max_temperature_f (number) , mean_temperature_f (number) , min_temperature_f (number) , max_dew_point_f (number) , mean_dew_point_f (number) , min_dew_point_f (number) , max_humidity (number) , mean_humidity (number) , min_humidity (number) , max_sea_level_pressure_inches (number) , mean_sea_level_pressure_inches (number) , min_sea_level_pressure_inches (number) , max_visibility_miles (number) , mean_visibility_miles (number) , min_visibility_miles (number) , max_wind_speed_mph (number) , mean_wind_speed_mph (number) , max_gust_speed_mph (number) , precipitation_inches (number) , cloud_cover (number) , events (text) , wind_dir_degrees (number) , zip_code (number)", "summarized-schema": "station : id (number) , city (text) , id (number) | trip : id (number) , start_station_id (number) , end_station_id (number) , id (number)"} {"db_id": "bike_1", "question": "What is the average latitude and longitude of the starting points of all trips?", "schema": "station : id (number) , name (text) , lat (number) , long (number) , dock_count (number) , city (text) , installation_date (text) | status : station_id (number) , bikes_available (number) , docks_available (number) , time (text) | trip : id (number) , duration (number) , start_date (text) , start_station_name (text) , start_station_id (number) , end_date (text) , end_station_name (text) , end_station_id (number) , bike_id (number) , subscription_type (text) , zip_code (number) | weather : date (text) , max_temperature_f (number) , mean_temperature_f (number) , min_temperature_f (number) , max_dew_point_f (number) , mean_dew_point_f (number) , min_dew_point_f (number) , max_humidity (number) , mean_humidity (number) , min_humidity (number) , max_sea_level_pressure_inches (number) , mean_sea_level_pressure_inches (number) , min_sea_level_pressure_inches (number) , max_visibility_miles (number) , mean_visibility_miles (number) , min_visibility_miles (number) , max_wind_speed_mph (number) , mean_wind_speed_mph (number) , max_gust_speed_mph (number) , precipitation_inches (number) , cloud_cover (number) , events (text) , wind_dir_degrees (number) , zip_code (number)", "summarized-schema": "station : lat (number) , long (number) , id (number) , id (number) | trip : id (number) , start_station_id (number) , id (number)"} {"db_id": "bike_1", "question": "What is the average latitude and longitude of all starting stations for the trips?", "schema": "station : id (number) , name (text) , lat (number) , long (number) , dock_count (number) , city (text) , installation_date (text) | status : station_id (number) , bikes_available (number) , docks_available (number) , time (text) | trip : id (number) , duration (number) , start_date (text) , start_station_name (text) , start_station_id (number) , end_date (text) , end_station_name (text) , end_station_id (number) , bike_id (number) , subscription_type (text) , zip_code (number) | weather : date (text) , max_temperature_f (number) , mean_temperature_f (number) , min_temperature_f (number) , max_dew_point_f (number) , mean_dew_point_f (number) , min_dew_point_f (number) , max_humidity (number) , mean_humidity (number) , min_humidity (number) , max_sea_level_pressure_inches (number) , mean_sea_level_pressure_inches (number) , min_sea_level_pressure_inches (number) , max_visibility_miles (number) , mean_visibility_miles (number) , min_visibility_miles (number) , max_wind_speed_mph (number) , mean_wind_speed_mph (number) , max_gust_speed_mph (number) , precipitation_inches (number) , cloud_cover (number) , events (text) , wind_dir_degrees (number) , zip_code (number)", "summarized-schema": "station : lat (number) , long (number) , id (number) , id (number) | trip : id (number) , start_station_id (number) , id (number)"} -{"db_id": "book_2", "question": "How many books are there?", "schema": "publication : publication_id (number) , book_id (number) , publisher (text) , publication_date (text) , price (number) | book : book_id (number) , title (text) , issues (number) , writer (text)", "summarized-schema": ""} +{"db_id": "book_2", "question": "How many books are there?", "schema": "publication : publication_id (number) , book_id (number) , publisher (text) , publication_date (text) , price (number) | book : book_id (number) , title (text) , issues (number) , writer (text)", "summarized-schema": "book : book_id (number)"} {"db_id": "book_2", "question": "List the writers of the books in ascending alphabetical order.", "schema": "publication : publication_id (number) , book_id (number) , publisher (text) , publication_date (text) , price (number) | book : book_id (number) , title (text) , issues (number) , writer (text)", "summarized-schema": "book : writer (text) , book_id (number)"} {"db_id": "book_2", "question": "List the titles of the books in ascending order of issues.", "schema": "publication : publication_id (number) , book_id (number) , publisher (text) , publication_date (text) , price (number) | book : book_id (number) , title (text) , issues (number) , writer (text)", "summarized-schema": "book : title (text) , issues (number) , book_id (number)"} {"db_id": "book_2", "question": "What are the titles of the books whose writer is not \"Elaine Lee\"?", "schema": "publication : publication_id (number) , book_id (number) , publisher (text) , publication_date (text) , price (number) | book : book_id (number) , title (text) , issues (number) , writer (text)", "summarized-schema": "book : title (text) , writer (text) , book_id (number)"} @@ -232,8 +232,8 @@ {"db_id": "book_2", "question": "What is the number of distinct publication dates?", "schema": "publication : publication_id (number) , book_id (number) , publisher (text) , publication_date (text) , price (number) | book : book_id (number) , title (text) , issues (number) , writer (text)", "summarized-schema": "publication : publication_date (text) , publication_id (number)"} {"db_id": "book_2", "question": "How many distinct publication dates are there in our record?", "schema": "publication : publication_id (number) , book_id (number) , publisher (text) , publication_date (text) , price (number) | book : book_id (number) , title (text) , issues (number) , writer (text)", "summarized-schema": "publication : publication_date (text) , publication_id (number)"} {"db_id": "book_2", "question": "Show the prices of publications whose publisher is either \"Person\" or \"Wiley\"", "schema": "publication : publication_id (number) , book_id (number) , publisher (text) , publication_date (text) , price (number) | book : book_id (number) , title (text) , issues (number) , writer (text)", "summarized-schema": "publication : price (number) , publisher (text) , publication_id (number)"} -{"db_id": "musical", "question": "How many actors are there?", "schema": "musical : musical_id (number) , name (text) , year (number) , award (text) , category (text) , nominee (text) , result (text) | actor : actor_id (number) , name (text) , musical_id (number) , character (text) , duration (text) , age (number)", "summarized-schema": ""} -{"db_id": "musical", "question": "Count the number of actors.", "schema": "musical : musical_id (number) , name (text) , year (number) , award (text) , category (text) , nominee (text) , result (text) | actor : actor_id (number) , name (text) , musical_id (number) , character (text) , duration (text) , age (number)", "summarized-schema": ""} +{"db_id": "musical", "question": "How many actors are there?", "schema": "musical : musical_id (number) , name (text) , year (number) , award (text) , category (text) , nominee (text) , result (text) | actor : actor_id (number) , name (text) , musical_id (number) , character (text) , duration (text) , age (number)", "summarized-schema": "actor : actor_id (number)"} +{"db_id": "musical", "question": "Count the number of actors.", "schema": "musical : musical_id (number) , name (text) , year (number) , award (text) , category (text) , nominee (text) , result (text) | actor : actor_id (number) , name (text) , musical_id (number) , character (text) , duration (text) , age (number)", "summarized-schema": "actor : actor_id (number)"} {"db_id": "musical", "question": "List the name of actors in ascending alphabetical order.", "schema": "musical : musical_id (number) , name (text) , year (number) , award (text) , category (text) , nominee (text) , result (text) | actor : actor_id (number) , name (text) , musical_id (number) , character (text) , duration (text) , age (number)", "summarized-schema": "musical : name (text) , musical_id (number) | actor : name (text) , actor_id (number)"} {"db_id": "musical", "question": "What are the names of actors, ordered alphabetically?", "schema": "musical : musical_id (number) , name (text) , year (number) , award (text) , category (text) , nominee (text) , result (text) | actor : actor_id (number) , name (text) , musical_id (number) , character (text) , duration (text) , age (number)", "summarized-schema": "musical : name (text) , musical_id (number) | actor : name (text) , actor_id (number)"} {"db_id": "musical", "question": "What are the characters and duration of actors?", "schema": "musical : musical_id (number) , name (text) , year (number) , award (text) , category (text) , nominee (text) , result (text) | actor : actor_id (number) , name (text) , musical_id (number) , character (text) , duration (text) , age (number)", "summarized-schema": "actor : character (text) , duration (text) , actor_id (number)"} @@ -274,10 +274,10 @@ {"db_id": "musical", "question": "Who are the nominees who were nominated for either of the Bob Fosse or Cleavant Derricks awards?", "schema": "musical : musical_id (number) , name (text) , year (number) , award (text) , category (text) , nominee (text) , result (text) | actor : actor_id (number) , name (text) , musical_id (number) , character (text) , duration (text) , age (number)", "summarized-schema": "musical : nominee (text) , award (text) , musical_id (number)"} {"db_id": "twitter_1", "question": "Find the emails of the user named \"Mary\".", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": "user_profiles : email (text) , name (text) , uid (number)"} {"db_id": "twitter_1", "question": "What is the partition id of the user named \"Iron Man\".", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": "user_profiles : partitionid (number) , name (text) , uid (number)"} -{"db_id": "twitter_1", "question": "How many users are there?", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": ""} -{"db_id": "twitter_1", "question": "How many followers does each user have?", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": ""} -{"db_id": "twitter_1", "question": "Find the number of followers for each user.", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": ""} -{"db_id": "twitter_1", "question": "Find the number of tweets in record.", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": ""} +{"db_id": "twitter_1", "question": "How many users are there?", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": "user_profiles : uid (number)"} +{"db_id": "twitter_1", "question": "How many followers does each user have?", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": "follows : f1 (number)"} +{"db_id": "twitter_1", "question": "Find the number of followers for each user.", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": "follows : f1 (number)"} +{"db_id": "twitter_1", "question": "Find the number of tweets in record.", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": "tweets : id (number)"} {"db_id": "twitter_1", "question": "Find the number of users who posted some tweets.", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": "tweets : uid (number) , id (number) | user_profiles : uid (number) , uid (number)"} {"db_id": "twitter_1", "question": "Find the name and email of the user whose name contains the word \u2018Swift\u2019.", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": "user_profiles : name (text) , email (text) , uid (number)"} {"db_id": "twitter_1", "question": "Find the names of users whose emails contain \u2018superstar\u2019 or \u2018edu\u2019.", "schema": "follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)", "summarized-schema": "user_profiles : name (text) , email (text) , uid (number)"} @@ -337,12 +337,12 @@ {"db_id": "product_catalog", "question": "Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities.", "schema": "attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)", "summarized-schema": "catalog_contents : catalog_entry_name (text) , capacity (text) , price_in_dollars (number) , catalog_entry_id (number)"} {"db_id": "product_catalog", "question": "Find the dates on which more than one revisions were made.", "schema": "attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)", "summarized-schema": "catalogs : date_of_latest_revision (time) , catalog_id (number)"} {"db_id": "product_catalog", "question": "On which days more than one revisions were made on catalogs.", "schema": "attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)", "summarized-schema": "catalogs : date_of_latest_revision (time) , catalog_id (number)"} -{"db_id": "product_catalog", "question": "How many products are there in the records?", "schema": "attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)", "summarized-schema": ""} -{"db_id": "product_catalog", "question": "Find the total number of catalog contents.", "schema": "attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)", "summarized-schema": ""} +{"db_id": "product_catalog", "question": "How many products are there in the records?", "schema": "attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)", "summarized-schema": "catalog_contents : catalog_entry_id (number)"} +{"db_id": "product_catalog", "question": "Find the total number of catalog contents.", "schema": "attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)", "summarized-schema": "catalog_contents : catalog_entry_id (number)"} {"db_id": "product_catalog", "question": "Name all the products with next entry ID greater than 8.", "schema": "attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)", "summarized-schema": "catalog_contents : catalog_entry_name (text) , next_entry_id (number) , catalog_entry_id (number)"} {"db_id": "product_catalog", "question": "What are the catalog entry names of the products with next entry ID above 8?", "schema": "attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)", "summarized-schema": "catalog_contents : catalog_entry_name (text) , next_entry_id (number) , catalog_entry_id (number)"} -{"db_id": "flight_1", "question": "How many aircrafts do we have?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": ""} -{"db_id": "flight_1", "question": "How many aircrafts exist in the database?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": ""} +{"db_id": "flight_1", "question": "How many aircrafts do we have?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : aid (number)"} +{"db_id": "flight_1", "question": "How many aircrafts exist in the database?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : aid (number)"} {"db_id": "flight_1", "question": "Show name and distance for all aircrafts.", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : name (text) , distance (number) , aid (number) | employee : name (text) , eid (number) | flight : distance (number) , flno (number)"} {"db_id": "flight_1", "question": "What are the names and distances for all airplanes?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : name (text) , distance (number) , aid (number) | employee : name (text) , eid (number) | flight : distance (number) , flno (number)"} {"db_id": "flight_1", "question": "Show ids for all aircrafts with more than 1000 distance.", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "flight : aid (number) , distance (number) , flno (number) | aircraft : aid (number) , distance (number) , aid (number) | certificate : aid (number) , eid (number)"} @@ -359,8 +359,8 @@ {"db_id": "flight_1", "question": "What are the aircrafts with top 3 shortest lengthes? List their names.", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : name (text) , distance (number) , aid (number) | employee : name (text) , eid (number) | flight : distance (number) , flno (number)"} {"db_id": "flight_1", "question": "Show names for all aircrafts with distances more than the average.", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : name (text) , distance (number) , aid (number) | employee : name (text) , eid (number) | flight : distance (number) , flno (number)"} {"db_id": "flight_1", "question": "What are the names of all aircrafts that can cover more distances than average?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : name (text) , distance (number) , aid (number) | employee : name (text) , eid (number) | flight : distance (number) , flno (number)"} -{"db_id": "flight_1", "question": "How many employees do we have?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": ""} -{"db_id": "flight_1", "question": "What is the number of employees?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": ""} +{"db_id": "flight_1", "question": "How many employees do we have?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "employee : eid (number)"} +{"db_id": "flight_1", "question": "What is the number of employees?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "employee : eid (number)"} {"db_id": "flight_1", "question": "Show name and salary for all employees sorted by salary.", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : name (text) , aid (number) | employee : name (text) , salary (number) , eid (number)"} {"db_id": "flight_1", "question": "What is the name and salary of all employees in order of salary?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : name (text) , aid (number) | employee : name (text) , salary (number) , eid (number)"} {"db_id": "flight_1", "question": "Show ids for all employees with at least 100000 salary.", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "employee : eid (number) , salary (number) , eid (number) | certificate : eid (number) , eid (number)"} @@ -379,8 +379,8 @@ {"db_id": "flight_1", "question": "What are the names of all employees who have a salary higher than average?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "aircraft : name (text) , aid (number) | employee : name (text) , salary (number) , eid (number)"} {"db_id": "flight_1", "question": "Show the id and salary of Mark Young.", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "employee : eid (number) , salary (number) , name (text) , eid (number) | certificate : eid (number) , eid (number) | aircraft : name (text) , aid (number)"} {"db_id": "flight_1", "question": "What is the id and salary of the employee named Mark Young?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "employee : eid (number) , salary (number) , name (text) , eid (number) | certificate : eid (number) , eid (number) | aircraft : name (text) , aid (number)"} -{"db_id": "flight_1", "question": "How many flights do we have?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": ""} -{"db_id": "flight_1", "question": "What is the number of flights?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": ""} +{"db_id": "flight_1", "question": "How many flights do we have?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "flight : flno (number)"} +{"db_id": "flight_1", "question": "What is the number of flights?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "flight : flno (number)"} {"db_id": "flight_1", "question": "Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "flight : flno (number) , origin (text) , destination (text) , flno (number)"} {"db_id": "flight_1", "question": "What is the flight number, origin, and destination for all flights in alphabetical order by departure cities?", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "flight : flno (number) , origin (text) , destination (text) , flno (number)"} {"db_id": "flight_1", "question": "Show all flight number from Los Angeles.", "schema": "flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)", "summarized-schema": "flight : flno (number) , origin (text) , flno (number)"} @@ -457,8 +457,8 @@ {"db_id": "allergy_1", "question": "Which allergy type is most common?", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": "allergy_type : allergytype (text) , allergy (number)"} {"db_id": "allergy_1", "question": "Which allergy type has least number of allergies?", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": "allergy_type : allergytype (text) , allergy (number)"} {"db_id": "allergy_1", "question": "Which allergy type is the least common?", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": "allergy_type : allergytype (text) , allergy (number)"} -{"db_id": "allergy_1", "question": "How many students are there?", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": ""} -{"db_id": "allergy_1", "question": "What is the total number of students?", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": ""} +{"db_id": "allergy_1", "question": "How many students are there?", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": "student : stuid (number)"} +{"db_id": "allergy_1", "question": "What is the total number of students?", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": "student : stuid (number)"} {"db_id": "allergy_1", "question": "Show first name and last name for all students.", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": "student : fname (text) , lname (text) , stuid (number)"} {"db_id": "allergy_1", "question": "What are the full names of all students", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": "student : fname (text) , lname (text) , stuid (number)"} {"db_id": "allergy_1", "question": "How many different advisors are listed?", "schema": "allergy_type : allergy (text) , allergytype (text) | has_allergy : stuid (number) , allergy (text) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text)", "summarized-schema": "student : advisor (number) , stuid (number)"} @@ -647,7 +647,7 @@ {"db_id": "store_1", "question": "What are the names of all the tracks that are in both the Movies and music playlists?", "schema": "artists : id (number) , name (text) | sqlite_sequence : name (text) , seq (text) | albums : id (number) , title (text) , artist_id (number) | employees : id (number) , last_name (text) , first_name (text) , title (text) , reports_to (number) , birth_date (time) , hire_date (time) , address (text) , city (text) , state (text) , country (text) , postal_code (text) , phone (text) , fax (text) , email (text) | customers : id (number) , first_name (text) , last_name (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postal_code (text) , phone (text) , fax (text) , email (text) , support_rep_id (number) | genres : id (number) , name (text) | invoices : id (number) , customer_id (number) , invoice_date (time) , billing_address (text) , billing_city (text) , billing_state (text) , billing_country (text) , billing_postal_code (text) , total (number) | media_types : id (number) , name (text) | tracks : id (number) , name (text) , album_id (number) , media_type_id (number) , genre_id (number) , composer (text) , milliseconds (number) , bytes (number) , unit_price (number) | invoice_lines : id (number) , invoice_id (number) , track_id (number) , unit_price (number) , quantity (number) | playlists : id (number) , name (text) | playlist_tracks : playlist_id (number) , track_id (number)", "summarized-schema": "artists : name (text) , id (number) , id (number) | sqlite_sequence : name (text) | genres : name (text) , id (number) , id (number) | media_types : name (text) , id (number) , id (number) | tracks : name (text) , id (number) , id (number) | playlists : name (text) , id (number) , id (number) | albums : id (number) , id (number) | employees : id (number) , id (number) | customers : id (number) , id (number) | invoices : id (number) , id (number) | invoice_lines : id (number) , track_id (number) , id (number) | playlist_tracks : track_id (number) , playlist_id (number) , playlist_id (number)"} {"db_id": "store_1", "question": "Find number of tracks in each genre?", "schema": "artists : id (number) , name (text) | sqlite_sequence : name (text) , seq (text) | albums : id (number) , title (text) , artist_id (number) | employees : id (number) , last_name (text) , first_name (text) , title (text) , reports_to (number) , birth_date (time) , hire_date (time) , address (text) , city (text) , state (text) , country (text) , postal_code (text) , phone (text) , fax (text) , email (text) | customers : id (number) , first_name (text) , last_name (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postal_code (text) , phone (text) , fax (text) , email (text) , support_rep_id (number) | genres : id (number) , name (text) | invoices : id (number) , customer_id (number) , invoice_date (time) , billing_address (text) , billing_city (text) , billing_state (text) , billing_country (text) , billing_postal_code (text) , total (number) | media_types : id (number) , name (text) | tracks : id (number) , name (text) , album_id (number) , media_type_id (number) , genre_id (number) , composer (text) , milliseconds (number) , bytes (number) , unit_price (number) | invoice_lines : id (number) , invoice_id (number) , track_id (number) , unit_price (number) , quantity (number) | playlists : id (number) , name (text) | playlist_tracks : playlist_id (number) , track_id (number)", "summarized-schema": "artists : name (text) , id (number) , id (number) | sqlite_sequence : name (text) | genres : name (text) , id (number) , id (number) | media_types : name (text) , id (number) , id (number) | tracks : name (text) , id (number) , genre_id (number) , id (number) | playlists : name (text) , id (number) , id (number) | albums : id (number) , id (number) | employees : id (number) , id (number) | customers : id (number) , id (number) | invoices : id (number) , id (number) | invoice_lines : id (number) , id (number)"} {"db_id": "store_1", "question": "How many tracks are in each genre?", "schema": "artists : id (number) , name (text) | sqlite_sequence : name (text) , seq (text) | albums : id (number) , title (text) , artist_id (number) | employees : id (number) , last_name (text) , first_name (text) , title (text) , reports_to (number) , birth_date (time) , hire_date (time) , address (text) , city (text) , state (text) , country (text) , postal_code (text) , phone (text) , fax (text) , email (text) | customers : id (number) , first_name (text) , last_name (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postal_code (text) , phone (text) , fax (text) , email (text) , support_rep_id (number) | genres : id (number) , name (text) | invoices : id (number) , customer_id (number) , invoice_date (time) , billing_address (text) , billing_city (text) , billing_state (text) , billing_country (text) , billing_postal_code (text) , total (number) | media_types : id (number) , name (text) | tracks : id (number) , name (text) , album_id (number) , media_type_id (number) , genre_id (number) , composer (text) , milliseconds (number) , bytes (number) , unit_price (number) | invoice_lines : id (number) , invoice_id (number) , track_id (number) , unit_price (number) , quantity (number) | playlists : id (number) , name (text) | playlist_tracks : playlist_id (number) , track_id (number)", "summarized-schema": "artists : name (text) , id (number) , id (number) | sqlite_sequence : name (text) | genres : name (text) , id (number) , id (number) | media_types : name (text) , id (number) , id (number) | tracks : name (text) , id (number) , genre_id (number) , id (number) | playlists : name (text) , id (number) , id (number) | albums : id (number) , id (number) | employees : id (number) , id (number) | customers : id (number) , id (number) | invoices : id (number) , id (number) | invoice_lines : id (number) , id (number)"} -{"db_id": "journal_committee", "question": "How many editors are there?", "schema": "journal : journal_id (number) , date (text) , theme (text) , sales (number) | editor : editor_id (number) , name (text) , age (number) | journal_committee : editor_id (number) , journal_id (number) , work_type (text)", "summarized-schema": ""} +{"db_id": "journal_committee", "question": "How many editors are there?", "schema": "journal : journal_id (number) , date (text) , theme (text) , sales (number) | editor : editor_id (number) , name (text) , age (number) | journal_committee : editor_id (number) , journal_id (number) , work_type (text)", "summarized-schema": "editor : editor_id (number)"} {"db_id": "journal_committee", "question": "List the names of editors in ascending order of age.", "schema": "journal : journal_id (number) , date (text) , theme (text) , sales (number) | editor : editor_id (number) , name (text) , age (number) | journal_committee : editor_id (number) , journal_id (number) , work_type (text)", "summarized-schema": "editor : name (text) , age (number) , editor_id (number)"} {"db_id": "journal_committee", "question": "What are the names and ages of editors?", "schema": "journal : journal_id (number) , date (text) , theme (text) , sales (number) | editor : editor_id (number) , name (text) , age (number) | journal_committee : editor_id (number) , journal_id (number) , work_type (text)", "summarized-schema": "editor : name (text) , age (number) , editor_id (number)"} {"db_id": "journal_committee", "question": "List the names of editors who are older than 25.", "schema": "journal : journal_id (number) , date (text) , theme (text) , sales (number) | editor : editor_id (number) , name (text) , age (number) | journal_committee : editor_id (number) , journal_id (number) , work_type (text)", "summarized-schema": "editor : name (text) , age (number) , editor_id (number)"} @@ -665,8 +665,8 @@ {"db_id": "journal_committee", "question": "List the names of editors that are not on any journal committee.", "schema": "journal : journal_id (number) , date (text) , theme (text) , sales (number) | editor : editor_id (number) , name (text) , age (number) | journal_committee : editor_id (number) , journal_id (number) , work_type (text)", "summarized-schema": "editor : name (text) , editor_id (number) , editor_id (number) | journal_committee : editor_id (number) , editor_id (number)"} {"db_id": "journal_committee", "question": "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.", "schema": "journal : journal_id (number) , date (text) , theme (text) , sales (number) | editor : editor_id (number) , name (text) , age (number) | journal_committee : editor_id (number) , journal_id (number) , work_type (text)", "summarized-schema": "journal : date (text) , theme (text) , sales (number) , journal_id (number) , journal_id (number) | journal_committee : journal_id (number) , editor_id (number)"} {"db_id": "journal_committee", "question": "What is the average sales of the journals that have an editor whose work type is 'Photo'?", "schema": "journal : journal_id (number) , date (text) , theme (text) , sales (number) | editor : editor_id (number) , name (text) , age (number) | journal_committee : editor_id (number) , journal_id (number) , work_type (text)", "summarized-schema": "journal : sales (number) , journal_id (number) , journal_id (number) | journal_committee : journal_id (number) , work_type (text) , editor_id (number)"} -{"db_id": "customers_card_transactions", "question": "How many accounts do we have?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": ""} -{"db_id": "customers_card_transactions", "question": "Count the number of accounts.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": ""} +{"db_id": "customers_card_transactions", "question": "How many accounts do we have?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : account_id (number)"} +{"db_id": "customers_card_transactions", "question": "Count the number of accounts.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : account_id (number)"} {"db_id": "customers_card_transactions", "question": "Show ids, customer ids, names for all accounts.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , account_id (number) | financial_transactions : account_id (number) | customers : customer_id (number) , customer_id (number) | customers_cards : customer_id (number) , card_id (number)"} {"db_id": "customers_card_transactions", "question": "What are the account ids, customer ids, and account names for all the accounts?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , account_id (number) | financial_transactions : account_id (number) | customers : customer_id (number) , customer_id (number) | customers_cards : customer_id (number) , card_id (number)"} {"db_id": "customers_card_transactions", "question": "Show other account details for account with name 338.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : other_account_details (text) , account_name (text) , account_id (number)"} @@ -689,14 +689,14 @@ {"db_id": "customers_card_transactions", "question": "What are the full names of customers who have accounts?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers : customer_first_name (text) , customer_last_name (text) , customer_id (number) , customer_id (number) | accounts : customer_id (number) , account_id (number) | customers_cards : customer_id (number) , card_id (number)"} {"db_id": "customers_card_transactions", "question": "How many customers have an account?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : customer_id (number) , account_id (number) | customers : customer_id (number) , customer_id (number) | customers_cards : customer_id (number) , card_id (number)"} {"db_id": "customers_card_transactions", "question": "Count the number of customers who hold an account.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : customer_id (number) , account_id (number) | customers : customer_id (number) , customer_id (number) | customers_cards : customer_id (number) , card_id (number)"} -{"db_id": "customers_card_transactions", "question": "How many customers do we have?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": ""} -{"db_id": "customers_card_transactions", "question": "Count the number of customers.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": ""} +{"db_id": "customers_card_transactions", "question": "How many customers do we have?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers : customer_id (number)"} +{"db_id": "customers_card_transactions", "question": "Count the number of customers.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers : customer_id (number)"} {"db_id": "customers_card_transactions", "question": "Show ids, first names, last names, and phones for all customers.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : customer_id (number) , account_id (number) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_phone (text) , customer_id (number) | customers_cards : customer_id (number) , card_id (number)"} {"db_id": "customers_card_transactions", "question": "What are the ids, full names, and phones of each customer?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : customer_id (number) , account_id (number) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_phone (text) , customer_id (number) | customers_cards : customer_id (number) , card_id (number)"} {"db_id": "customers_card_transactions", "question": "What is the phone and email for customer with first name Aniyah and last name Feest?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers : customer_phone (text) , customer_email (text) , customer_first_name (text) , customer_last_name (text) , customer_id (number)"} {"db_id": "customers_card_transactions", "question": "Return the phone and email of the customer with the first name Aniyah and last name Feest.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers : customer_phone (text) , customer_email (text) , customer_first_name (text) , customer_last_name (text) , customer_id (number)"} -{"db_id": "customers_card_transactions", "question": "Show the number of customer cards.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": ""} -{"db_id": "customers_card_transactions", "question": "How many customer cards are there?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": ""} +{"db_id": "customers_card_transactions", "question": "Show the number of customer cards.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers_cards : card_id (number)"} +{"db_id": "customers_card_transactions", "question": "How many customer cards are there?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers_cards : card_id (number)"} {"db_id": "customers_card_transactions", "question": "Show ids, customer ids, card type codes, card numbers for all cards.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , card_id (number) | financial_transactions : card_id (number) | accounts : customer_id (number) , account_id (number) | customers : customer_id (number) , customer_id (number)"} {"db_id": "customers_card_transactions", "question": "What are card ids, customer ids, card types, and card numbers for each customer card?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , card_id (number) | financial_transactions : card_id (number) | accounts : customer_id (number) , account_id (number) | customers : customer_id (number) , customer_id (number)"} {"db_id": "customers_card_transactions", "question": "Show the date valid from and the date valid to for the card with card number '4560596484842'.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "customers_cards : date_valid_from (time) , date_valid_to (time) , card_number (text) , card_id (number)"} @@ -745,8 +745,8 @@ {"db_id": "customers_card_transactions", "question": "Return the type of transaction with the highest total amount.", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "financial_transactions : transaction_type (text) , transaction_amount (number)"} {"db_id": "customers_card_transactions", "question": "Show the account id and the number of transactions for each account", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : account_id (number) , account_id (number) | financial_transactions : account_id (number)"} {"db_id": "customers_card_transactions", "question": "What are the different account ids that have made financial transactions, as well as how many transactions correspond to each?", "schema": "accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text)", "summarized-schema": "accounts : account_id (number) , account_id (number) | financial_transactions : account_id (number)"} -{"db_id": "race_track", "question": "How many tracks do we have?", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": ""} -{"db_id": "race_track", "question": "Count the number of tracks.", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": ""} +{"db_id": "race_track", "question": "How many tracks do we have?", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "track : track_id (number)"} +{"db_id": "race_track", "question": "Count the number of tracks.", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "track : track_id (number)"} {"db_id": "race_track", "question": "Show the name and location for all tracks.", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "race : name (text) , race_id (number) | track : name (text) , location (text) , track_id (number)"} {"db_id": "race_track", "question": "What are the names and locations of all tracks?", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "race : name (text) , race_id (number) | track : name (text) , location (text) , track_id (number)"} {"db_id": "race_track", "question": "Show names and seatings, ordered by seating for all tracks opened after 2000.", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "race : name (text) , race_id (number) | track : name (text) , seating (number) , year_opened (number) , track_id (number)"} @@ -759,8 +759,8 @@ {"db_id": "race_track", "question": "What are the names, locations, and years of opening for tracks with seating higher than average?", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "race : name (text) , race_id (number) | track : name (text) , location (text) , year_opened (number) , seating (number) , track_id (number)"} {"db_id": "race_track", "question": "What are distinct locations where tracks are located?", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "track : location (text) , track_id (number)"} {"db_id": "race_track", "question": "Give the different locations of tracks.", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "track : location (text) , track_id (number)"} -{"db_id": "race_track", "question": "How many races are there?", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": ""} -{"db_id": "race_track", "question": "Count the number of races.", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": ""} +{"db_id": "race_track", "question": "How many races are there?", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "race : race_id (number)"} +{"db_id": "race_track", "question": "Count the number of races.", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "race : race_id (number)"} {"db_id": "race_track", "question": "What are the distinct classes that races can have?", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "race : class (text) , race_id (number)"} {"db_id": "race_track", "question": "Return the different classes of races.", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "race : class (text) , race_id (number)"} {"db_id": "race_track", "question": "Show name, class, and date for all races.", "schema": "race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)", "summarized-schema": "race : name (text) , class (text) , date (text) , race_id (number) | track : name (text) , track_id (number)"} @@ -805,8 +805,8 @@ {"db_id": "coffee_shop", "question": "which shop has happy hour most frequently? List its id and number of happy hours.", "schema": "shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)", "summarized-schema": "shop : shop_id (number) , shop_id (number) | happy_hour : shop_id (number) , hh_id (number)"} {"db_id": "coffee_shop", "question": "Which month has the most happy hours?", "schema": "shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)", "summarized-schema": "happy_hour : month (text) , hh_id (number)"} {"db_id": "coffee_shop", "question": "Which months have more than 2 happy hours?", "schema": "shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)", "summarized-schema": "happy_hour : month (text) , hh_id (number)"} -{"db_id": "chinook_1", "question": "How many albums are there?", "schema": "album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)", "summarized-schema": ""} -{"db_id": "chinook_1", "question": "Find the number of albums.", "schema": "album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)", "summarized-schema": ""} +{"db_id": "chinook_1", "question": "How many albums are there?", "schema": "album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)", "summarized-schema": "album : albumid (number)"} +{"db_id": "chinook_1", "question": "Find the number of albums.", "schema": "album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)", "summarized-schema": "album : albumid (number)"} {"db_id": "chinook_1", "question": "List the names of all music genres.", "schema": "album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)", "summarized-schema": "artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)"} {"db_id": "chinook_1", "question": "What are the names of different music genres?", "schema": "album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)", "summarized-schema": "artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)"} {"db_id": "chinook_1", "question": "Find all the customer information in state NY.", "schema": "album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)", "summarized-schema": "customer : state (text) , customerid (number) | employee : state (text) , employeeid (number)"} @@ -915,8 +915,8 @@ {"db_id": "insurance_fnol", "question": "List all the policy types used by the customer enrolled in the most policies.", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "available_policies : policy_type_code (text) , policy_id (number) , policy_id (number) | customers : customer_id (number) , customer_name (text) , customer_id (number) | customers_policies : customer_id (number) , policy_id (number) , customer_id (number) | first_notification_of_loss : customer_id (number) , policy_id (number) , fnol_id (number)"} {"db_id": "insurance_fnol", "question": "List all the services in the alphabetical order.", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "services : service_name (text) , service_id (number)"} {"db_id": "insurance_fnol", "question": "Give me a list of all the service names sorted alphabetically.", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "services : service_name (text) , service_id (number)"} -{"db_id": "insurance_fnol", "question": "How many services are there?", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": ""} -{"db_id": "insurance_fnol", "question": "Count the total number of available services.", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": ""} +{"db_id": "insurance_fnol", "question": "How many services are there?", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "services : service_id (number)"} +{"db_id": "insurance_fnol", "question": "Count the total number of available services.", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "services : service_id (number)"} {"db_id": "insurance_fnol", "question": "Find the names of users who do not have a first notification of loss record.", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "customers : customer_name (text) , customer_id (number) , customer_id (number) | customers_policies : customer_id (number) , customer_id (number) | first_notification_of_loss : customer_id (number) , fnol_id (number)"} {"db_id": "insurance_fnol", "question": "Which customers do not have a first notification of loss record? Give me the customer names.", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "customers : customer_name (text) , customer_id (number) , customer_id (number) | customers_policies : customer_id (number) , customer_id (number) | first_notification_of_loss : customer_id (number) , fnol_id (number)"} {"db_id": "insurance_fnol", "question": "Find the names of customers who have used either the service \"Close a policy\" or the service \"Upgrade a policy\".", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "customers : customer_name (text) , customer_id (number) , customer_id (number) | customers_policies : customer_id (number) , customer_id (number) | first_notification_of_loss : customer_id (number) , service_id (number) , fnol_id (number) | services : service_id (number) , service_name (text) , service_id (number)"} @@ -931,8 +931,8 @@ {"db_id": "insurance_fnol", "question": "What is the ordered list of customer ids?", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "customers : customer_id (number) , customer_name (text) , customer_id (number) | customers_policies : customer_id (number) , customer_id (number) | first_notification_of_loss : customer_id (number) , fnol_id (number)"} {"db_id": "insurance_fnol", "question": "Retrieve the open and close dates of all the policies associated with the customer whose name contains \"Diana\"", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "customers_policies : date_opened (time) , date_closed (time) , customer_id (number) , customer_id (number) | customers : customer_id (number) , customer_name (text) , customer_id (number) | first_notification_of_loss : customer_id (number) , fnol_id (number)"} {"db_id": "insurance_fnol", "question": "What are the open and close dates of all the policies used by the customer who have \"Diana\" in part of their names?", "schema": "customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)", "summarized-schema": "customers_policies : date_opened (time) , date_closed (time) , customer_id (number) , customer_id (number) | customers : customer_id (number) , customer_name (text) , customer_id (number) | first_notification_of_loss : customer_id (number) , fnol_id (number)"} -{"db_id": "medicine_enzyme_interaction", "question": "How many kinds of enzymes are there?", "schema": "medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)", "summarized-schema": ""} -{"db_id": "medicine_enzyme_interaction", "question": "What is the total count of enzymes?", "schema": "medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)", "summarized-schema": ""} +{"db_id": "medicine_enzyme_interaction", "question": "How many kinds of enzymes are there?", "schema": "medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)", "summarized-schema": "enzyme : id (number)"} +{"db_id": "medicine_enzyme_interaction", "question": "What is the total count of enzymes?", "schema": "medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)", "summarized-schema": "enzyme : id (number)"} {"db_id": "medicine_enzyme_interaction", "question": "List the name of enzymes in descending lexicographical order.", "schema": "medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)", "summarized-schema": "medicine : name (text) , id (number) | enzyme : name (text) , id (number)"} {"db_id": "medicine_enzyme_interaction", "question": "What are the names of enzymes in descending order?", "schema": "medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)", "summarized-schema": "medicine : name (text) , id (number) | enzyme : name (text) , id (number)"} {"db_id": "medicine_enzyme_interaction", "question": "List the names and the locations that the enzymes can make an effect.", "schema": "medicine : id (number) , name (text) , trade_name (text) , fda_approved (text) | enzyme : id (number) , name (text) , location (text) , product (text) , chromosome (text) , omim (number) , porphyria (text) | medicine_enzyme_interaction : enzyme_id (number) , medicine_id (number) , interaction_type (text)", "summarized-schema": "medicine : name (text) , id (number) | enzyme : name (text) , location (text) , id (number)"} @@ -1017,13 +1017,13 @@ {"db_id": "university_basketball", "question": "What are the different affiliations, and what is the total enrollment of schools founded after 1850 for each enrollment type?", "schema": "basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)", "summarized-schema": "university : enrollment (number) , affiliation (text) , founded (number) , school_id (number)"} {"db_id": "university_basketball", "question": "What is the maximum enrollment across all schools?", "schema": "basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)", "summarized-schema": "university : enrollment (number) , school_id (number)"} {"db_id": "university_basketball", "question": "Return the maximum enrollment across all schools.", "schema": "basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)", "summarized-schema": "university : enrollment (number) , school_id (number)"} -{"db_id": "university_basketball", "question": "List all information regarding the basketball match.", "schema": "basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)", "summarized-schema": ""} -{"db_id": "university_basketball", "question": "What is all the information about the basketball match?", "schema": "basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)", "summarized-schema": ""} +{"db_id": "university_basketball", "question": "List all information regarding the basketball match.", "schema": "basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)", "summarized-schema": "basketball_match : team_id (number)"} +{"db_id": "university_basketball", "question": "What is all the information about the basketball match?", "schema": "basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)", "summarized-schema": "basketball_match : team_id (number)"} {"db_id": "university_basketball", "question": "List names of all teams in the basketball competition, ordered by all home scores in descending order.", "schema": "basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)", "summarized-schema": "basketball_match : team_name (text) , all_home (text) , team_id (number)"} {"db_id": "university_basketball", "question": "What are the names of all the teams in the basketball competition, sorted by all home scores in descending order?", "schema": "basketball_match : team_id (number) , school_id (number) , team_name (text) , acc_regular_season (text) , acc_percent (text) , acc_home (text) , acc_road (text) , all_games (text) , all_games_percent (number) , all_home (text) , all_road (text) , all_neutral (text) | university : school_id (number) , school (text) , location (text) , founded (number) , affiliation (text) , enrollment (number) , nickname (text) , primary_conference (text)", "summarized-schema": "basketball_match : team_name (text) , all_home (text) , team_id (number)"} {"db_id": "phone_1", "question": "the names of models that launched between 2002 and 2004.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "chip_model : model_name (text) , launch_year (number) , model_name (number) | phone : chip_model (text) , hardware_model_name (number)"} {"db_id": "phone_1", "question": "Which model has the least amount of RAM? List the model name and the amount of RAM.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "chip_model : model_name (text) , ram_mib (number) , model_name (number) | phone : chip_model (text) , hardware_model_name (number)"} -{"db_id": "phone_1", "question": "What are the chip model and screen mode of the phone with hardware model name \"LG-P760\"?", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : chip_model (text) , screen_mode (text) , hardware_model_name (text) , hardware_model_name (number)"} +{"db_id": "phone_1", "question": "What are the chip model and screen mode of the phone with hardware model name \"LG-P760\"?", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : chip_model (text) , screen_mode (text) , hardware_model_name (text) , hardware_model_name (number) | chip_model : model_name (number) | screen_mode : graphics_mode (number)"} {"db_id": "phone_1", "question": "How many phone hardware models are produced by the company named \"Nokia Corporation\"?", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : company_name (text) , hardware_model_name (number)"} {"db_id": "phone_1", "question": "What is maximum and minimum RAM size of phone produced by company named \"Nokia Corporation\"?", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "chip_model : ram_mib (number) , model_name (text) , model_name (number) | phone : chip_model (text) , company_name (text) , hardware_model_name (number)"} {"db_id": "phone_1", "question": "What is the average ROM size of phones produced by the company named \"Nokia Corporation\"?", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "chip_model : rom_mib (number) , model_name (text) , model_name (number) | phone : chip_model (text) , company_name (text) , hardware_model_name (number)"} @@ -1043,15 +1043,15 @@ {"db_id": "phone_1", "question": "Find the number of phones for each accreditation type.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : accreditation_type (text) , hardware_model_name (number)"} {"db_id": "phone_1", "question": "How many phones belongs to each accreditation type?", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : accreditation_type (text) , hardware_model_name (number)"} {"db_id": "phone_1", "question": "Find the accreditation level that more than 3 phones use.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : accreditation_level (text) , hardware_model_name (number)"} -{"db_id": "phone_1", "question": "Find the details for all chip models.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : chip_model (text) , hardware_model_name (number)"} +{"db_id": "phone_1", "question": "Find the details for all chip models.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : chip_model (text) , hardware_model_name (number) | chip_model : model_name (number)"} {"db_id": "phone_1", "question": "How many models do not have the wifi function?", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : chip_model (text) , hardware_model_name (number) | chip_model : wifi (text) , model_name (number)"} {"db_id": "phone_1", "question": "Count the number of chip model that do not have wifi.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "phone : chip_model (text) , hardware_model_name (number) | chip_model : wifi (text) , model_name (number)"} {"db_id": "phone_1", "question": "List all the model names sorted by their launch year.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "chip_model : model_name (text) , launch_year (number) , model_name (number) | phone : chip_model (text) , hardware_model_name (number)"} {"db_id": "phone_1", "question": "Find the average ram mib size of the chip models that are never used by any phone.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "chip_model : ram_mib (number) , model_name (text) , model_name (number) | phone : chip_model (text) , hardware_model_name (number)"} {"db_id": "phone_1", "question": "Find the names of the chip models that are not used by any phone with full accreditation type.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "chip_model : model_name (text) , model_name (number) | phone : chip_model (text) , accreditation_type (text) , hardware_model_name (number)"} {"db_id": "phone_1", "question": "Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types.", "schema": "chip_model : model_name (text) , launch_year (number) , ram_mib (number) , rom_mib (number) , slots (text) , wifi (text) , bluetooth (text) | screen_mode : graphics_mode (number) , char_cells (text) , pixels (text) , hardware_colours (number) , used_kb (number) , map (text) , type (text) | phone : company_name (text) , hardware_model_name (text) , accreditation_type (text) , accreditation_level (text) , date (text) , chip_model (text) , screen_mode (text)", "summarized-schema": "screen_mode : pixels (text) , graphics_mode (number) , graphics_mode (number) | phone : screen_mode (text) , accreditation_type (text) , hardware_model_name (number)"} -{"db_id": "match_season", "question": "How many countries are there in total?", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : country (number) , season (number)"} -{"db_id": "match_season", "question": "Count the number of countries.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : country (number) , season (number)"} +{"db_id": "match_season", "question": "How many countries are there in total?", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : country (number) , season (number) | country : country_id (number)"} +{"db_id": "match_season", "question": "Count the number of countries.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : country (number) , season (number) | country : country_id (number)"} {"db_id": "match_season", "question": "Show the country name and capital of all countries.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "country : country_name (text) , capital (text) , country_id (number) | match_season : country (number) , season (number)"} {"db_id": "match_season", "question": "What are the names and capitals of each country?", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "country : country_name (text) , capital (text) , country_id (number) | match_season : country (number) , season (number)"} {"db_id": "match_season", "question": "Show all official native languages that contain the word \"English\".", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "country : official_native_language (text) , country_id (number) | match_season : country (number) , season (number)"} @@ -1064,8 +1064,8 @@ {"db_id": "match_season", "question": "What are the different positions of players from UCLA or Duke colleges?", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : position (text) , college (text) , season (number)"} {"db_id": "match_season", "question": "Show the draft pick numbers and draft classes of players whose positions are defenders.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : draft_pick_number (number) , draft_class (text) , position (text) , season (number)"} {"db_id": "match_season", "question": "What are the draft pick numbers and draft classes for players who play the Defender position?", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : draft_pick_number (number) , draft_class (text) , position (text) , season (number)"} -{"db_id": "match_season", "question": "How many distinct teams are involved in match seasons?", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : team (number) , season (number) | player : team (number) , player_id (number)"} -{"db_id": "match_season", "question": "Count the number of different teams involved in match season.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : team (number) , season (number) | player : team (number) , player_id (number)"} +{"db_id": "match_season", "question": "How many distinct teams are involved in match seasons?", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : team (number) , season (number) | player : team (number) , player_id (number) | team : team_id (number)"} +{"db_id": "match_season", "question": "Count the number of different teams involved in match season.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : team (number) , season (number) | player : team (number) , player_id (number) | team : team_id (number)"} {"db_id": "match_season", "question": "Show the players and the years played.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : player (text) , season (number) | player : player (text) , years_played (text) , player_id (number)"} {"db_id": "match_season", "question": "Who are the different players and how many years has each played?", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : player (text) , season (number) | player : player (text) , years_played (text) , player_id (number)"} {"db_id": "match_season", "question": "Show all team names.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "team : name (text) , team_id (number) | match_season : team (number) , season (number) | player : team (number) , player_id (number)"} @@ -1108,8 +1108,8 @@ {"db_id": "match_season", "question": "Return the names of countries that have players that play the Forward position, as well as players who play the Defender position.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "country : country_name (text) , country_id (number) , country_id (number) | match_season : country (number) , position (text) , season (number)"} {"db_id": "match_season", "question": "Which college have both players with position midfielder and players with position defender?", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : college (text) , position (text) , season (number)"} {"db_id": "match_season", "question": "Return the colleges that have players who play the Midfielder position, as well as players who play the Defender position.", "schema": "country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)", "summarized-schema": "match_season : college (text) , position (text) , season (number)"} -{"db_id": "climbing", "question": "How many climbers are there?", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": ""} -{"db_id": "climbing", "question": "Count the number of climbers.", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": ""} +{"db_id": "climbing", "question": "How many climbers are there?", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": "climber : climber_id (number)"} +{"db_id": "climbing", "question": "Count the number of climbers.", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": "climber : climber_id (number)"} {"db_id": "climbing", "question": "List the names of climbers in descending order of points.", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": "mountain : name (text) , mountain_id (number) | climber : name (text) , points (number) , climber_id (number)"} {"db_id": "climbing", "question": "What are the names of the climbers, ordered by points descending?", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": "mountain : name (text) , mountain_id (number) | climber : name (text) , points (number) , climber_id (number)"} {"db_id": "climbing", "question": "List the names of climbers whose country is not Switzerland.", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": "mountain : name (text) , country (text) , mountain_id (number) | climber : name (text) , country (text) , climber_id (number)"} @@ -1148,7 +1148,7 @@ {"db_id": "climbing", "question": "Which range contains the most mountains?", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": "mountain : range (text) , mountain_id (number)"} {"db_id": "climbing", "question": "Show the names of mountains with height more than 5000 or prominence more than 1000.", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": "mountain : name (text) , height (number) , prominence (number) , mountain_id (number) | climber : name (text) , climber_id (number)"} {"db_id": "climbing", "question": "What are the names of mountains that have a height of over 5000 or a prominence of over 1000?", "schema": "mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)", "summarized-schema": "mountain : name (text) , height (number) , prominence (number) , mountain_id (number) | climber : name (text) , climber_id (number)"} -{"db_id": "body_builder", "question": "How many body builders are there?", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": ""} +{"db_id": "body_builder", "question": "How many body builders are there?", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "body_builder : body_builder_id (number)"} {"db_id": "body_builder", "question": "List the total scores of body builders in ascending order.", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "body_builder : total (number) , body_builder_id (number)"} {"db_id": "body_builder", "question": "List the snatch score and clean jerk score of body builders in ascending order of snatch score.", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "body_builder : snatch (number) , clean_jerk (number) , body_builder_id (number)"} {"db_id": "body_builder", "question": "What is the average snatch score of body builders?", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "body_builder : snatch (number) , body_builder_id (number)"} @@ -1165,14 +1165,14 @@ {"db_id": "body_builder", "question": "What is the most common birth place of people?", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "people : birth_place (text) , people_id (number)"} {"db_id": "body_builder", "question": "What are the birth places that are shared by at least two people?", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "people : birth_place (text) , people_id (number)"} {"db_id": "body_builder", "question": "List the height and weight of people in descending order of height.", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "people : height (number) , weight (number) , people_id (number)"} -{"db_id": "body_builder", "question": "Show all information about each body builder.", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": ""} +{"db_id": "body_builder", "question": "Show all information about each body builder.", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "body_builder : body_builder_id (number)"} {"db_id": "body_builder", "question": "List the names and origins of people who are not body builders.", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "people : name (text) , birth_place (text) , people_id (number) , people_id (number) | body_builder : people_id (number) , body_builder_id (number)"} {"db_id": "body_builder", "question": "How many distinct birth places are there?", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "people : birth_place (text) , people_id (number)"} {"db_id": "body_builder", "question": "How many persons are not body builders?", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "body_builder : people_id (number) , body_builder_id (number) | people : people_id (number) , people_id (number)"} {"db_id": "body_builder", "question": "List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "people : weight (number) , people_id (number) , height (number) , people_id (number) | body_builder : people_id (number) , snatch (number) , body_builder_id (number)"} {"db_id": "body_builder", "question": "What are the total scores of the body builders whose birthday contains the string \"January\" ?", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "body_builder : total (number) , people_id (number) , body_builder_id (number) | people : people_id (number) , birth_date (text) , people_id (number)"} {"db_id": "body_builder", "question": "What is the minimum snatch score?", "schema": "body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)", "summarized-schema": "body_builder : snatch (number) , body_builder_id (number)"} -{"db_id": "election_representative", "question": "How many elections are there?", "schema": "election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)", "summarized-schema": ""} +{"db_id": "election_representative", "question": "How many elections are there?", "schema": "election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)", "summarized-schema": "election : election_id (number)"} {"db_id": "election_representative", "question": "List the votes of elections in descending order.", "schema": "election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)", "summarized-schema": "election : votes (number) , election_id (number)"} {"db_id": "election_representative", "question": "List the dates and vote percents of elections.", "schema": "election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)", "summarized-schema": "election : date (text) , vote_percent (number) , election_id (number)"} {"db_id": "election_representative", "question": "What are the minimum and maximum vote percents of elections?", "schema": "election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)", "summarized-schema": "election : vote_percent (number) , election_id (number)"} @@ -1192,8 +1192,8 @@ {"db_id": "election_representative", "question": "List the names of representatives that have not participated in elections listed here.", "schema": "election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)", "summarized-schema": "representative : name (text) , representative_id (number) , representative_id (number) | election : representative_id (number) , election_id (number)"} {"db_id": "election_representative", "question": "Show the parties that have both representatives in New York state and representatives in Pennsylvania state.", "schema": "election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)", "summarized-schema": "representative : party (text) , state (text) , representative_id (number)"} {"db_id": "election_representative", "question": "How many distinct parties are there for representatives?", "schema": "election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)", "summarized-schema": "representative : party (text) , representative_id (number)"} -{"db_id": "apartment_rentals", "question": "How many apartment bookings are there in total?", "schema": "apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)", "summarized-schema": ""} -{"db_id": "apartment_rentals", "question": "Count the total number of apartment bookings.", "schema": "apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)", "summarized-schema": ""} +{"db_id": "apartment_rentals", "question": "How many apartment bookings are there in total?", "schema": "apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)", "summarized-schema": "apartment_bookings : apt_booking_id (number)"} +{"db_id": "apartment_rentals", "question": "Count the total number of apartment bookings.", "schema": "apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)", "summarized-schema": "apartment_bookings : apt_booking_id (number)"} {"db_id": "apartment_rentals", "question": "Show the start dates and end dates of all the apartment bookings.", "schema": "apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)", "summarized-schema": "apartment_bookings : booking_start_date (time) , booking_end_date (time) , apt_booking_id (number)"} {"db_id": "apartment_rentals", "question": "What are the start date and end date of each apartment booking?", "schema": "apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)", "summarized-schema": "apartment_bookings : booking_start_date (time) , booking_end_date (time) , apt_booking_id (number)"} {"db_id": "apartment_rentals", "question": "Show all distinct building descriptions.", "schema": "apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)", "summarized-schema": "apartment_buildings : building_description (text) , building_id (number)"} @@ -1305,7 +1305,7 @@ {"db_id": "soccer_1", "question": "List all of the ids for left-footed players with a height between 180cm and 190cm.", "schema": "player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)", "summarized-schema": "player_attributes : player_api_id (number) , preferred_foot (text) , id (number) | player : player_api_id (number) , height (number) , id (number)"} {"db_id": "soccer_1", "question": "Who are the top 3 players in terms of overall rating?", "schema": "player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)", "summarized-schema": "player : player_name (text) , player_api_id (number) , id (number) | player_attributes : player_api_id (number) , overall_rating (number) , id (number)"} {"db_id": "soccer_1", "question": "List the names and birthdays of the top five players in terms of potential.", "schema": "player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)", "summarized-schema": "player : player_name (text) , birthday (text) , player_api_id (number) , id (number) | player_attributes : player_api_id (number) , potential (number) , id (number)"} -{"db_id": "performance_attendance", "question": "How many performances are there?", "schema": "member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)", "summarized-schema": ""} +{"db_id": "performance_attendance", "question": "How many performances are there?", "schema": "member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)", "summarized-schema": "performance : performance_id (number)"} {"db_id": "performance_attendance", "question": "List the hosts of performances in ascending order of attendance.", "schema": "member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)", "summarized-schema": "performance : host (text) , attendance (number) , performance_id (number)"} {"db_id": "performance_attendance", "question": "What are the dates and locations of performances?", "schema": "member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)", "summarized-schema": "performance : date (text) , location (text) , performance_id (number)"} {"db_id": "performance_attendance", "question": "Show the attendances of the performances at location \"TD Garden\" or \"Bell Centre\"", "schema": "member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)", "summarized-schema": "performance : attendance (number) , location (text) , performance_id (number)"} @@ -1490,7 +1490,7 @@ {"db_id": "college_2", "question": "What are the names of instructors who earn more than at least one instructor from the Biology department?", "schema": "classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)", "summarized-schema": "instructor : name (text) , salary (number) , dept_name (text) , id (number) | student : name (text) , dept_name (text) , id (number) | department : dept_name (text) , dept_name (number) | course : dept_name (text) , course_id (number)"} {"db_id": "college_2", "question": "Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department.", "schema": "classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)", "summarized-schema": "instructor : name (text) , salary (number) , dept_name (text) , id (number) | student : name (text) , dept_name (text) , id (number) | department : dept_name (text) , dept_name (number) | course : dept_name (text) , course_id (number)"} {"db_id": "college_2", "question": "What are the names of all instructors with a higher salary than any of the instructors in the Biology department?", "schema": "classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)", "summarized-schema": "instructor : name (text) , salary (number) , dept_name (text) , id (number) | student : name (text) , dept_name (text) , id (number) | department : dept_name (text) , dept_name (number) | course : dept_name (text) , course_id (number)"} -{"db_id": "debate", "question": "How many debates are there?", "schema": "people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)", "summarized-schema": ""} +{"db_id": "debate", "question": "How many debates are there?", "schema": "people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)", "summarized-schema": "debate : debate_id (number)"} {"db_id": "debate", "question": "List the venues of debates in ascending order of the number of audience.", "schema": "people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)", "summarized-schema": "debate : venue (text) , num_of_audience (number) , debate_id (number)"} {"db_id": "debate", "question": "What are the date and venue of each debate?", "schema": "people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)", "summarized-schema": "debate : date (text) , venue (text) , debate_id (number)"} {"db_id": "debate", "question": "List the dates of debates with number of audience bigger than 150", "schema": "people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)", "summarized-schema": "debate : date (text) , num_of_audience (number) , debate_id (number)"} @@ -1523,8 +1523,8 @@ {"db_id": "insurance_and_eClaims", "question": "Which customer made the smallest amount of claim in one claim? Return the customer details.", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : policy_id (number) , customer_id (number) , policy_id (number) | claim_headers : policy_id (number) , amount_piad (number) , claim_header_id (number)"} {"db_id": "insurance_and_eClaims", "question": "Find the names of customers who have no policies associated.", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_id (number)"} {"db_id": "insurance_and_eClaims", "question": "What are the names of customers who do not have any policies?", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_id (number)"} -{"db_id": "insurance_and_eClaims", "question": "How many claim processing stages are there in total?", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": ""} -{"db_id": "insurance_and_eClaims", "question": "Find the number of distinct stages in claim processing.", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": ""} +{"db_id": "insurance_and_eClaims", "question": "How many claim processing stages are there in total?", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "claims_processing_stages : claim_stage_id (number)"} +{"db_id": "insurance_and_eClaims", "question": "Find the number of distinct stages in claim processing.", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "claims_processing_stages : claim_stage_id (number)"} {"db_id": "insurance_and_eClaims", "question": "What is the name of the claim processing stage that most of the claims are on?", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "claims_processing_stages : claim_status_name (text) , claim_stage_id (number) , claim_stage_id (number) | claims_processing : claim_stage_id (number) , claim_processing_id (number)"} {"db_id": "insurance_and_eClaims", "question": "Which claim processing stage has the most claims? Show the claim status name.", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "claims_processing_stages : claim_status_name (text) , claim_stage_id (number) , claim_stage_id (number) | claims_processing : claim_stage_id (number) , claim_processing_id (number)"} {"db_id": "insurance_and_eClaims", "question": "Find the names of customers whose name contains \"Diana\".", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "customers : customer_details (text) , customer_id (number)"} @@ -1545,8 +1545,8 @@ {"db_id": "insurance_and_eClaims", "question": "Count the number of distinct claim outcome codes.", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "claims_processing : claim_outcome_code (text) , claim_processing_id (number)"} {"db_id": "insurance_and_eClaims", "question": "Which customer is associated with the latest policy?", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , start_date (time) , policy_id (number)"} {"db_id": "insurance_and_eClaims", "question": "Find the customer who started a policy most recently.", "schema": "customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)", "summarized-schema": "customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , start_date (time) , policy_id (number)"} -{"db_id": "customers_and_invoices", "question": "Show the number of accounts.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": ""} -{"db_id": "customers_and_invoices", "question": "How many accounts are there?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": ""} +{"db_id": "customers_and_invoices", "question": "Show the number of accounts.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "accounts : account_id (number)"} +{"db_id": "customers_and_invoices", "question": "How many accounts are there?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "accounts : account_id (number)"} {"db_id": "customers_and_invoices", "question": "How many customers have opened an account?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)"} {"db_id": "customers_and_invoices", "question": "Count the number of customers who have an account.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)"} {"db_id": "customers_and_invoices", "question": "Show the id, the date of account opened, the account name, and other account detail for all accounts.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "accounts : account_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) , account_id (number) | financial_transactions : account_id (number)"} @@ -1571,8 +1571,8 @@ {"db_id": "customers_and_invoices", "question": "What are the the full names and ids for all customers, and how many accounts does each have?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)"} {"db_id": "customers_and_invoices", "question": "Show first name and id for all customers with at least 2 accounts.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "customers : customer_first_name (text) , customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)"} {"db_id": "customers_and_invoices", "question": "What are the first names and ids for customers who have two or more accounts?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "customers : customer_first_name (text) , customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)"} -{"db_id": "customers_and_invoices", "question": "Show the number of customers.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": ""} -{"db_id": "customers_and_invoices", "question": "Count the number of customers.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": ""} +{"db_id": "customers_and_invoices", "question": "Show the number of customers.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "customers : customer_id (number)"} +{"db_id": "customers_and_invoices", "question": "Count the number of customers.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "customers : customer_id (number)"} {"db_id": "customers_and_invoices", "question": "Show the number of customers for each gender.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "customers : gender (text) , customer_id (number)"} {"db_id": "customers_and_invoices", "question": "How many customers are there of each gender?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "customers : gender (text) , customer_id (number)"} {"db_id": "customers_and_invoices", "question": "How many transactions do we have?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": ""} @@ -1601,8 +1601,8 @@ {"db_id": "customers_and_invoices", "question": "How many transactions correspond to each invoice number?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "invoices : invoice_number (number) , invoice_number (number) | financial_transactions : invoice_number (number) | invoice_line_items : invoice_number (number)"} {"db_id": "customers_and_invoices", "question": "What is the invoice number and invoice date for the invoice with most number of transactions?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "invoices : invoice_number (number) , invoice_date (time) , invoice_number (number) | financial_transactions : invoice_number (number) | invoice_line_items : invoice_number (number)"} {"db_id": "customers_and_invoices", "question": "What is the invoice number and invoice date corresponding to the invoice with the greatest number of transactions?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "invoices : invoice_number (number) , invoice_date (time) , invoice_number (number) | financial_transactions : invoice_number (number) | invoice_line_items : invoice_number (number)"} -{"db_id": "customers_and_invoices", "question": "How many invoices do we have?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": ""} -{"db_id": "customers_and_invoices", "question": "Count the number of invoices.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": ""} +{"db_id": "customers_and_invoices", "question": "How many invoices do we have?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "invoices : invoice_number (number)"} +{"db_id": "customers_and_invoices", "question": "Count the number of invoices.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "invoices : invoice_number (number)"} {"db_id": "customers_and_invoices", "question": "Show invoice dates and order id and details for all invoices.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "invoices : invoice_date (time) , order_id (number) , invoice_number (number) | orders : order_id (number) , order_details (text) , order_id (number) | order_items : order_id (number) , order_item_id (number)"} {"db_id": "customers_and_invoices", "question": "What are the invoice dates, order ids, and order details for all invoices?", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "invoices : invoice_date (time) , order_id (number) , invoice_number (number) | orders : order_id (number) , order_details (text) , order_id (number) | order_items : order_id (number) , order_item_id (number)"} {"db_id": "customers_and_invoices", "question": "Show the order ids and the number of invoices for each order.", "schema": "customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)", "summarized-schema": "orders : order_id (number) , order_id (number) | invoices : order_id (number) , invoice_number (number) | order_items : order_id (number) , order_item_id (number)"} @@ -1647,8 +1647,8 @@ {"db_id": "wedding", "question": "Show the church names for the weddings of all people older than 30.", "schema": "people : people_id (number) , name (text) , country (text) , is_male (text) , age (number) | church : church_id (number) , name (text) , organized_by (text) , open_date (number) , continuation_of (text) | wedding : church_id (number) , male_id (number) , female_id (number) , year (number)", "summarized-schema": "people : name (text) , people_id (number) , age (number) , people_id (number) | church : name (text) , church_id (number) , church_id (number) | wedding : male_id (number) , female_id (number) , church_id (number) , church_id (number)"} {"db_id": "wedding", "question": "Show all countries and the number of people from each country.", "schema": "people : people_id (number) , name (text) , country (text) , is_male (text) , age (number) | church : church_id (number) , name (text) , organized_by (text) , open_date (number) , continuation_of (text) | wedding : church_id (number) , male_id (number) , female_id (number) , year (number)", "summarized-schema": "people : country (text) , people_id (number)"} {"db_id": "wedding", "question": "How many churches have a wedding in year 2016?", "schema": "people : people_id (number) , name (text) , country (text) , is_male (text) , age (number) | church : church_id (number) , name (text) , organized_by (text) , open_date (number) , continuation_of (text) | wedding : church_id (number) , male_id (number) , female_id (number) , year (number)", "summarized-schema": "church : church_id (number) , church_id (number) | wedding : church_id (number) , year (number) , church_id (number)"} -{"db_id": "theme_gallery", "question": "How many artists do we have?", "schema": "artist : artist_id (number) , name (text) , country (text) , year_join (number) , age (number) | exhibition : exhibition_id (number) , year (number) , theme (text) , artist_id (number) , ticket_price (number) | exhibition_record : exhibition_id (number) , date (text) , attendance (number)", "summarized-schema": ""} -{"db_id": "theme_gallery", "question": "Count the number of artists.", "schema": "artist : artist_id (number) , name (text) , country (text) , year_join (number) , age (number) | exhibition : exhibition_id (number) , year (number) , theme (text) , artist_id (number) , ticket_price (number) | exhibition_record : exhibition_id (number) , date (text) , attendance (number)", "summarized-schema": ""} +{"db_id": "theme_gallery", "question": "How many artists do we have?", "schema": "artist : artist_id (number) , name (text) , country (text) , year_join (number) , age (number) | exhibition : exhibition_id (number) , year (number) , theme (text) , artist_id (number) , ticket_price (number) | exhibition_record : exhibition_id (number) , date (text) , attendance (number)", "summarized-schema": "artist : artist_id (number)"} +{"db_id": "theme_gallery", "question": "Count the number of artists.", "schema": "artist : artist_id (number) , name (text) , country (text) , year_join (number) , age (number) | exhibition : exhibition_id (number) , year (number) , theme (text) , artist_id (number) , ticket_price (number) | exhibition_record : exhibition_id (number) , date (text) , attendance (number)", "summarized-schema": "artist : artist_id (number)"} {"db_id": "theme_gallery", "question": "Show all artist name, age, and country ordered by the yeared they joined.", "schema": "artist : artist_id (number) , name (text) , country (text) , year_join (number) , age (number) | exhibition : exhibition_id (number) , year (number) , theme (text) , artist_id (number) , ticket_price (number) | exhibition_record : exhibition_id (number) , date (text) , attendance (number)", "summarized-schema": "artist : name (text) , age (number) , country (text) , year_join (number) , artist_id (number)"} {"db_id": "theme_gallery", "question": "What are the names, ages, and countries of artists, sorted by the year they joined?", "schema": "artist : artist_id (number) , name (text) , country (text) , year_join (number) , age (number) | exhibition : exhibition_id (number) , year (number) , theme (text) , artist_id (number) , ticket_price (number) | exhibition_record : exhibition_id (number) , date (text) , attendance (number)", "summarized-schema": "artist : name (text) , age (number) , country (text) , year_join (number) , artist_id (number)"} {"db_id": "theme_gallery", "question": "What are all distinct country for artists?", "schema": "artist : artist_id (number) , name (text) , country (text) , year_join (number) , age (number) | exhibition : exhibition_id (number) , year (number) , theme (text) , artist_id (number) , ticket_price (number) | exhibition_record : exhibition_id (number) , date (text) , attendance (number)", "summarized-schema": "artist : country (text) , artist_id (number)"} @@ -1688,9 +1688,9 @@ {"db_id": "theme_gallery", "question": "Show all artist names with an average exhibition attendance over 200.", "schema": "artist : artist_id (number) , name (text) , country (text) , year_join (number) , age (number) | exhibition : exhibition_id (number) , year (number) , theme (text) , artist_id (number) , ticket_price (number) | exhibition_record : exhibition_id (number) , date (text) , attendance (number)", "summarized-schema": "artist : name (text) , artist_id (number) , artist_id (number) | exhibition : exhibition_id (number) , artist_id (number) , exhibition_id (number) | exhibition_record : exhibition_id (number) , attendance (number) , exhibition_id (number)"} {"db_id": "theme_gallery", "question": "What are the names of artist whose exhibitions draw over 200 attendees on average?", "schema": "artist : artist_id (number) , name (text) , country (text) , year_join (number) , age (number) | exhibition : exhibition_id (number) , year (number) , theme (text) , artist_id (number) , ticket_price (number) | exhibition_record : exhibition_id (number) , date (text) , attendance (number)", "summarized-schema": "artist : name (text) , artist_id (number) , artist_id (number) | exhibition : exhibition_id (number) , artist_id (number) , exhibition_id (number) | exhibition_record : exhibition_id (number) , attendance (number) , exhibition_id (number)"} {"db_id": "epinions_1", "question": "Find the id of the item whose title is \"orange\".", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "item : i_id (number) , title (text) , i_id (number) | review : i_id (number) , a_id (number)"} -{"db_id": "epinions_1", "question": "List all information in the item table.", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": ""} -{"db_id": "epinions_1", "question": "Find the number of reviews.", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": ""} -{"db_id": "epinions_1", "question": "How many users are there?", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": ""} +{"db_id": "epinions_1", "question": "List all information in the item table.", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "item : i_id (number)"} +{"db_id": "epinions_1", "question": "Find the number of reviews.", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "review : a_id (number)"} +{"db_id": "epinions_1", "question": "How many users are there?", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "useracct : u_id (number)"} {"db_id": "epinions_1", "question": "Find the average and maximum rating of all reviews.", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "review : rating (number) , a_id (number)"} {"db_id": "epinions_1", "question": "Find the highest rank of all reviews.", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "review : rank (number) , a_id (number)"} {"db_id": "epinions_1", "question": "How many different users wrote some reviews?", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "review : u_id (number) , a_id (number) | useracct : u_id (number) , u_id (number)"} @@ -1717,7 +1717,7 @@ {"db_id": "epinions_1", "question": "Find the names of users who did not leave any review.", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "useracct : name (text) , u_id (number) , u_id (number) | review : u_id (number) , a_id (number)"} {"db_id": "epinions_1", "question": "Find the number of users who did not write any review.", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "review : u_id (number) , a_id (number) | useracct : u_id (number) , u_id (number)"} {"db_id": "epinions_1", "question": "Find the number of items without any review.", "schema": "item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)", "summarized-schema": "item : i_id (number) , i_id (number) | review : i_id (number) , a_id (number)"} -{"db_id": "riding_club", "question": "How many players are there?", "schema": "player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)", "summarized-schema": ""} +{"db_id": "riding_club", "question": "How many players are there?", "schema": "player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)", "summarized-schema": "player : player_id (number)"} {"db_id": "riding_club", "question": "List the names of players in ascending order of votes.", "schema": "player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)", "summarized-schema": "player : player_name (text) , votes (number) , player_id (number)"} {"db_id": "riding_club", "question": "What are the gender and occupation of players?", "schema": "player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)", "summarized-schema": "player : gender (text) , occupation (text) , player_id (number) | coach : gender (text) , coach_id (number)"} {"db_id": "riding_club", "question": "List the name and residence for players whose occupation is not \"Researcher\".", "schema": "player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)", "summarized-schema": "player : player_name (text) , residence (text) , occupation (text) , player_id (number)"} @@ -1734,8 +1734,8 @@ {"db_id": "riding_club", "question": "Show the residences that have both a player of gender \"M\" and a player of gender \"F\".", "schema": "player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)", "summarized-schema": "player : residence (text) , gender (text) , player_id (number) | coach : gender (text) , coach_id (number)"} {"db_id": "riding_club", "question": "How many coaches does each club has? List the club id, name and the number of coaches.", "schema": "player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)", "summarized-schema": "club : club_id (number) , club_name (text) , club_id (number) | coach : club_id (number) , coach_id (number) | match_result : club_id (number) , rank (number)"} {"db_id": "riding_club", "question": "How many gold medals has the club with the most coaches won?", "schema": "player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)", "summarized-schema": "club : club_id (number) , club_id (number) | coach : club_id (number) , coach_id (number) | match_result : club_id (number) , gold (number) , rank (number)"} -{"db_id": "gymnast", "question": "How many gymnasts are there?", "schema": "gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)", "summarized-schema": ""} -{"db_id": "gymnast", "question": "Count the number of gymnasts.", "schema": "gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)", "summarized-schema": ""} +{"db_id": "gymnast", "question": "How many gymnasts are there?", "schema": "gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)", "summarized-schema": "gymnast : gymnast_id (number)"} +{"db_id": "gymnast", "question": "Count the number of gymnasts.", "schema": "gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)", "summarized-schema": "gymnast : gymnast_id (number)"} {"db_id": "gymnast", "question": "List the total points of gymnasts in descending order.", "schema": "gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)", "summarized-schema": "gymnast : total_points (number) , gymnast_id (number)"} {"db_id": "gymnast", "question": "What are the total points for all gymnasts, ordered by total points descending?", "schema": "gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)", "summarized-schema": "gymnast : total_points (number) , gymnast_id (number)"} {"db_id": "gymnast", "question": "List the total points of gymnasts in descending order of floor exercise points.", "schema": "gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)", "summarized-schema": "gymnast : total_points (number) , floor_exercise_points (number) , gymnast_id (number)"} @@ -1776,8 +1776,8 @@ {"db_id": "gymnast", "question": "What are the ages of the gymnasts, ordered descending by their total points?", "schema": "gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)", "summarized-schema": "people : age (number) , people_id (number) , people_id (number) | gymnast : gymnast_id (number) , total_points (number) , gymnast_id (number)"} {"db_id": "small_bank_1", "question": "Find the total savings balance of all accounts except the account with name \u2018Brown\u2019.", "schema": "accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)", "summarized-schema": "savings : balance (number) , custid (number) , custid (number) | checking : balance (number) , custid (number) , custid (number) | accounts : custid (number) , name (text) , custid (number)"} {"db_id": "small_bank_1", "question": "What is the total balance of savings accounts not belonging to someone with the name Brown?", "schema": "accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)", "summarized-schema": "savings : balance (number) , custid (number) , custid (number) | checking : balance (number) , custid (number) , custid (number) | accounts : custid (number) , name (text) , custid (number)"} -{"db_id": "small_bank_1", "question": "How many accounts are there in total?", "schema": "accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)", "summarized-schema": ""} -{"db_id": "small_bank_1", "question": "Count the number of accounts.", "schema": "accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)", "summarized-schema": ""} +{"db_id": "small_bank_1", "question": "How many accounts are there in total?", "schema": "accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)", "summarized-schema": "accounts : custid (number)"} +{"db_id": "small_bank_1", "question": "Count the number of accounts.", "schema": "accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)", "summarized-schema": "accounts : custid (number)"} {"db_id": "small_bank_1", "question": "What is the total checking balance in all accounts?", "schema": "accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)", "summarized-schema": "savings : balance (number) , custid (number) | checking : balance (number) , custid (number)"} {"db_id": "small_bank_1", "question": "Find the total balance across checking accounts.", "schema": "accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)", "summarized-schema": "savings : balance (number) , custid (number) | checking : balance (number) , custid (number)"} {"db_id": "small_bank_1", "question": "Find the average checking balance.", "schema": "accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)", "summarized-schema": "savings : balance (number) , custid (number) | checking : balance (number) , custid (number)"} @@ -1842,8 +1842,8 @@ {"db_id": "browser_web", "question": "Which accelerator name contains substring \"Opera\"?", "schema": "web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)", "summarized-schema": "web_client_accelerator : name (text) , id (number) | browser : name (text) , id (number)"} {"db_id": "browser_web", "question": "Find the number of web accelerators used for each Operating system.", "schema": "web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)", "summarized-schema": "web_client_accelerator : operating_system (text) , id (number)"} {"db_id": "browser_web", "question": "give me names of all compatible browsers and accelerators in the descending order of compatible year", "schema": "web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)", "summarized-schema": "web_client_accelerator : name (text) , id (number) , id (number) | browser : name (text) , id (number) , id (number) | accelerator_compatible_browser : browser_id (number) , accelerator_id (number) , compatible_since_year (number) , accelerator_id (number)"} -{"db_id": "wrestler", "question": "How many wrestlers are there?", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": ""} -{"db_id": "wrestler", "question": "Count the number of wrestlers.", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": ""} +{"db_id": "wrestler", "question": "How many wrestlers are there?", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": "wrestler : wrestler_id (number)"} +{"db_id": "wrestler", "question": "Count the number of wrestlers.", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": "wrestler : wrestler_id (number)"} {"db_id": "wrestler", "question": "List the names of wrestlers in descending order of days held.", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": "wrestler : name (text) , days_held (text) , wrestler_id (number)"} {"db_id": "wrestler", "question": "What are the names of the wrestlers, ordered descending by days held?", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": "wrestler : name (text) , days_held (text) , wrestler_id (number)"} {"db_id": "wrestler", "question": "What is the name of the wrestler with the fewest days held?", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": "wrestler : name (text) , days_held (text) , wrestler_id (number)"} @@ -1882,8 +1882,8 @@ {"db_id": "wrestler", "question": "How many different teams have had eliminated wrestlers?", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": "elimination : team (text) , elimination_id (number)"} {"db_id": "wrestler", "question": "Show the times of elimination by \"Punk\" or \"Orton\".", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": "elimination : time (text) , eliminated_by (text) , elimination_id (number)"} {"db_id": "wrestler", "question": "What are the times of elimination for any instances in which the elimination was done by Punk or Orton?", "schema": "wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)", "summarized-schema": "elimination : time (text) , eliminated_by (text) , elimination_id (number)"} -{"db_id": "school_finance", "question": "How many schools are there?", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": ""} -{"db_id": "school_finance", "question": "Count the number of schools.", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": ""} +{"db_id": "school_finance", "question": "How many schools are there?", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": "school : school_id (number)"} +{"db_id": "school_finance", "question": "Count the number of schools.", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": "school : school_id (number)"} {"db_id": "school_finance", "question": "Show all school names in alphabetical order.", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": "school : school_name (text) , school_id (number)"} {"db_id": "school_finance", "question": "List the name, location, mascot for all schools.", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": "school : school_name (text) , location (text) , mascot (text) , school_id (number)"} {"db_id": "school_finance", "question": "What are the total and average enrollment of all schools?", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": "school : enrollment (number) , school_id (number)"} @@ -1908,7 +1908,7 @@ {"db_id": "school_finance", "question": "Find the names of schools that have more than one donator with donation amount above 8.5.", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": "school : school_name (text) , school_id (text) , school_id (number) | budget : school_id (number) , school_id (number) | endowment : school_id (number) , amount (number) , endowment_id (number)"} {"db_id": "school_finance", "question": "Find the number of schools that have more than one donator whose donation amount is less than 8.5.", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": "endowment : amount (number) , school_id (number) , endowment_id (number) | school : school_id (text) , school_id (number) | budget : school_id (number) , school_id (number)"} {"db_id": "school_finance", "question": "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.", "schema": "school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)", "summarized-schema": "school : school_name (text) , mascot (text) , ihsaa_football_class (text) , school_id (text) , school_id (number) | budget : school_id (number) , budgeted (number) , year (number) , total_budget_percent_invested (number) , total_budget_percent_budgeted (number) , school_id (number) | endowment : school_id (number) , endowment_id (number)"} -{"db_id": "protein_institute", "question": "How many buildings are there?", "schema": "building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)", "summarized-schema": ""} +{"db_id": "protein_institute", "question": "How many buildings are there?", "schema": "building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)", "summarized-schema": "building : building_id (number)"} {"db_id": "protein_institute", "question": "Show the name, street address, and number of floors for all buildings ordered by the number of floors.", "schema": "building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)", "summarized-schema": "building : name (text) , street_address (text) , floors (number) , building_id (number)"} {"db_id": "protein_institute", "question": "What is the name of the tallest building?", "schema": "building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)", "summarized-schema": "building : name (text) , height_feet (number) , building_id (number)"} {"db_id": "protein_institute", "question": "What are the average, maximum, and minimum number of floors for all buildings?", "schema": "building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)", "summarized-schema": "building : floors (number) , building_id (number)"} @@ -1930,8 +1930,8 @@ {"db_id": "protein_institute", "question": "How many institutions do not have an associated protein in our record?", "schema": "building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)", "summarized-schema": "institution : institution (text) , institution_id (text) , institution_id (number) | protein : institution_id (text) , common_name (number)"} {"db_id": "cinema", "question": "Show all the locations where no cinema has capacity over 800.", "schema": "film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)", "summarized-schema": "cinema : location (text) , capacity (number) , cinema_id (number)"} {"db_id": "cinema", "question": "Show all the locations where some cinemas were opened in both year 2010 and year 2011.", "schema": "film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)", "summarized-schema": "cinema : location (text) , openning_year (number) , cinema_id (number)"} -{"db_id": "cinema", "question": "How many cinema do we have?", "schema": "film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)", "summarized-schema": ""} -{"db_id": "cinema", "question": "Count the number of cinemas.", "schema": "film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)", "summarized-schema": ""} +{"db_id": "cinema", "question": "How many cinema do we have?", "schema": "film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)", "summarized-schema": "cinema : cinema_id (number)"} +{"db_id": "cinema", "question": "Count the number of cinemas.", "schema": "film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)", "summarized-schema": "cinema : cinema_id (number)"} {"db_id": "cinema", "question": "Show name, opening year, and capacity for each cinema.", "schema": "film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)", "summarized-schema": "cinema : name (text) , openning_year (number) , capacity (number) , cinema_id (number)"} {"db_id": "cinema", "question": "Show the cinema name and location for cinemas with capacity above average.", "schema": "film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)", "summarized-schema": "cinema : name (text) , location (text) , capacity (number) , cinema_id (number)"} {"db_id": "cinema", "question": "What are all the locations with a cinema?", "schema": "film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)", "summarized-schema": "cinema : location (text) , cinema_id (number)"} @@ -1976,7 +1976,7 @@ {"db_id": "products_for_hire", "question": "What are the coupon amount of the coupons owned by both good and bad customers?", "schema": "discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)", "summarized-schema": "discount_coupons : coupon_amount (number) , coupon_id (number) , coupon_id (number) | customers : coupon_id (number) , good_or_bad_customer (text) , customer_id (number)"} {"db_id": "products_for_hire", "question": "What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'", "schema": "discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)", "summarized-schema": "payments : payment_date (time) , amount_paid (number) , payment_type_code (text) , payment_id (number)"} {"db_id": "products_for_hire", "question": "What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?", "schema": "discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)", "summarized-schema": "products_for_hire : product_name (text) , product_description (text) , product_type_code (text) , daily_hire_cost (number) , product_id (number)"} -{"db_id": "phone_market", "question": "How many phones are there?", "schema": "phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)", "summarized-schema": ""} +{"db_id": "phone_market", "question": "How many phones are there?", "schema": "phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)", "summarized-schema": "phone : phone_id (number)"} {"db_id": "phone_market", "question": "List the names of phones in ascending order of price.", "schema": "phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)", "summarized-schema": "phone : name (text) , price (number) , phone_id (number)"} {"db_id": "phone_market", "question": "What are the memories and carriers of phones?", "schema": "phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)", "summarized-schema": "phone : memory_in_g (number) , carrier (text) , phone_id (number)"} {"db_id": "phone_market", "question": "List the distinct carriers of phones with memories bigger than 32.", "schema": "phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)", "summarized-schema": "phone : carrier (text) , memory_in_g (number) , phone_id (number)"} @@ -2037,8 +2037,8 @@ {"db_id": "gas_company", "question": "What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?", "schema": "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)", "summarized-schema": "company : rank (number) , company (text) , market_value (number) , main_industry (text) , sales_billion (number) , profits_billion (number) , company_id (number)"} {"db_id": "gas_company", "question": "find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.", "schema": "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)", "summarized-schema": "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)"} {"db_id": "gas_company", "question": "What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?", "schema": "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)", "summarized-schema": "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)"} -{"db_id": "party_people", "question": "How many regions do we have?", "schema": "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)", "summarized-schema": ""} -{"db_id": "party_people", "question": "Count the number of regions.", "schema": "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)", "summarized-schema": ""} +{"db_id": "party_people", "question": "How many regions do we have?", "schema": "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)", "summarized-schema": "region : region_id (number)"} +{"db_id": "party_people", "question": "Count the number of regions.", "schema": "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)", "summarized-schema": "region : region_id (number)"} {"db_id": "party_people", "question": "Show all distinct region names ordered by their labels.", "schema": "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)", "summarized-schema": "region : region_name (text) , label (text) , region_id (number)"} {"db_id": "party_people", "question": "What are the different region names, ordered by labels?", "schema": "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)", "summarized-schema": "region : region_name (text) , label (text) , region_id (number)"} {"db_id": "party_people", "question": "How many parties do we have?", "schema": "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)", "summarized-schema": "party : party_name (text) , party_id (number)"} @@ -2067,8 +2067,8 @@ {"db_id": "party_people", "question": "Which member names are shared among members in the party with the id 3 and the party with the id 1?", "schema": "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)", "summarized-schema": "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)"} {"db_id": "party_people", "question": "Show member names that are not in the Progress Party.", "schema": "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)", "summarized-schema": "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)"} {"db_id": "party_people", "question": "Which member names corresponding to members who are not in the Progress Party?", "schema": "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)", "summarized-schema": "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)"} -{"db_id": "party_people", "question": "How many party events do we have?", "schema": "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)", "summarized-schema": ""} -{"db_id": "party_people", "question": "Count the number of party events.", "schema": "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)", "summarized-schema": ""} +{"db_id": "party_people", "question": "How many party events do we have?", "schema": "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)", "summarized-schema": "party_events : event_id (number)"} +{"db_id": "party_people", "question": "Count the number of party events.", "schema": "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)", "summarized-schema": "party_events : event_id (number)"} {"db_id": "party_people", "question": "Show party names and the number of events for each party.", "schema": "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)", "summarized-schema": "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)"} {"db_id": "party_people", "question": "How many events are there for each party?", "schema": "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)", "summarized-schema": "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)"} {"db_id": "party_people", "question": "Show all member names who are not in charge of any event.", "schema": "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)", "summarized-schema": "member : member_name (text) , member_id (number) , member_id (number) | party_events : member_in_charge_id (number) , event_id (number)"} @@ -2081,7 +2081,7 @@ {"db_id": "party_people", "question": "Which event names were used more than twice for party events?", "schema": "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)", "summarized-schema": "party_events : event_name (text) , event_id (number)"} {"db_id": "party_people", "question": "How many Annual Meeting events happened in the United Kingdom region?", "schema": "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)", "summarized-schema": "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)"} {"db_id": "party_people", "question": "Count the number of Annual Meeting events that took place in the region of the United Kingdom.", "schema": "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)", "summarized-schema": "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)"} -{"db_id": "pilot_record", "question": "How many pilots are there?", "schema": "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)", "summarized-schema": ""} +{"db_id": "pilot_record", "question": "How many pilots are there?", "schema": "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)", "summarized-schema": "pilot : pilot_id (number)"} {"db_id": "pilot_record", "question": "List the names of pilots in ascending order of rank.", "schema": "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)", "summarized-schema": "pilot : pilot_name (text) , rank (number) , pilot_id (number)"} {"db_id": "pilot_record", "question": "What are the positions and teams of pilots?", "schema": "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)", "summarized-schema": "pilot : position (text) , team (text) , pilot_id (number)"} {"db_id": "pilot_record", "question": "List the distinct positions of pilots older than 30.", "schema": "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)", "summarized-schema": "pilot : position (text) , age (number) , pilot_id (number)"} @@ -2104,30 +2104,30 @@ {"db_id": "cre_Doc_Control_Systems", "question": "What is the shipping agent code of shipping agent UPS?", "schema": "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)", "summarized-schema": "ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_code (number) | documents : shipping_agent_code (text) , document_id (number)"} {"db_id": "cre_Doc_Control_Systems", "question": "What are all role codes?", "schema": "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)", "summarized-schema": "roles : role_code (text) , role_code (number) | employees : role_code (text) , employee_id (number)"} {"db_id": "cre_Doc_Control_Systems", "question": "What is the description of role code ED?", "schema": "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)", "summarized-schema": "roles : role_description (text) , role_code (text) , role_code (number) | employees : role_code (text) , employee_id (number)"} -{"db_id": "cre_Doc_Control_Systems", "question": "How many employees do we have?", "schema": "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)", "summarized-schema": ""} +{"db_id": "cre_Doc_Control_Systems", "question": "How many employees do we have?", "schema": "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)", "summarized-schema": "employees : employee_id (number)"} {"db_id": "cre_Doc_Control_Systems", "question": "What is the role of the employee named Koby?", "schema": "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)", "summarized-schema": "roles : role_description (text) , role_code (text) , role_code (number) | employees : role_code (text) , employee_name (text) , employee_id (number)"} {"db_id": "cre_Doc_Control_Systems", "question": "List all document ids and receipt dates of documents.", "schema": "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)", "summarized-schema": "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)"} {"db_id": "cre_Doc_Control_Systems", "question": "How many employees does each role have? List role description, id and number of employees.", "schema": "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)", "summarized-schema": "roles : role_description (text) , role_code (text) , role_code (number) | employees : role_code (text) , employee_id (number)"} -{"db_id": "cre_Doc_Control_Systems", "question": "List roles that have more than one employee. List the role description and number of employees.", "schema": "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)", "summarized-schema": ""} -{"db_id": "cre_Doc_Control_Systems", "question": "What is the document status description of the document with id 1?", "schema": "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)", "summarized-schema": ""} +{"db_id": "cre_Doc_Control_Systems", "question": "List roles that have more than one employee. List the role description and number of employees.", "schema": "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)", "summarized-schema": "roles : role_code (number) | employees : employee_id (number)"} +{"db_id": "cre_Doc_Control_Systems", "question": "What is the document status description of the document with id 1?", "schema": "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)", "summarized-schema": "ref_document_status : document_status_code (number) | documents : document_id (number)"} {"db_id": "cre_Doc_Control_Systems", "question": "How many documents have the status code done?", "schema": "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)", "summarized-schema": "ref_document_status : document_status_code (text) , document_status_code (number) | documents : document_status_code (text) , document_id (number)"} {"db_id": "cre_Doc_Control_Systems", "question": "List the document type code for the document with the id 2.", "schema": "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)", "summarized-schema": "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)"} {"db_id": "cre_Doc_Control_Systems", "question": "List the document ids for any documents with the status code done and the type code paper.", "schema": "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)", "summarized-schema": "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)"} -{"db_id": "cre_Doc_Control_Systems", "question": "What is the name of the shipping agent of the document with id 2?", "schema": "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)", "summarized-schema": ""} -{"db_id": "cre_Doc_Control_Systems", "question": "How many documents were shipped by USPS?", "schema": "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)", "summarized-schema": ""} -{"db_id": "cre_Doc_Control_Systems", "question": "Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.", "schema": "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)", "summarized-schema": ""} +{"db_id": "cre_Doc_Control_Systems", "question": "What is the name of the shipping agent of the document with id 2?", "schema": "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)", "summarized-schema": "ref_shipping_agents : shipping_agent_code (number) | documents : document_id (number)"} +{"db_id": "cre_Doc_Control_Systems", "question": "How many documents were shipped by USPS?", "schema": "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)", "summarized-schema": "ref_shipping_agents : shipping_agent_code (number) | documents : document_id (number)"} +{"db_id": "cre_Doc_Control_Systems", "question": "Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.", "schema": "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)", "summarized-schema": "ref_shipping_agents : shipping_agent_code (number) | documents : document_id (number)"} {"db_id": "cre_Doc_Control_Systems", "question": "What is the receipt date of the document with id 3?", "schema": "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)", "summarized-schema": "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)"} -{"db_id": "cre_Doc_Control_Systems", "question": "What address was the document with id 4 mailed to?", "schema": "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)", "summarized-schema": "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)"} +{"db_id": "cre_Doc_Control_Systems", "question": "What address was the document with id 4 mailed to?", "schema": "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)", "summarized-schema": "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)"} {"db_id": "cre_Doc_Control_Systems", "question": "What is the mail date of the document with id 7?", "schema": "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)", "summarized-schema": "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)"} -{"db_id": "cre_Doc_Control_Systems", "question": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.", "schema": "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)", "summarized-schema": "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)"} -{"db_id": "cre_Doc_Control_Systems", "question": "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.", "schema": "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)", "summarized-schema": "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)"} +{"db_id": "cre_Doc_Control_Systems", "question": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.", "schema": "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)", "summarized-schema": "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)"} +{"db_id": "cre_Doc_Control_Systems", "question": "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.", "schema": "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)", "summarized-schema": "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)"} {"db_id": "cre_Doc_Control_Systems", "question": "What is draft detail of the document with id 7?", "schema": "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)", "summarized-schema": "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)"} {"db_id": "cre_Doc_Control_Systems", "question": "How many draft copies does the document with id 2 have?", "schema": "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)", "summarized-schema": "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)"} {"db_id": "cre_Doc_Control_Systems", "question": "Which document has the most draft copies? List its document id and number of draft copies.", "schema": "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)", "summarized-schema": "documents : document_id (number) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , copy_number (number) , document_id (number) | circulation_history : document_id (number) , copy_number (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number)"} {"db_id": "cre_Doc_Control_Systems", "question": "Which documents have more than 1 draft copies? List document id and number of draft copies.", "schema": "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)", "summarized-schema": "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)"} -{"db_id": "cre_Doc_Control_Systems", "question": "List all employees in the circulation history of the document with id 1. List the employee's name.", "schema": "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)", "summarized-schema": ""} -{"db_id": "cre_Doc_Control_Systems", "question": "List the employees who have not showed up in any circulation history of documents. List the employee's name.", "schema": "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)", "summarized-schema": "employees : employee_name (text) , employee_id (number)"} -{"db_id": "cre_Doc_Control_Systems", "question": "Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.", "schema": "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)", "summarized-schema": ""} +{"db_id": "cre_Doc_Control_Systems", "question": "List all employees in the circulation history of the document with id 1. List the employee's name.", "schema": "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)", "summarized-schema": "employees : employee_id (number) | circulation_history : document_id (number)"} +{"db_id": "cre_Doc_Control_Systems", "question": "List the employees who have not showed up in any circulation history of documents. List the employee's name.", "schema": "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)", "summarized-schema": "employees : employee_name (text) , employee_id (number) | circulation_history : document_id (number)"} +{"db_id": "cre_Doc_Control_Systems", "question": "Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.", "schema": "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)", "summarized-schema": "employees : employee_id (number) | circulation_history : document_id (number)"} {"db_id": "cre_Doc_Control_Systems", "question": "For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.", "schema": "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)", "summarized-schema": "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) , employee_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number) | employees : employee_id (number) , employee_id (number)"} {"db_id": "company_1", "question": "List all department names ordered by their starting date.", "schema": "works_on : essn (number) , pno (number) , hours (number) | employee : fname (text) , minit (text) , lname (text) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (number) , dno (number) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (text) | project : pname (text) , pnumber (number) , plocation (text) , dnum (number) | dependent : essn (number) , dependent_name (text) , sex (text) , bdate (text) , relationship (text) | dept_locations : dnumber (number) , dlocation (text)", "summarized-schema": "department : dname (text) , mgr_start_date (text) , dnumber (number)"} {"db_id": "company_1", "question": "find all dependent names who have a spouse relation with some employee.", "schema": "works_on : essn (number) , pno (number) , hours (number) | employee : fname (text) , minit (text) , lname (text) , ssn (number) , bdate (text) , address (text) , sex (text) , salary (number) , super_ssn (number) , dno (number) | department : dname (text) , dnumber (number) , mgr_ssn (number) , mgr_start_date (text) | project : pname (text) , pnumber (number) , plocation (text) , dnum (number) | dependent : essn (number) , dependent_name (text) , sex (text) , bdate (text) , relationship (text) | dept_locations : dnumber (number) , dlocation (text)", "summarized-schema": "dependent : dependent_name (text) , relationship (text) , essn (number)"} @@ -2231,8 +2231,8 @@ {"db_id": "formula_1", "question": "For each id of a driver who participated in at most 30 races, how many races did they participate in?", "schema": "circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)", "summarized-schema": "drivers : driverid (number) , driverid (number) | results : driverid (number) , raceid (number) , resultid (number) | driverstandings : driverid (number) , raceid (number) , driverstandingsid (number) | qualifying : driverid (number) , raceid (number) , qualifyid (number) | pitstops : driverid (number) , raceid (number) , raceid (number) | laptimes : driverid (number) , raceid (number) , raceid (number) | races : raceid (number) , raceid (number) | constructorstandings : raceid (number) , constructorstandingsid (number) | constructorresults : raceid (number) , constructorresultsid (number)"} {"db_id": "formula_1", "question": "Find the id and surname of the driver who participated the most number of races?", "schema": "circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)", "summarized-schema": "drivers : driverid (number) , surname (text) , driverid (number) | results : driverid (number) , raceid (number) , resultid (number) | driverstandings : driverid (number) , raceid (number) , driverstandingsid (number) | qualifying : driverid (number) , raceid (number) , qualifyid (number) | pitstops : driverid (number) , raceid (number) , raceid (number) | laptimes : driverid (number) , raceid (number) , raceid (number) | races : raceid (number) , raceid (number) | constructorstandings : raceid (number) , constructorstandingsid (number) | constructorresults : raceid (number) , constructorresultsid (number)"} {"db_id": "formula_1", "question": "What are the ids and last names of all drivers who participated in the most races?", "schema": "circuits : circuitid (number) , circuitref (text) , name (text) , location (text) , country (text) , lat (number) , lng (number) , alt (number) , url (text) | races : raceid (number) , year (number) , round (number) , circuitid (number) , name (text) , date (text) , time (text) , url (text) | drivers : driverid (number) , driverref (text) , number (number) , code (text) , forename (text) , surname (text) , dob (text) , nationality (text) , url (text) | status : statusid (number) , status (text) | seasons : year (number) , url (text) | constructors : constructorid (number) , constructorref (text) , name (text) , nationality (text) , url (text) | constructorstandings : constructorstandingsid (number) , raceid (number) , constructorid (number) , points (number) , position (number) , positiontext (text) , wins (number) | results : resultid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , grid (number) , position (number) , positiontext (text) , positionorder (number) , points (number) , laps (number) , time (text) , milliseconds (number) , fastestlap (number) , rank (number) , fastestlaptime (text) , fastestlapspeed (text) , statusid (number) | driverstandings : driverstandingsid (number) , raceid (number) , driverid (number) , points (number) , position (number) , positiontext (text) , wins (number) | constructorresults : constructorresultsid (number) , raceid (number) , constructorid (number) , points (number) , status (number) | qualifying : qualifyid (number) , raceid (number) , driverid (number) , constructorid (number) , number (number) , position (number) , q1 (text) , q2 (text) , q3 (text) | pitstops : raceid (number) , driverid (number) , stop (number) , lap (number) , time (text) , duration (text) , milliseconds (number) | laptimes : raceid (number) , driverid (number) , lap (number) , position (number) , time (text) , milliseconds (number)", "summarized-schema": "drivers : driverid (number) , surname (text) , driverid (number) | results : driverid (number) , raceid (number) , resultid (number) | driverstandings : driverid (number) , raceid (number) , driverstandingsid (number) | qualifying : driverid (number) , raceid (number) , qualifyid (number) | pitstops : driverid (number) , raceid (number) , raceid (number) | laptimes : driverid (number) , raceid (number) , raceid (number) | races : raceid (number) , raceid (number) | constructorstandings : raceid (number) , constructorstandingsid (number) | constructorresults : raceid (number) , constructorresultsid (number)"} -{"db_id": "machine_repair", "question": "How many technicians are there?", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": ""} -{"db_id": "machine_repair", "question": "What is the number of technicians?", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": ""} +{"db_id": "machine_repair", "question": "How many technicians are there?", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": "technician : technician_id (number)"} +{"db_id": "machine_repair", "question": "What is the number of technicians?", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": "technician : technician_id (number)"} {"db_id": "machine_repair", "question": "List the names of technicians in ascending order of age.", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": "repair : name (text) , repair_id (number) | technician : name (text) , age (number) , technician_id (number)"} {"db_id": "machine_repair", "question": "What are the names of the technicians by ascending order of age?", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": "repair : name (text) , repair_id (number) | technician : name (text) , age (number) , technician_id (number)"} {"db_id": "machine_repair", "question": "What are the team and starting year of technicians?", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": "machine : team (text) , machine_id (number) | technician : team (text) , starting_year (number) , technician_id (number)"} @@ -2261,8 +2261,8 @@ {"db_id": "machine_repair", "question": "What are the names of the technicians that have not been assigned to repair machines?", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": "repair : name (text) , repair_id (number) | technician : name (text) , technician_id (number) , technician_id (number) | repair_assignment : technician_id (number) , technician_id (number)"} {"db_id": "machine_repair", "question": "Show the starting years shared by technicians from team \"CLE\" and \"CWS\".", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": "technician : starting_year (number) , team (text) , technician_id (number) | machine : team (text) , machine_id (number)"} {"db_id": "machine_repair", "question": "What are the starting years shared by the technicians from the team \"CLE\" or \"CWS\"?", "schema": "repair : repair_id (number) , name (text) , launch_date (text) , notes (text) | machine : machine_id (number) , making_year (number) , class (text) , team (text) , machine_series (text) , value_points (number) , quality_rank (number) | technician : technician_id (number) , name (text) , team (text) , starting_year (number) , age (number) | repair_assignment : technician_id (number) , repair_id (number) , machine_id (number)", "summarized-schema": "technician : starting_year (number) , team (text) , technician_id (number) | machine : team (text) , machine_id (number)"} -{"db_id": "entrepreneur", "question": "How many entrepreneurs are there?", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": ""} -{"db_id": "entrepreneur", "question": "Count the number of entrepreneurs.", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": ""} +{"db_id": "entrepreneur", "question": "How many entrepreneurs are there?", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": "entrepreneur : entrepreneur_id (number)"} +{"db_id": "entrepreneur", "question": "Count the number of entrepreneurs.", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": "entrepreneur : entrepreneur_id (number)"} {"db_id": "entrepreneur", "question": "List the companies of entrepreneurs in descending order of money requested.", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": "entrepreneur : company (text) , money_requested (number) , entrepreneur_id (number)"} {"db_id": "entrepreneur", "question": "What are the companies of entrepreneurs, ordered descending by amount of money requested?", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": "entrepreneur : company (text) , money_requested (number) , entrepreneur_id (number)"} {"db_id": "entrepreneur", "question": "List the companies and the investors of entrepreneurs.", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": "entrepreneur : company (text) , investor (text) , entrepreneur_id (number)"} @@ -2301,7 +2301,7 @@ {"db_id": "entrepreneur", "question": "Count the number of different companies.", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": "entrepreneur : company (text) , entrepreneur_id (number)"} {"db_id": "entrepreneur", "question": "Show the company of the tallest entrepreneur.", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": "entrepreneur : company (text) , people_id (number) , entrepreneur_id (number) | people : people_id (number) , height (number) , people_id (number)"} {"db_id": "entrepreneur", "question": "Which company was started by the entrepreneur with the greatest height?", "schema": "entrepreneur : entrepreneur_id (number) , people_id (number) , company (text) , money_requested (number) , investor (text) | people : people_id (number) , name (text) , height (number) , weight (number) , date_of_birth (text)", "summarized-schema": "entrepreneur : company (text) , people_id (number) , entrepreneur_id (number) | people : people_id (number) , height (number) , people_id (number)"} -{"db_id": "perpetrator", "question": "How many perpetrators are there?", "schema": "perpetrator : perpetrator_id (number) , people_id (number) , date (text) , year (number) , location (text) , country (text) , killed (number) , injured (number) | people : people_id (number) , name (text) , height (number) , weight (number) , home town", "summarized-schema": ""} +{"db_id": "perpetrator", "question": "How many perpetrators are there?", "schema": "perpetrator : perpetrator_id (number) , people_id (number) , date (text) , year (number) , location (text) , country (text) , killed (number) , injured (number) | people : people_id (number) , name (text) , height (number) , weight (number) , home town", "summarized-schema": "perpetrator : perpetrator_id (number)"} {"db_id": "perpetrator", "question": "List the date of perpetrators in descending order of the number of people killed.", "schema": "perpetrator : perpetrator_id (number) , people_id (number) , date (text) , year (number) , location (text) , country (text) , killed (number) , injured (number) | people : people_id (number) , name (text) , height (number) , weight (number) , home town", "summarized-schema": "perpetrator : date (text) , killed (number) , perpetrator_id (number)"} {"db_id": "perpetrator", "question": "List the number of people injured by perpetrators in ascending order.", "schema": "perpetrator : perpetrator_id (number) , people_id (number) , date (text) , year (number) , location (text) , country (text) , killed (number) , injured (number) | people : people_id (number) , name (text) , height (number) , weight (number) , home town", "summarized-schema": "perpetrator : injured (number) , perpetrator_id (number)"} {"db_id": "perpetrator", "question": "What is the average number of people injured by all perpetrators?", "schema": "perpetrator : perpetrator_id (number) , people_id (number) , date (text) , year (number) , location (text) , country (text) , killed (number) , injured (number) | people : people_id (number) , name (text) , height (number) , weight (number) , home town", "summarized-schema": "perpetrator : injured (number) , perpetrator_id (number)"} @@ -2390,10 +2390,10 @@ {"db_id": "csu_1", "question": "In the year 2000, what is the campus fee for San Francisco State University?", "schema": "campuses : id (number) , campus (text) , location (text) , county (text) , year (number) | csu_fees : campus (number) , year (number) , campusfee (number) | degrees : year (number) , campus (number) , degrees (number) | discipline_enrollments : campus (number) , discipline (number) , year (number) , undergraduate (number) , graduate (number) | enrollments : campus (number) , year (number) , totalenrollment_ay (number) , fte_ay (number) | faculty : campus (number) , year (number) , faculty (number)", "summarized-schema": "csu_fees : campusfee (number) , campus (number) , year (number) , campus (number) | campuses : campus (text) , id (number) , year (number) , id (number) | degrees : campus (number) , year (number) , year (number) | discipline_enrollments : campus (number) , year (number) , campus (number) | enrollments : campus (number) , year (number) , campus (number) | faculty : campus (number) , year (number)"} {"db_id": "csu_1", "question": "Find the campus fee of \"San Jose State University\" in year 2000.", "schema": "campuses : id (number) , campus (text) , location (text) , county (text) , year (number) | csu_fees : campus (number) , year (number) , campusfee (number) | degrees : year (number) , campus (number) , degrees (number) | discipline_enrollments : campus (number) , discipline (number) , year (number) , undergraduate (number) , graduate (number) | enrollments : campus (number) , year (number) , totalenrollment_ay (number) , fte_ay (number) | faculty : campus (number) , year (number) , faculty (number)", "summarized-schema": "csu_fees : campusfee (number) , campus (number) , year (number) , campus (number) | campuses : campus (text) , id (number) , year (number) , id (number) | degrees : campus (number) , year (number) , year (number) | discipline_enrollments : campus (number) , year (number) , campus (number) | enrollments : campus (number) , year (number) , campus (number) | faculty : campus (number) , year (number)"} {"db_id": "csu_1", "question": "What is the campus fee in the year 2000 for San Jose State University?", "schema": "campuses : id (number) , campus (text) , location (text) , county (text) , year (number) | csu_fees : campus (number) , year (number) , campusfee (number) | degrees : year (number) , campus (number) , degrees (number) | discipline_enrollments : campus (number) , discipline (number) , year (number) , undergraduate (number) , graduate (number) | enrollments : campus (number) , year (number) , totalenrollment_ay (number) , fte_ay (number) | faculty : campus (number) , year (number) , faculty (number)", "summarized-schema": "csu_fees : campusfee (number) , campus (number) , year (number) , campus (number) | campuses : campus (text) , id (number) , year (number) , id (number) | degrees : campus (number) , year (number) , year (number) | discipline_enrollments : campus (number) , year (number) , campus (number) | enrollments : campus (number) , year (number) , campus (number) | faculty : campus (number) , year (number)"} -{"db_id": "csu_1", "question": "How many CSU campuses are there?", "schema": "campuses : id (number) , campus (text) , location (text) , county (text) , year (number) | csu_fees : campus (number) , year (number) , campusfee (number) | degrees : year (number) , campus (number) , degrees (number) | discipline_enrollments : campus (number) , discipline (number) , year (number) , undergraduate (number) , graduate (number) | enrollments : campus (number) , year (number) , totalenrollment_ay (number) , fte_ay (number) | faculty : campus (number) , year (number) , faculty (number)", "summarized-schema": ""} -{"db_id": "csu_1", "question": "What is the total number of campuses?", "schema": "campuses : id (number) , campus (text) , location (text) , county (text) , year (number) | csu_fees : campus (number) , year (number) , campusfee (number) | degrees : year (number) , campus (number) , degrees (number) | discipline_enrollments : campus (number) , discipline (number) , year (number) , undergraduate (number) , graduate (number) | enrollments : campus (number) , year (number) , totalenrollment_ay (number) , fte_ay (number) | faculty : campus (number) , year (number) , faculty (number)", "summarized-schema": ""} -{"db_id": "candidate_poll", "question": "How many candidates are there?", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": ""} -{"db_id": "candidate_poll", "question": "Count the number of candidates.", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": ""} +{"db_id": "csu_1", "question": "How many CSU campuses are there?", "schema": "campuses : id (number) , campus (text) , location (text) , county (text) , year (number) | csu_fees : campus (number) , year (number) , campusfee (number) | degrees : year (number) , campus (number) , degrees (number) | discipline_enrollments : campus (number) , discipline (number) , year (number) , undergraduate (number) , graduate (number) | enrollments : campus (number) , year (number) , totalenrollment_ay (number) , fte_ay (number) | faculty : campus (number) , year (number) , faculty (number)", "summarized-schema": "campuses : id (number)"} +{"db_id": "csu_1", "question": "What is the total number of campuses?", "schema": "campuses : id (number) , campus (text) , location (text) , county (text) , year (number) | csu_fees : campus (number) , year (number) , campusfee (number) | degrees : year (number) , campus (number) , degrees (number) | discipline_enrollments : campus (number) , discipline (number) , year (number) , undergraduate (number) , graduate (number) | enrollments : campus (number) , year (number) , totalenrollment_ay (number) , fte_ay (number) | faculty : campus (number) , year (number) , faculty (number)", "summarized-schema": "campuses : id (number)"} +{"db_id": "candidate_poll", "question": "How many candidates are there?", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "candidate : candidate_id (number)"} +{"db_id": "candidate_poll", "question": "Count the number of candidates.", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "candidate : candidate_id (number)"} {"db_id": "candidate_poll", "question": "Which poll resource provided the most number of candidate information?", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "candidate : poll_source (text) , candidate_id (number)"} {"db_id": "candidate_poll", "question": "Return the poll resource associated with the most candidates.", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "candidate : poll_source (text) , candidate_id (number)"} {"db_id": "candidate_poll", "question": "what are the top 3 highest support rates?", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "candidate : support_rate (number) , candidate_id (number)"} @@ -2430,8 +2430,8 @@ {"db_id": "candidate_poll", "question": "What are the names of all female candidates in alphabetical order (sex is F)?", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "people : name (text) , people_id (number) , sex (text) , people_id (number) | candidate : people_id (number) , candidate_id (number)"} {"db_id": "candidate_poll", "question": "find the name of people whose height is lower than the average.", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "people : name (text) , height (number) , people_id (number)"} {"db_id": "candidate_poll", "question": "What are the names of people who are shorter than average?", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "people : name (text) , height (number) , people_id (number)"} -{"db_id": "candidate_poll", "question": "List all info about all people.", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": ""} -{"db_id": "candidate_poll", "question": "What is all the information about all people?", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": ""} +{"db_id": "candidate_poll", "question": "List all info about all people.", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "people : people_id (number)"} +{"db_id": "candidate_poll", "question": "What is all the information about all people?", "schema": "candidate : candidate_id (number) , people_id (number) , poll_source (text) , date (text) , support_rate (number) , consider_rate (number) , oppose_rate (number) , unsure_rate (number) | people : people_id (number) , sex (text) , name (text) , date_of_birth (text) , height (number) , weight (number)", "summarized-schema": "people : people_id (number)"} {"db_id": "movie_1", "question": "Find the titles of all movies directed by steven spielberg.", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "movie : title (text) , director (text) , mid (number)"} {"db_id": "movie_1", "question": "What are the names of all movies directed by Steven Spielberg?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "movie : title (text) , director (text) , mid (number)"} {"db_id": "movie_1", "question": "What is the name of the movie produced after 2000 and directed by James Cameron?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "movie : title (text) , director (text) , year (number) , mid (number)"} @@ -2440,8 +2440,8 @@ {"db_id": "movie_1", "question": "How many movies were made before 2000?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "movie : year (number) , mid (number)"} {"db_id": "movie_1", "question": "Who is the director of movie Avatar?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "movie : director (text) , title (text) , mid (number)"} {"db_id": "movie_1", "question": "Who directed Avatar?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "movie : director (text) , title (text) , mid (number)"} -{"db_id": "movie_1", "question": "How many reviewers listed?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": ""} -{"db_id": "movie_1", "question": "How many reviewers are there?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": ""} +{"db_id": "movie_1", "question": "How many reviewers listed?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "reviewer : rid (number)"} +{"db_id": "movie_1", "question": "How many reviewers are there?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "reviewer : rid (number)"} {"db_id": "movie_1", "question": "What is the id of the reviewer whose name has substring \u201cMike\u201d?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "reviewer : rid (number) , name (text) , rid (number) | rating : rid (number)"} {"db_id": "movie_1", "question": "What is the id of the reviewer whose name includes the word \"Mike\"?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "reviewer : rid (number) , name (text) , rid (number) | rating : rid (number)"} {"db_id": "movie_1", "question": "What is the reviewer id of Daniel Lewis?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "reviewer : rid (number) , name (text) , rid (number) | rating : rid (number)"} @@ -2530,8 +2530,8 @@ {"db_id": "movie_1", "question": "What are the names of all reviewers that have given 3 or 4 stars for reviews?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "reviewer : name (text) , rid (number) , rid (number) | rating : rid (number) , stars (number)"} {"db_id": "movie_1", "question": "What are the names of movies that get 3 star and 4 star?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "movie : title (text) , mid (number) , mid (number) | rating : mid (number) , stars (number)"} {"db_id": "movie_1", "question": "What are the names of all movies that received 3 or 4 stars?", "schema": "movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time)", "summarized-schema": "movie : title (text) , mid (number) , mid (number) | rating : mid (number) , stars (number)"} -{"db_id": "county_public_safety", "question": "How many counties are there?", "schema": "county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)", "summarized-schema": ""} -{"db_id": "county_public_safety", "question": "Count the number of countries.", "schema": "county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)", "summarized-schema": ""} +{"db_id": "county_public_safety", "question": "How many counties are there?", "schema": "county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)", "summarized-schema": "county_public_safety : county_id (number)"} +{"db_id": "county_public_safety", "question": "Count the number of countries.", "schema": "county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)", "summarized-schema": "county_public_safety : county_id (number)"} {"db_id": "county_public_safety", "question": "List the names of counties in descending order of population.", "schema": "county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)", "summarized-schema": "county_public_safety : name (text) , population (number) , county_id (number) | city : name (text) , city_id (number)"} {"db_id": "county_public_safety", "question": "What are the names of the counties of public safety, ordered by population descending?", "schema": "county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)", "summarized-schema": "county_public_safety : name (text) , population (number) , county_id (number) | city : name (text) , city_id (number)"} {"db_id": "county_public_safety", "question": "List the distinct police forces of counties whose location is not on east side.", "schema": "county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)", "summarized-schema": "county_public_safety : police_force (text) , location (text) , county_id (number)"} @@ -2604,8 +2604,8 @@ {"db_id": "inn_1", "question": "How many times the number of adults and kids staying in a room reached the maximum capacity of the room?", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": "reservations : room (text) , adults (number) , kids (number) , code (number) | rooms : roomid (text) , maxoccupancy (number) , roomid (number)"} {"db_id": "inn_1", "question": "Find the first and last names of people who payed more than the rooms' base prices.", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": "reservations : firstname (text) , lastname (text) , room (text) , rate (number) , code (number) | rooms : roomid (text) , baseprice (number) , roomid (number)"} {"db_id": "inn_1", "question": "What are the first and last names of people who payed more than the rooms' base prices?", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": "reservations : firstname (text) , lastname (text) , room (text) , rate (number) , code (number) | rooms : roomid (text) , baseprice (number) , roomid (number)"} -{"db_id": "inn_1", "question": "How many rooms are there?", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": ""} -{"db_id": "inn_1", "question": "What is the total number of rooms available in this inn?", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": ""} +{"db_id": "inn_1", "question": "How many rooms are there?", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": "rooms : roomid (number)"} +{"db_id": "inn_1", "question": "What is the total number of rooms available in this inn?", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": "rooms : roomid (number)"} {"db_id": "inn_1", "question": "Find the number of rooms with a king bed.", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": "rooms : bedtype (text) , roomid (number)"} {"db_id": "inn_1", "question": "How many rooms have a king bed?", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": "rooms : bedtype (text) , roomid (number)"} {"db_id": "inn_1", "question": "Find the number of rooms for each bed type.", "schema": "rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)", "summarized-schema": "rooms : bedtype (text) , roomid (number)"} @@ -2654,12 +2654,12 @@ {"db_id": "local_govt_mdm", "question": "How many different source system code for the cmi cross references are there?", "schema": "customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)", "summarized-schema": "cmi_cross_references : source_system_code (text) , cmi_cross_ref_id (number)"} {"db_id": "local_govt_mdm", "question": "List all information about customer master index, and sort them by details in descending order.", "schema": "customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)", "summarized-schema": "customer_master_index : cmi_details (text) , master_customer_id (number)"} {"db_id": "local_govt_mdm", "question": "List the council tax ids and their related cmi cross references of all the parking fines.", "schema": "customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)", "summarized-schema": "council_tax : council_tax_id (number) , cmi_cross_ref_id (number) , council_tax_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) , council_tax_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) , council_tax_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) , council_tax_id (number) | cmi_cross_references : cmi_cross_ref_id (number) , cmi_cross_ref_id (number) | business_rates : cmi_cross_ref_id (number) , business_rates_id (number) | electoral_register : cmi_cross_ref_id (number) , electoral_register_id (number)"} -{"db_id": "local_govt_mdm", "question": "How many council taxes are collected for renting arrears ?", "schema": "customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)", "summarized-schema": ""} +{"db_id": "local_govt_mdm", "question": "How many council taxes are collected for renting arrears ?", "schema": "customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)", "summarized-schema": "rent_arrears : council_tax_id (number)"} {"db_id": "local_govt_mdm", "question": "What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?", "schema": "customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)", "summarized-schema": "cmi_cross_references : source_system_code (text) , master_customer_id (number) , cmi_cross_ref_id (number) | customer_master_index : master_customer_id (number) , cmi_details (text) , master_customer_id (number)"} {"db_id": "local_govt_mdm", "question": "Which cmi cross reference id is not related to any parking taxes?", "schema": "customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)", "summarized-schema": "cmi_cross_references : cmi_cross_ref_id (number) , cmi_cross_ref_id (number) | council_tax : cmi_cross_ref_id (number) , council_tax_id (number) | business_rates : cmi_cross_ref_id (number) , business_rates_id (number) | benefits_overpayments : cmi_cross_ref_id (number) , council_tax_id (number) | parking_fines : cmi_cross_ref_id (number) , council_tax_id (number) | rent_arrears : cmi_cross_ref_id (number) , council_tax_id (number) | electoral_register : cmi_cross_ref_id (number) , electoral_register_id (number)"} {"db_id": "local_govt_mdm", "question": "Which distinct source system code includes the substring 'en'?", "schema": "customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)", "summarized-schema": "cmi_cross_references : source_system_code (text) , cmi_cross_ref_id (number)"} -{"db_id": "party_host", "question": "How many parties are there?", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": ""} -{"db_id": "party_host", "question": "Count the number of parties.", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": ""} +{"db_id": "party_host", "question": "How many parties are there?", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": "party : party_id (number)"} +{"db_id": "party_host", "question": "Count the number of parties.", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": "party : party_id (number)"} {"db_id": "party_host", "question": "List the themes of parties in ascending order of number of hosts.", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": "party : party_theme (text) , number_of_hosts (number) , party_id (number)"} {"db_id": "party_host", "question": "What are the themes of parties ordered by the number of hosts in ascending manner?", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": "party : party_theme (text) , number_of_hosts (number) , party_id (number)"} {"db_id": "party_host", "question": "What are the themes and locations of parties?", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": "party : party_theme (text) , location (text) , party_id (number)"} @@ -2688,8 +2688,8 @@ {"db_id": "party_host", "question": "What are the name and the nationality of the host of the highest age?", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": "host : name (text) , nationality (text) , age (text) , host_id (number)"} {"db_id": "party_host", "question": "List the names of hosts who did not serve as a host of any party in our record.", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": "host : name (text) , host_id (number) , host_id (number) | party_host : host_id (number) , party_id (number)"} {"db_id": "party_host", "question": "What are the names of hosts who did not host any party in our record?", "schema": "party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)", "summarized-schema": "host : name (text) , host_id (number) , host_id (number) | party_host : host_id (number) , party_id (number)"} -{"db_id": "storm_record", "question": "How many regions do we have?", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": ""} -{"db_id": "storm_record", "question": "Count the number of regions.", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": ""} +{"db_id": "storm_record", "question": "How many regions do we have?", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": "region : region_id (number)"} +{"db_id": "storm_record", "question": "Count the number of regions.", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": "region : region_id (number)"} {"db_id": "storm_record", "question": "Show all region code and region name sorted by the codes.", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": "region : region_code (text) , region_name (text) , region_id (number)"} {"db_id": "storm_record", "question": "What are the codes and names for all regions, sorted by codes?", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": "region : region_code (text) , region_name (text) , region_id (number)"} {"db_id": "storm_record", "question": "List all region names in alphabetical order.", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": "region : region_name (text) , region_id (number)"} @@ -2732,8 +2732,8 @@ {"db_id": "storm_record", "question": "What are the names of regions that were affected by the storm in which the most people died?", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": "region : region_name (text) , region_id (number) , region_id (number) | affected_region : region_id (number) , storm_id (number) , region_id (number) | storm : storm_id (number) , number_deaths (number) , storm_id (number)"} {"db_id": "storm_record", "question": "Find the name of the storm that affected both Afghanistan and Albania regions.", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": "storm : name (text) , storm_id (number) , storm_id (number) | region : region_id (number) , region_name (text) , region_id (number) | affected_region : region_id (number) , storm_id (number) , region_id (number)"} {"db_id": "storm_record", "question": "What are the names of the storms that affected both the regions of Afghanistan and Albania?", "schema": "storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)", "summarized-schema": "storm : name (text) , storm_id (number) , storm_id (number) | region : region_id (number) , region_name (text) , region_id (number) | affected_region : region_id (number) , storm_id (number) , region_id (number)"} -{"db_id": "election", "question": "How many counties are there in total?", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": ""} -{"db_id": "election", "question": "Count the total number of counties.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": ""} +{"db_id": "election", "question": "How many counties are there in total?", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "county : county_id (number)"} +{"db_id": "election", "question": "Count the total number of counties.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "county : county_id (number)"} {"db_id": "election", "question": "Show the county name and population of all counties.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "county : county_name (text) , population (number) , county_id (number)"} {"db_id": "election", "question": "What are the name and population of each county?", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "county : county_name (text) , population (number) , county_id (number)"} {"db_id": "election", "question": "Show the average population of all counties.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "county : population (number) , county_id (number)"} @@ -2754,8 +2754,8 @@ {"db_id": "election", "question": "Who are the lieutenant governor and comptroller from the democratic party?", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "party : lieutenant_governor (text) , comptroller (text) , party (text) , party_id (number) | election : party (number) , election_id (number)"} {"db_id": "election", "question": "In which distinct years was the governor \"Eliot Spitzer\"?", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "party : year (number) , party (text) , governor (text) , party_id (number) | election : party (number) , election_id (number)"} {"db_id": "election", "question": "Find the distinct years when the governor was named \"Eliot Spitzer\".", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "party : year (number) , party (text) , governor (text) , party_id (number) | election : party (number) , election_id (number)"} -{"db_id": "election", "question": "Show all the information about election.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": ""} -{"db_id": "election", "question": "Return all the information for each election record.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": ""} +{"db_id": "election", "question": "Show all the information about election.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "election : election_id (number)"} +{"db_id": "election", "question": "Return all the information for each election record.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "election : election_id (number)"} {"db_id": "election", "question": "Show the delegates and the names of county they belong to.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "election : delegate (text) , district (number) , election_id (number) | county : county_name (text) , county_id (number) , county_id (number)"} {"db_id": "election", "question": "What are the delegate and name of the county they belong to, for each county?", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "election : delegate (text) , district (number) , election_id (number) | county : county_name (text) , county_id (number) , county_id (number)"} {"db_id": "election", "question": "Which delegates are from counties with population smaller than 100000?", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "election : delegate (text) , district (number) , election_id (number) | county : county_id (number) , population (number) , county_id (number)"} @@ -2800,7 +2800,7 @@ {"db_id": "election", "question": "Which parties have delegates in both the \"Appropriations\" committee and the \"Economic Matters\" committee?", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "party : party (text) , party_id (number) , party_id (number) | election : party (number) , committee (text) , election_id (number)"} {"db_id": "election", "question": "Which committees have delegates from both democratic party and liberal party?", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "election : committee (text) , party (number) , election_id (number) | party : party (text) , party_id (number) , party_id (number)"} {"db_id": "election", "question": "Find the committees that have delegates both from from the democratic party and the liberal party.", "schema": "county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)", "summarized-schema": "election : committee (text) , party (number) , election_id (number) | party : party (text) , party_id (number) , party_id (number)"} -{"db_id": "news_report", "question": "How many journalists are there?", "schema": "event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)", "summarized-schema": ""} +{"db_id": "news_report", "question": "How many journalists are there?", "schema": "event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)", "summarized-schema": "journalist : journalist_id (number)"} {"db_id": "news_report", "question": "List the names of journalists in ascending order of years working.", "schema": "event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)", "summarized-schema": "event : name (text) , event_id (number) | journalist : name (text) , years_working (number) , journalist_id (number)"} {"db_id": "news_report", "question": "What are the nationalities and ages of journalists?", "schema": "event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)", "summarized-schema": "journalist : nationality (text) , age (text) , journalist_id (number)"} {"db_id": "news_report", "question": "Show the names of journalists from \"England\" or \"Wales\".", "schema": "event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)", "summarized-schema": "event : name (text) , event_id (number) | journalist : name (text) , nationality (text) , journalist_id (number)"} @@ -2834,15 +2834,15 @@ {"db_id": "restaurant_1", "question": "Which major has between 2 and 30 number of students? List major and the number of students.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "student : major (number) , stuid (number)"} {"db_id": "restaurant_1", "question": "Which student's age is older than 18 and is majoring in 600? List each student's first and last name.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "student : fname (text) , lname (text) , age (number) , major (number) , stuid (number)"} {"db_id": "restaurant_1", "question": "List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "student : fname (text) , lname (text) , age (number) , major (number) , sex (text) , stuid (number)"} -{"db_id": "restaurant_1", "question": "How many restaurant is the Sandwich type restaurant?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": ""} -{"db_id": "restaurant_1", "question": "How long does student Linda Smith spend on the restaurant in total?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "visits_restaurant : spent (number)"} -{"db_id": "restaurant_1", "question": "How many times has the student Linda Smith visited Subway?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": ""} -{"db_id": "restaurant_1", "question": "When did Linda Smith visit Subway?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "visits_restaurant : time (time)"} -{"db_id": "restaurant_1", "question": "At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": ""} -{"db_id": "restaurant_1", "question": "Which student visited restaurant most often? List student's first name and last name.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": ""} +{"db_id": "restaurant_1", "question": "How many restaurant is the Sandwich type restaurant?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "restaurant : resid (number) | restaurant_type : restypeid (number)"} +{"db_id": "restaurant_1", "question": "How long does student Linda Smith spend on the restaurant in total?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "visits_restaurant : spent (number) | student : stuid (number)"} +{"db_id": "restaurant_1", "question": "How many times has the student Linda Smith visited Subway?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "student : stuid (number) | restaurant : resid (number)"} +{"db_id": "restaurant_1", "question": "When did Linda Smith visit Subway?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "visits_restaurant : time (time) | student : stuid (number) | restaurant : resid (number)"} +{"db_id": "restaurant_1", "question": "At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "restaurant : resid (number)"} +{"db_id": "restaurant_1", "question": "Which student visited restaurant most often? List student's first name and last name.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)", "summarized-schema": "student : stuid (number)"} {"db_id": "customer_deliveries", "question": "Find the ids of orders whose status is 'Success'.", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": "actual_orders : actual_order_id (number) , order_status_code (text) , actual_order_id (number) | actual_order_products : actual_order_id (number) | order_deliveries : actual_order_id (number)"} {"db_id": "customer_deliveries", "question": "Find the name and price of the product that has been ordered the greatest number of times.", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": "products : product_name (text) , product_price (number) , product_id (number) , product_id (number) | regular_order_products : product_id (number) | actual_order_products : product_id (number)"} -{"db_id": "customer_deliveries", "question": "Find the number of customers in total.", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": ""} +{"db_id": "customer_deliveries", "question": "Find the number of customers in total.", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": "customers : customer_id (number)"} {"db_id": "customer_deliveries", "question": "How many different payment methods are there?", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": "customers : payment_method (text) , customer_id (number)"} {"db_id": "customer_deliveries", "question": "Show the details of all trucks in the order of their license number.", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": "trucks : truck_details (text) , truck_licence_number (text) , truck_id (number)"} {"db_id": "customer_deliveries", "question": "Find the name of the most expensive product.", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": "products : product_name (text) , product_price (number) , product_id (number)"} @@ -2856,12 +2856,12 @@ {"db_id": "customer_deliveries", "question": "List the names of all routes in alphabetic order.", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": "delivery_routes : route_name (text) , route_id (number)"} {"db_id": "customer_deliveries", "question": "Find the name of route that has the highest number of deliveries.", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": "delivery_routes : route_name (text) , route_id (number) , route_id (number) | delivery_route_locations : route_id (number) , location_code (number)"} {"db_id": "customer_deliveries", "question": "List the state names and the number of customers living in each state.", "schema": "products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)", "summarized-schema": "addresses : state_province_county (text) , address_id (number) , address_id (number) | customer_addresses : address_id (number)"} -{"db_id": "icfp_1", "question": "How many authors are there?", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": ""} -{"db_id": "icfp_1", "question": "Count the number of authors.", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": ""} -{"db_id": "icfp_1", "question": "How many institutions are there?", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": ""} -{"db_id": "icfp_1", "question": "Count the number of institutions.", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": ""} -{"db_id": "icfp_1", "question": "How many papers are published in total?", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": ""} -{"db_id": "icfp_1", "question": "Count the number of total papers.", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": ""} +{"db_id": "icfp_1", "question": "How many authors are there?", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": "authors : authid (number)"} +{"db_id": "icfp_1", "question": "Count the number of authors.", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": "authors : authid (number)"} +{"db_id": "icfp_1", "question": "How many institutions are there?", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": "inst : instid (number)"} +{"db_id": "icfp_1", "question": "Count the number of institutions.", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": "inst : instid (number)"} +{"db_id": "icfp_1", "question": "How many papers are published in total?", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": "papers : paperid (number)"} +{"db_id": "icfp_1", "question": "Count the number of total papers.", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": "papers : paperid (number)"} {"db_id": "icfp_1", "question": "What are the titles of papers published by \"Jeremy Gibbons\"?", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": "papers : title (text) , paperid (number) , paperid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , paperid (number) , authid (number)"} {"db_id": "icfp_1", "question": "Find the titles of all the papers written by \"Jeremy Gibbons\"", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": "papers : title (text) , paperid (number) , paperid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , paperid (number) , authid (number)"} {"db_id": "icfp_1", "question": "Find all the papers published by \"Aaron Turon\".", "schema": "inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)", "summarized-schema": "papers : title (text) , paperid (number) , paperid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , paperid (number) , authid (number)"} @@ -2978,8 +2978,8 @@ {"db_id": "sakila_1", "question": "Give the full name and staff id of the staff who has handled the fewest payments.", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "actor : first_name (text) , last_name (text) , actor_id (number) | customer : first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number) , staff_id (number) | payment : staff_id (number) , payment_id (number) | rental : staff_id (number) , rental_id (number)"} {"db_id": "sakila_1", "question": "Which language does the film AIRPORT POLLOCK use? List the language name.", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "category : name (text) , category_id (number) | language : name (text) , language_id (number) , language_id (number) | film : language_id (number) , title (text) , film_id (number) | film_text : title (text) , film_id (number)"} {"db_id": "sakila_1", "question": "What is the name of the language that the film 'AIRPORT POLLOCK' is in?", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "category : name (text) , category_id (number) | language : name (text) , language_id (number) , language_id (number) | film : language_id (number) , title (text) , film_id (number) | film_text : title (text) , film_id (number)"} -{"db_id": "sakila_1", "question": "How many stores are there?", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": ""} -{"db_id": "sakila_1", "question": "Count the number of stores.", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": ""} +{"db_id": "sakila_1", "question": "How many stores are there?", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "store : store_id (number)"} +{"db_id": "sakila_1", "question": "Count the number of stores.", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "store : store_id (number)"} {"db_id": "sakila_1", "question": "How many kinds of different ratings are listed?", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "film : rating (text) , film_id (number)"} {"db_id": "sakila_1", "question": "Count the number of different film ratings.", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "film : rating (text) , film_id (number)"} {"db_id": "sakila_1", "question": "Which movies have 'Deleted Scenes' as a substring in the special feature?", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "film : title (text) , special_features (text) , film_id (number) | film_text : title (text) , film_id (number)"} @@ -3004,8 +3004,8 @@ {"db_id": "sakila_1", "question": "Give the address of the staff member who has the first name Elsa.", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "address : address (text) , address_id (number) , address_id (number) | customer : address_id (number) , first_name (text) , customer_id (number) | staff : address_id (number) , first_name (text) , staff_id (number) | store : address_id (number) , store_id (number) | actor : first_name (text) , actor_id (number)"} {"db_id": "sakila_1", "question": "What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "actor : first_name (text) , actor_id (number) | customer : first_name (text) , customer_id (number) , customer_id (number) | staff : first_name (text) , staff_id (number) | payment : customer_id (number) , payment_id (number) | rental : customer_id (number) , rental_date (time) , rental_id (number)"} {"db_id": "sakila_1", "question": "Return the first names of customers who did not rented a film after the date '2005-08-23 02:06:01'.", "schema": "actor : actor_id (number) , first_name (text) , last_name (text) , last_update (time) | address : address_id (number) , address (text) , address2 (text) , district (text) , city_id (number) , postal_code (text) , phone (text) , last_update (time) | category : category_id (number) , name (text) , last_update (time) | city : city_id (number) , city (text) , country_id (number) , last_update (time) | country : country_id (number) , country (text) , last_update (time) | customer : customer_id (number) , store_id (number) , first_name (text) , last_name (text) , email (text) , address_id (number) , active (boolean) , create_date (time) , last_update (time) | film : film_id (number) , title (text) , description (text) , release_year (time) , language_id (number) , original_language_id (number) , rental_duration (number) , rental_rate (number) , length (number) , replacement_cost (number) , rating (text) , special_features (text) , last_update (time) | film_actor : actor_id (number) , film_id (number) , last_update (time) | film_category : film_id (number) , category_id (number) , last_update (time) | film_text : film_id (number) , title (text) , description (text) | inventory : inventory_id (number) , film_id (number) , store_id (number) , last_update (time) | language : language_id (number) , name (text) , last_update (time) | payment : payment_id (number) , customer_id (number) , staff_id (number) , rental_id (number) , amount (number) , payment_date (time) , last_update (time) | rental : rental_id (number) , rental_date (time) , inventory_id (number) , customer_id (number) , return_date (time) , staff_id (number) , last_update (time) | staff : staff_id (number) , first_name (text) , last_name (text) , address_id (number) , picture (others) , email (text) , store_id (number) , active (boolean) , username (text) , password (text) , last_update (time) | store : store_id (number) , manager_staff_id (number) , address_id (number) , last_update (time)", "summarized-schema": "actor : first_name (text) , actor_id (number) | customer : first_name (text) , customer_id (number) , customer_id (number) | staff : first_name (text) , staff_id (number) | payment : customer_id (number) , payment_id (number) | rental : customer_id (number) , rental_date (time) , rental_id (number)"} -{"db_id": "loan_1", "question": "How many bank branches are there?", "schema": "bank : branch_id (number) , bname (text) , no_of_customers (number) , city (text) , state (text) | customer : cust_id (text) , cust_name (text) , acc_type (text) , acc_bal (number) , no_of_loans (number) , credit_score (number) , branch_id (number) , state (text) | loan : loan_id (text) , loan_type (text) , cust_id (text) , branch_id (text) , amount (number)", "summarized-schema": ""} -{"db_id": "loan_1", "question": "Count the number of bank branches.", "schema": "bank : branch_id (number) , bname (text) , no_of_customers (number) , city (text) , state (text) | customer : cust_id (text) , cust_name (text) , acc_type (text) , acc_bal (number) , no_of_loans (number) , credit_score (number) , branch_id (number) , state (text) | loan : loan_id (text) , loan_type (text) , cust_id (text) , branch_id (text) , amount (number)", "summarized-schema": ""} +{"db_id": "loan_1", "question": "How many bank branches are there?", "schema": "bank : branch_id (number) , bname (text) , no_of_customers (number) , city (text) , state (text) | customer : cust_id (text) , cust_name (text) , acc_type (text) , acc_bal (number) , no_of_loans (number) , credit_score (number) , branch_id (number) , state (text) | loan : loan_id (text) , loan_type (text) , cust_id (text) , branch_id (text) , amount (number)", "summarized-schema": "bank : branch_id (number)"} +{"db_id": "loan_1", "question": "Count the number of bank branches.", "schema": "bank : branch_id (number) , bname (text) , no_of_customers (number) , city (text) , state (text) | customer : cust_id (text) , cust_name (text) , acc_type (text) , acc_bal (number) , no_of_loans (number) , credit_score (number) , branch_id (number) , state (text) | loan : loan_id (text) , loan_type (text) , cust_id (text) , branch_id (text) , amount (number)", "summarized-schema": "bank : branch_id (number)"} {"db_id": "loan_1", "question": "How many customers are there?", "schema": "bank : branch_id (number) , bname (text) , no_of_customers (number) , city (text) , state (text) | customer : cust_id (text) , cust_name (text) , acc_type (text) , acc_bal (number) , no_of_loans (number) , credit_score (number) , branch_id (number) , state (text) | loan : loan_id (text) , loan_type (text) , cust_id (text) , branch_id (text) , amount (number)", "summarized-schema": "bank : no_of_customers (number) , branch_id (number)"} {"db_id": "loan_1", "question": "What is the total number of customers across banks?", "schema": "bank : branch_id (number) , bname (text) , no_of_customers (number) , city (text) , state (text) | customer : cust_id (text) , cust_name (text) , acc_type (text) , acc_bal (number) , no_of_loans (number) , credit_score (number) , branch_id (number) , state (text) | loan : loan_id (text) , loan_type (text) , cust_id (text) , branch_id (text) , amount (number)", "summarized-schema": "bank : no_of_customers (number) , branch_id (number)"} {"db_id": "loan_1", "question": "Find the number of customers in the banks at New York City.", "schema": "bank : branch_id (number) , bname (text) , no_of_customers (number) , city (text) , state (text) | customer : cust_id (text) , cust_name (text) , acc_type (text) , acc_bal (number) , no_of_loans (number) , credit_score (number) , branch_id (number) , state (text) | loan : loan_id (text) , loan_type (text) , cust_id (text) , branch_id (text) , amount (number)", "summarized-schema": "bank : no_of_customers (number) , city (text) , branch_id (number)"} @@ -3245,8 +3245,8 @@ {"db_id": "college_1", "question": "What are the first names of all students in course ACCT-211?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "student : stu_fname (text) , stu_num (number) , stu_num (number) | class : class_code (text) , crs_code (text) , class_code (number) | enroll : class_code (text) , stu_num (number) | course : crs_code (text) , crs_code (number)"} {"db_id": "college_1", "question": "What is the first name of students enrolled in class ACCT-211 and got grade C?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "student : stu_fname (text) , stu_num (number) , stu_num (number) | class : class_code (text) , crs_code (text) , class_code (number) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | course : crs_code (text) , crs_code (number)"} {"db_id": "college_1", "question": "What are the first names of all students who took ACCT-211 and received a C?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "student : stu_fname (text) , stu_num (number) , stu_num (number) | class : class_code (text) , crs_code (text) , class_code (number) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | course : crs_code (text) , crs_code (number)"} -{"db_id": "college_1", "question": "Find the total number of employees.", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": ""} -{"db_id": "college_1", "question": "How many employees are there all together?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": ""} +{"db_id": "college_1", "question": "Find the total number of employees.", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "employee : emp_num (number)"} +{"db_id": "college_1", "question": "How many employees are there all together?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "employee : emp_num (number)"} {"db_id": "college_1", "question": "How many professors do have a Ph.D. degree?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "professor : prof_high_degree (text)"} {"db_id": "college_1", "question": "What is the total number of professors with a Ph.D. ?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "professor : prof_high_degree (text)"} {"db_id": "college_1", "question": "How many students are enrolled in the class taught by some professor from the accounting department?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "class : class_code (text) , crs_code (text) , class_code (number) | enroll : class_code (text) | course : crs_code (text) , dept_code (text) , crs_code (number) | department : dept_code (text) , dept_name (text) , dept_code (number) | professor : dept_code (text) | student : dept_code (text) , stu_num (number)"} @@ -3335,8 +3335,8 @@ {"db_id": "college_1", "question": "What is the name of the department that offers a course that has a description including the word \"Statistics\"?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "department : dept_name (text) , dept_code (text) , dept_code (number) | course : dept_code (text) , crs_description (text) , crs_code (number) | professor : dept_code (text) | student : dept_code (text) , stu_num (number)"} {"db_id": "college_1", "question": "What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "student : stu_fname (text) , stu_num (number) , stu_lname (text) , stu_num (number) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text) , class_code (number) | course : crs_code (text) , crs_code (number)"} {"db_id": "college_1", "question": "What is the first name of the student whose last name starts with the letter S and is taking ACCT-211?", "schema": "class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)", "summarized-schema": "student : stu_fname (text) , stu_num (number) , stu_lname (text) , stu_num (number) | enroll : stu_num (number) , class_code (text) | class : class_code (text) , crs_code (text) , class_code (number) | course : crs_code (text) , crs_code (number)"} -{"db_id": "sports_competition", "question": "How many clubs are there?", "schema": "club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)", "summarized-schema": ""} -{"db_id": "sports_competition", "question": "What is the total number of clubs?", "schema": "club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)", "summarized-schema": ""} +{"db_id": "sports_competition", "question": "How many clubs are there?", "schema": "club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)", "summarized-schema": "club : club_id (number)"} +{"db_id": "sports_competition", "question": "What is the total number of clubs?", "schema": "club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)", "summarized-schema": "club : club_id (number)"} {"db_id": "sports_competition", "question": "List the distinct region of clubs in ascending alphabetical order.", "schema": "club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)", "summarized-schema": "club : region (text) , club_id (number)"} {"db_id": "sports_competition", "question": "What are the different regions of clubs in ascending alphabetical order?", "schema": "club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)", "summarized-schema": "club : region (text) , club_id (number)"} {"db_id": "sports_competition", "question": "What is the average number of gold medals for clubs?", "schema": "club : club_id (number) , name (text) , region (text) , start_year (text) | club_rank : rank (number) , club_id (number) , gold (number) , silver (number) , bronze (number) , total (number) | player : player_id (number) , name (text) , position (text) , club_id (number) , apps (number) , tries (number) , goals (text) , points (number) | competition : competition_id (number) , year (number) , competition_type (text) , country (text) | competition_result : competition_id (number) , club_id_1 (number) , club_id_2 (number) , score (text)", "summarized-schema": "club_rank : gold (number) , rank (number)"} @@ -3732,8 +3732,8 @@ {"db_id": "program_share", "question": "Give me a list of all the channel names sorted by the channel rating in descending order.", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : name (text) , program_id (number) | channel : name (text) , rating_in_percent (number) , channel_id (number)"} {"db_id": "program_share", "question": "What is the owner of the channel that has the highest rating ratio?", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : owner (text) , program_id (number) | channel : owner (text) , rating_in_percent (number) , channel_id (number)"} {"db_id": "program_share", "question": "Show me the owner of the channel with the highest rating.", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : owner (text) , program_id (number) | channel : owner (text) , rating_in_percent (number) , channel_id (number)"} -{"db_id": "program_share", "question": "how many programs are there?", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": ""} -{"db_id": "program_share", "question": "Count the number of programs.", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": ""} +{"db_id": "program_share", "question": "how many programs are there?", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : program_id (number)"} +{"db_id": "program_share", "question": "Count the number of programs.", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : program_id (number)"} {"db_id": "program_share", "question": "list all the names of programs, ordering by launch time.", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : name (text) , launch (number) , program_id (number) | channel : name (text) , channel_id (number)"} {"db_id": "program_share", "question": "What is the list of program names, sorted by the order of launch date?", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : name (text) , launch (number) , program_id (number) | channel : name (text) , channel_id (number)"} {"db_id": "program_share", "question": "List the name, origin and owner of each program.", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : name (text) , origin (text) , owner (text) , program_id (number) | channel : name (text) , owner (text) , channel_id (number)"} @@ -3766,8 +3766,8 @@ {"db_id": "program_share", "question": "What is the total rating of channel for each channel owner?", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "channel : rating_in_percent (number) , owner (text) , channel_id (number) | program : owner (text) , program_id (number)"} {"db_id": "program_share", "question": "Find the name of the program that is broadcast most frequently.", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : name (text) , program_id (number) , program_id (number) | channel : name (text) , channel_id (number) | broadcast : program_id (number) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)"} {"db_id": "program_share", "question": "Which program is broadcast most frequently? Give me the program name.", "schema": "program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)", "summarized-schema": "program : name (text) , program_id (number) , program_id (number) | channel : name (text) , channel_id (number) | broadcast : program_id (number) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)"} -{"db_id": "e_learning", "question": "How many courses are there in total?", "schema": "course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)", "summarized-schema": ""} -{"db_id": "e_learning", "question": "Find the total number of courses offered.", "schema": "course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)", "summarized-schema": ""} +{"db_id": "e_learning", "question": "How many courses are there in total?", "schema": "course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)", "summarized-schema": "courses : course_id (number)"} +{"db_id": "e_learning", "question": "Find the total number of courses offered.", "schema": "course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)", "summarized-schema": "courses : course_id (number)"} {"db_id": "e_learning", "question": "What are the descriptions of the courses with name \"database\"?", "schema": "course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)", "summarized-schema": "courses : course_description (text) , course_name (text) , course_id (number)"} {"db_id": "e_learning", "question": "Return the description for the courses named \"database\".", "schema": "course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)", "summarized-schema": "courses : course_description (text) , course_name (text) , course_id (number)"} {"db_id": "e_learning", "question": "What are the addresses of the course authors or tutors with personal name \"Cathrine\"", "schema": "course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)", "summarized-schema": "course_authors_and_tutors : address_line_1 (text) , personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)"} @@ -3886,8 +3886,8 @@ {"db_id": "insurance_policies", "question": "Return the distinct customer details.", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": "customers : customer_details (text) , customer_id (number)"} {"db_id": "insurance_policies", "question": "Which kind of policy type was chosen by the most customers?", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": "customer_policies : policy_type_code (text) , policy_id (number)"} {"db_id": "insurance_policies", "question": "Find the policy type the most customers choose.", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": "customer_policies : policy_type_code (text) , policy_id (number)"} -{"db_id": "insurance_policies", "question": "How many settlements are there in total?", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": ""} -{"db_id": "insurance_policies", "question": "Count the total number of settlements made.", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": ""} +{"db_id": "insurance_policies", "question": "How many settlements are there in total?", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": "settlements : settlement_id (number)"} +{"db_id": "insurance_policies", "question": "Count the total number of settlements made.", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": "settlements : settlement_id (number)"} {"db_id": "insurance_policies", "question": "Which Payments were processed with Visa? List the payment Id, the date and the amount.", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": "payments : payment_id (number) , date_payment_made (time) , amount_payment (number) , payment_method_code (text) , payment_id (number)"} {"db_id": "insurance_policies", "question": "Give me the payment Id, the date and the amount for all the payments processed with Visa.", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": "payments : payment_id (number) , date_payment_made (time) , amount_payment (number) , payment_method_code (text) , payment_id (number)"} {"db_id": "insurance_policies", "question": "List the details of the customers who do not have any policies.", "schema": "customers : customer_id (number) , customer_details (text) | customer_policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claims : claim_id (number) , policy_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) | settlements : settlement_id (number) , claim_id (number) , date_claim_made (time) , date_claim_settled (time) , amount_claimed (number) , amount_settled (number) , customer_policy_id (number) | payments : payment_id (number) , settlement_id (number) , payment_method_code (text) , date_payment_made (time) , amount_payment (number)", "summarized-schema": "customers : customer_details (text) , customer_id (number) , customer_id (number) | customer_policies : customer_id (number) , policy_id (number)"} @@ -3916,14 +3916,14 @@ {"db_id": "hospital_1", "question": "What are the name and primarily affiliated department name of each physician?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) , employeeid (number) | department : name (text) , departmentid (number) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) , employeeid (number) | medication : name (text) , code (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , appointmentid (number) | prescribes : physician (number) , physician (number) | undergoes : physician (number) , patient (number)"} {"db_id": "hospital_1", "question": "What is the name of the patient who made the most recent appointment?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) | appointment : patient (number) , start (time) , appointmentid (number) | prescribes : patient (number) , appointment (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , patient (number)"} {"db_id": "hospital_1", "question": "Find the name of the patient who made the appointment with the most recent start date.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) | appointment : patient (number) , start (time) , appointmentid (number) | prescribes : patient (number) , appointment (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , patient (number)"} -{"db_id": "hospital_1", "question": "How many patients stay in room 112?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , room (number) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number)"} -{"db_id": "hospital_1", "question": "Count the number of patients who stayed in room 112.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , room (number) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number)"} +{"db_id": "hospital_1", "question": "How many patients stay in room 112?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , room (number) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number) | patient : ssn (number) | room : roomnumber (number)"} +{"db_id": "hospital_1", "question": "Count the number of patients who stayed in room 112.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , room (number) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number) | patient : ssn (number) | room : roomnumber (number)"} {"db_id": "hospital_1", "question": "How many patients' prescriptions are made by physician John Dorian?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : ssn (number) , employeeid (number) , name (text) , employeeid (number) | patient : ssn (number) , name (text) , ssn (number) | nurse : ssn (number) , employeeid (number) , name (text) , employeeid (number) | appointment : patient (number) , physician (number) , appointmentid (number) | prescribes : patient (number) , physician (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , physician (number) , patient (number) | affiliated_with : physician (number) , physician (number) | trained_in : physician (number) , physician (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | medication : name (text) , code (number)"} {"db_id": "hospital_1", "question": "Find the number of patients' prescriptions physician John Dorian made.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : ssn (number) , employeeid (number) , name (text) , employeeid (number) | patient : ssn (number) , name (text) , ssn (number) | nurse : ssn (number) , employeeid (number) , name (text) , employeeid (number) | appointment : patient (number) , physician (number) , appointmentid (number) | prescribes : patient (number) , physician (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , physician (number) , patient (number) | affiliated_with : physician (number) , physician (number) | trained_in : physician (number) , physician (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | medication : name (text) , code (number)"} -{"db_id": "hospital_1", "question": "Find the name of medication used on the patient who stays in room 111?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) , code (number) | undergoes : stay (number) , patient (number) , patient (number) | appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , medication (number) , physician (number) | stay : patient (number) , room (number) , stayid (number)"} -{"db_id": "hospital_1", "question": "What is the name of the medication used for the patient staying in room 111?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) , code (number) | undergoes : stay (number) , patient (number) , patient (number) | appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , medication (number) , physician (number) | stay : patient (number) , room (number) , stayid (number)"} -{"db_id": "hospital_1", "question": "Find the patient who most recently stayed in room 111.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , room (number) , staystart (time) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number)"} -{"db_id": "hospital_1", "question": "What is the id of the patient who stayed in room 111 most recently?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , room (number) , staystart (time) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number)"} +{"db_id": "hospital_1", "question": "Find the name of medication used on the patient who stays in room 111?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) , code (number) | undergoes : stay (number) , patient (number) , patient (number) | appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , medication (number) , physician (number) | stay : patient (number) , room (number) , stayid (number) | room : roomnumber (number)"} +{"db_id": "hospital_1", "question": "What is the name of the medication used for the patient staying in room 111?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) , code (number) | undergoes : stay (number) , patient (number) , patient (number) | appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , medication (number) , physician (number) | stay : patient (number) , room (number) , stayid (number) | room : roomnumber (number)"} +{"db_id": "hospital_1", "question": "Find the patient who most recently stayed in room 111.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , room (number) , staystart (time) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number) | patient : ssn (number) | room : roomnumber (number)"} +{"db_id": "hospital_1", "question": "What is the id of the patient who stayed in room 111 most recently?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , room (number) , staystart (time) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number) | patient : ssn (number) | room : roomnumber (number)"} {"db_id": "hospital_1", "question": "What is the name of the nurse has the most appointments?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) , employeeid (number) | medication : name (text) , code (number) | on_call : nurse (number) , nurse (number) | prescribes : appointment (number) , physician (number) | appointment : prepnurse (number) , appointmentid (number)"} {"db_id": "hospital_1", "question": "Find the name of the nurse who has the largest number of appointments.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) , employeeid (number) | medication : name (text) , code (number) | on_call : nurse (number) , nurse (number) | prescribes : appointment (number) , physician (number) | appointment : prepnurse (number) , appointmentid (number)"} {"db_id": "hospital_1", "question": "How many patients do each physician take care of? List their names and number of patients they take care of.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , pcp (number) , ssn (number) | nurse : name (text) , employeeid (number) , employeeid (number) | medication : name (text) , code (number) | affiliated_with : physician (number) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , patient (number) , appointmentid (number) | prescribes : physician (number) , patient (number) , physician (number) | undergoes : physician (number) , patient (number) , patient (number) | stay : patient (number) , stayid (number)"} @@ -3946,10 +3946,10 @@ {"db_id": "hospital_1", "question": "How many medications are prescribed for each brand?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) | medication : name (text) , code (number) , brand (text) , code (number) | prescribes : medication (number) , physician (number)"} {"db_id": "hospital_1", "question": "Find the name of physicians whose position title contains the word 'senior'.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , position (text) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , position (text) , employeeid (number) | medication : name (text) , code (number) | affiliated_with : physician (number) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , appointmentid (number) | prescribes : physician (number) , physician (number) | undergoes : physician (number) , patient (number)"} {"db_id": "hospital_1", "question": "What are the names of the physicians who have 'senior' in their titles.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , position (text) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , position (text) , employeeid (number) | medication : name (text) , code (number) | affiliated_with : physician (number) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , appointmentid (number) | prescribes : physician (number) , physician (number) | undergoes : physician (number) , patient (number)"} -{"db_id": "hospital_1", "question": "Find the patient who has the most recent undergoing treatment?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , dateundergoes (time) , patient (number)"} -{"db_id": "hospital_1", "question": "Which patient is undergoing the most recent treatment?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , dateundergoes (time) , patient (number)"} -{"db_id": "hospital_1", "question": "Find the names of all patients who have an undergoing treatment and are staying in room 111.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) | appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , stayid (number) , room (number) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number)"} -{"db_id": "hospital_1", "question": "What are the names of patients who are staying in room 111 and have an undergoing treatment?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) | appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , stayid (number) , room (number) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number)"} +{"db_id": "hospital_1", "question": "Find the patient who has the most recent undergoing treatment?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , dateundergoes (time) , patient (number) | patient : ssn (number)"} +{"db_id": "hospital_1", "question": "Which patient is undergoing the most recent treatment?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , dateundergoes (time) , patient (number) | patient : ssn (number)"} +{"db_id": "hospital_1", "question": "Find the names of all patients who have an undergoing treatment and are staying in room 111.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) | appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , stayid (number) , room (number) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number) | room : roomnumber (number)"} +{"db_id": "hospital_1", "question": "What are the names of patients who are staying in room 111 and have an undergoing treatment?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) | appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , physician (number) | stay : patient (number) , stayid (number) , room (number) , stayid (number) | undergoes : patient (number) , stay (number) , patient (number) | room : roomnumber (number)"} {"db_id": "hospital_1", "question": "List the names of all distinct nurses ordered by alphabetical order?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) | medication : name (text) , code (number) | on_call : nurse (number) , nurse (number)"} {"db_id": "hospital_1", "question": "What is the alphabetically ordered list of all the distinct names of nurses?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) | medication : name (text) , code (number) | on_call : nurse (number) , nurse (number)"} {"db_id": "hospital_1", "question": "Find the names of nurses who are nursing an undergoing treatment.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) , employeeid (number) | medication : name (text) , code (number) | on_call : nurse (number) , nurse (number) | undergoes : assistingnurse (number) , patient (number)"} @@ -3958,12 +3958,12 @@ {"db_id": "hospital_1", "question": "What is the alphabetically ordered list of all distinct medications?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) | medication : name (text) , code (number) | prescribes : medication (number) , physician (number)"} {"db_id": "hospital_1", "question": "What are the names of the physician who prescribed the highest dose?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) , employeeid (number) | medication : name (text) , code (number) | affiliated_with : physician (number) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , appointmentid (number) | prescribes : physician (number) , dose (text) , physician (number) | undergoes : physician (number) , patient (number)"} {"db_id": "hospital_1", "question": "Find the physician who prescribed the highest dose. What is his or her name?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) , employeeid (number) | medication : name (text) , code (number) | affiliated_with : physician (number) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , appointmentid (number) | prescribes : physician (number) , dose (text) , physician (number) | undergoes : physician (number) , patient (number)"} -{"db_id": "hospital_1", "question": "List the physicians' employee ids together with their primary affiliation departments' ids.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , appointmentid (number) | prescribes : physician (number) , physician (number) | undergoes : physician (number) , patient (number)"} -{"db_id": "hospital_1", "question": "What are each physician's employee id and department id primarily affiliated.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , appointmentid (number) | prescribes : physician (number) , physician (number) | undergoes : physician (number) , patient (number)"} +{"db_id": "hospital_1", "question": "List the physicians' employee ids together with their primary affiliation departments' ids.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , appointmentid (number) | prescribes : physician (number) , physician (number) | undergoes : physician (number) , patient (number) | physician : employeeid (number) | department : departmentid (number)"} +{"db_id": "hospital_1", "question": "What are each physician's employee id and department id primarily affiliated.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) , physician (number) | trained_in : physician (number) , physician (number) | appointment : physician (number) , appointmentid (number) | prescribes : physician (number) , physician (number) | undergoes : physician (number) , patient (number) | physician : employeeid (number) | department : departmentid (number)"} {"db_id": "hospital_1", "question": "List the names of departments where some physicians are primarily affiliated with.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) | medication : name (text) , code (number) | affiliated_with : department (number) , primaryaffiliation (boolean) , physician (number)"} {"db_id": "hospital_1", "question": "What are the names of departments that have primarily affiliated physicians.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) | medication : name (text) , code (number) | affiliated_with : department (number) , primaryaffiliation (boolean) , physician (number)"} -{"db_id": "hospital_1", "question": "What nurses are on call with block floor 1 and block code 1? Tell me their names.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "on_call : nurse (number) , blockfloor (number) , blockcode (number) , nurse (number) | block : blockfloor (number) , blockcode (number) , blockfloor (number) | room : blockfloor (number) , blockcode (number) , roomnumber (number)"} -{"db_id": "hospital_1", "question": "Find the ids of the nurses who are on call in block floor 1 and block code 1.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "on_call : nurse (number) , blockfloor (number) , blockcode (number) , nurse (number) | block : blockfloor (number) , blockcode (number) , blockfloor (number) | room : blockfloor (number) , blockcode (number) , roomnumber (number)"} +{"db_id": "hospital_1", "question": "What nurses are on call with block floor 1 and block code 1? Tell me their names.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "on_call : nurse (number) , blockfloor (number) , blockcode (number) , nurse (number) | block : blockfloor (number) , blockcode (number) , blockfloor (number) | room : blockfloor (number) , blockcode (number) , roomnumber (number) | nurse : employeeid (number)"} +{"db_id": "hospital_1", "question": "Find the ids of the nurses who are on call in block floor 1 and block code 1.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "on_call : nurse (number) , blockfloor (number) , blockcode (number) , nurse (number) | block : blockfloor (number) , blockcode (number) , blockfloor (number) | room : blockfloor (number) , blockcode (number) , roomnumber (number) | nurse : employeeid (number)"} {"db_id": "hospital_1", "question": "What are the highest cost, lowest cost and average cost of procedures?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "procedures : cost (number) , code (number) | undergoes : procedures (number) , patient (number)"} {"db_id": "hospital_1", "question": "Tell me the highest, lowest, and average cost of procedures.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "procedures : cost (number) , code (number) | undergoes : procedures (number) , patient (number)"} {"db_id": "hospital_1", "question": "List the name and cost of all procedures sorted by the cost from the highest to the lowest.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , cost (number) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) | medication : name (text) , code (number) | undergoes : procedures (number) , patient (number)"} @@ -3992,12 +3992,12 @@ {"db_id": "hospital_1", "question": "What are the names of patients who are not taking the medication of Procrastin-X.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , ssn (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) , code (number) | patient : name (text) , ssn (number) , ssn (number) | nurse : name (text) , ssn (number) , employeeid (number) | medication : name (text) , code (number) , code (number) | appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , medication (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , patient (number)"} {"db_id": "hospital_1", "question": "Find the number of patients who are not using the medication of Procrastin-X.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , medication (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , patient (number) | physician : ssn (number) , name (text) , employeeid (number) | patient : ssn (number) , name (text) , ssn (number) | nurse : ssn (number) , name (text) , employeeid (number) | procedures : code (number) , name (text) , code (number) | medication : code (number) , name (text) , code (number) | department : name (text) , departmentid (number)"} {"db_id": "hospital_1", "question": "How many patients are not using Procrastin-X as medication?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "appointment : patient (number) , appointmentid (number) | prescribes : patient (number) , medication (number) , physician (number) | stay : patient (number) , stayid (number) | undergoes : patient (number) , patient (number) | physician : ssn (number) , name (text) , employeeid (number) | patient : ssn (number) , name (text) , ssn (number) | nurse : ssn (number) , name (text) , employeeid (number) | procedures : code (number) , name (text) , code (number) | medication : code (number) , name (text) , code (number) | department : name (text) , departmentid (number)"} -{"db_id": "hospital_1", "question": "How many appointments are there?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "prescribes : appointment (number) , physician (number)"} -{"db_id": "hospital_1", "question": "Count how many appointments have been made in total.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "prescribes : appointment (number) , physician (number)"} +{"db_id": "hospital_1", "question": "How many appointments are there?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "prescribes : appointment (number) , physician (number) | appointment : appointmentid (number)"} +{"db_id": "hospital_1", "question": "Count how many appointments have been made in total.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "prescribes : appointment (number) , physician (number) | appointment : appointmentid (number)"} {"db_id": "hospital_1", "question": "Find the names of nurses who are on call.", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) , employeeid (number) | medication : name (text) , code (number) | on_call : nurse (number) , nurse (number)"} {"db_id": "hospital_1", "question": "What are the distinct names of nurses on call?", "schema": "physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)", "summarized-schema": "physician : name (text) , employeeid (number) , employeeid (number) | department : name (text) , departmentid (number) | procedures : name (text) , code (number) | patient : name (text) , ssn (number) | nurse : name (text) , employeeid (number) , employeeid (number) | medication : name (text) , code (number) | on_call : nurse (number) , nurse (number)"} -{"db_id": "ship_mission", "question": "How many ships are there?", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": ""} -{"db_id": "ship_mission", "question": "What is the number of ships?", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": ""} +{"db_id": "ship_mission", "question": "How many ships are there?", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": "ship : ship_id (number)"} +{"db_id": "ship_mission", "question": "What is the number of ships?", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": "ship : ship_id (number)"} {"db_id": "ship_mission", "question": "List the name of ships in ascending order of tonnage.", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": "ship : name (text) , tonnage (number) , ship_id (number)"} {"db_id": "ship_mission", "question": "what are the names of the ships ordered by ascending tonnage?", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": "ship : name (text) , tonnage (number) , ship_id (number)"} {"db_id": "ship_mission", "question": "What are the type and nationality of ships?", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": "ship : type (text) , nationality (text) , ship_id (number)"} @@ -4026,8 +4026,8 @@ {"db_id": "ship_mission", "question": "What are the names of the ships that are not involved in any missions?", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": "ship : name (text) , ship_id (number) , ship_id (number) | mission : ship_id (number) , mission_id (number)"} {"db_id": "ship_mission", "question": "Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": "ship : type (text) , tonnage (number) , ship_id (number)"} {"db_id": "ship_mission", "question": "What are the types of the ships that have both shiips with tonnage more than 6000 and those with tonnage less than 4000?", "schema": "mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)", "summarized-schema": "ship : type (text) , tonnage (number) , ship_id (number)"} -{"db_id": "student_1", "question": "Find the number of students in total.", "schema": "list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)", "summarized-schema": ""} -{"db_id": "student_1", "question": "How many students are there?", "schema": "list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)", "summarized-schema": ""} +{"db_id": "student_1", "question": "Find the number of students in total.", "schema": "list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)", "summarized-schema": "list : lastname (number)"} +{"db_id": "student_1", "question": "How many students are there?", "schema": "list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)", "summarized-schema": "list : lastname (number)"} {"db_id": "student_1", "question": "Find the last names of students studying in room 111.", "schema": "list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)", "summarized-schema": "list : lastname (text) , classroom (number) , lastname (number) | teachers : lastname (text) , classroom (number) , lastname (number)"} {"db_id": "student_1", "question": "What are the last names of students in room 111?", "schema": "list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)", "summarized-schema": "list : lastname (text) , classroom (number) , lastname (number) | teachers : lastname (text) , classroom (number) , lastname (number)"} {"db_id": "student_1", "question": "Find the first names of students studying in room 108.", "schema": "list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)", "summarized-schema": "list : firstname (text) , classroom (number) , lastname (number) | teachers : firstname (text) , classroom (number) , lastname (number)"} @@ -4110,8 +4110,8 @@ {"db_id": "company_employee", "question": "Show the names of companies and the number of employees they have", "schema": "people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)", "summarized-schema": "people : name (text) , people_id (number) , people_id (number) | company : name (text) , company_id (number) , company_id (number) | employment : people_id (number) , company_id (number) , company_id (number)"} {"db_id": "company_employee", "question": "List the names of people that are not employed by any company", "schema": "people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)", "summarized-schema": "people : name (text) , people_id (number) , people_id (number) | company : name (text) , company_id (number) | employment : people_id (number) , company_id (number)"} {"db_id": "company_employee", "question": "list the names of the companies with more than 200 sales in the descending order of sales and profits.", "schema": "people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)", "summarized-schema": "people : name (text) , people_id (number) | company : name (text) , sales_in_billion (number) , profits_in_billion (number) , company_id (number)"} -{"db_id": "film_rank", "question": "How many film are there?", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": ""} -{"db_id": "film_rank", "question": "Count the number of films.", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": ""} +{"db_id": "film_rank", "question": "How many film are there?", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": "film : film_id (number)"} +{"db_id": "film_rank", "question": "Count the number of films.", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": "film : film_id (number)"} {"db_id": "film_rank", "question": "List the distinct director of all films.", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": "film : director (text) , film_id (number)"} {"db_id": "film_rank", "question": "What are the different film Directors?", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": "film : director (text) , film_id (number)"} {"db_id": "film_rank", "question": "What is the average ticket sales gross in dollars of films?", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": "film : gross_in_dollar (number) , film_id (number)"} @@ -4158,12 +4158,12 @@ {"db_id": "film_rank", "question": "Return the title of the film with the highest high estimate?", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": "film : title (text) , film_id (number) , film_id (number) | film_market_estimation : film_id (number) , high_estimate (number) , estimation_id (number)"} {"db_id": "film_rank", "question": "What are the titles and directors of the films were never presented in China?", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": "film : title (text) , director (text) , film_id (number) , film_id (number) | film_market_estimation : film_id (number) , market_id (number) , estimation_id (number) | market : market_id (number) , country (text) , market_id (number)"} {"db_id": "film_rank", "question": "Return the titles and directors of films that were never in the market of China.", "schema": "film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)", "summarized-schema": "film : title (text) , director (text) , film_id (number) , film_id (number) | film_market_estimation : film_id (number) , market_id (number) , estimation_id (number) | market : market_id (number) , country (text) , market_id (number)"} -{"db_id": "cre_Doc_Tracking_DB", "question": "How many calendar items do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} -{"db_id": "cre_Doc_Tracking_DB", "question": "Count the number of all the calendar items.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} +{"db_id": "cre_Doc_Tracking_DB", "question": "How many calendar items do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_calendar : calendar_date (number)"} +{"db_id": "cre_Doc_Tracking_DB", "question": "Count the number of all the calendar items.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_calendar : calendar_date (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "Show all calendar dates and day Numbers.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_calendar : calendar_date (time) , day_number (number) , calendar_date (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What are all the calendar dates and day Numbers?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_calendar : calendar_date (time) , day_number (number) , calendar_date (number)"} -{"db_id": "cre_Doc_Tracking_DB", "question": "Show the number of document types.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} -{"db_id": "cre_Doc_Tracking_DB", "question": "How many document types are there?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} +{"db_id": "cre_Doc_Tracking_DB", "question": "Show the number of document types.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_document_types : document_type_code (number)"} +{"db_id": "cre_Doc_Tracking_DB", "question": "How many document types are there?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_document_types : document_type_code (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "List all document type codes and document type names.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_code (number) | all_documents : document_type_code (text) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What are all the document type codes and document type names?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_code (number) | all_documents : document_type_code (text) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What is the name and description for document type code RV?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_document_types : document_type_name (text) , document_type_description (text) , document_type_code (text) , document_type_code (number) | all_documents : document_type_code (text) , document_id (number)"} @@ -4178,24 +4178,24 @@ {"db_id": "cre_Doc_Tracking_DB", "question": "Return the day Number and stored date for all the documents.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_calendar : day_number (number) , calendar_date (time) , calendar_date (number) | all_documents : date_stored (time) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What is the document type name for the document with name \"How to read a book\"?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_document_types : document_type_name (text) , document_type_code (text) , document_type_code (number) | all_documents : document_type_code (text) , document_name (text) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "Find the document type name of the document named \"How to read a book\".", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_document_types : document_type_name (text) , document_type_code (text) , document_type_code (number) | all_documents : document_type_code (text) , document_name (text) , document_id (number)"} -{"db_id": "cre_Doc_Tracking_DB", "question": "Show the number of locations.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} -{"db_id": "cre_Doc_Tracking_DB", "question": "How many locations are listed in the database?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} +{"db_id": "cre_Doc_Tracking_DB", "question": "Show the number of locations.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_locations : location_code (number)"} +{"db_id": "cre_Doc_Tracking_DB", "question": "How many locations are listed in the database?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_locations : location_code (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "List all location codes and location names.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_locations : location_code (text) , location_name (text) , location_code (number) | document_locations : location_code (text) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What are all the location codes and location names?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_locations : location_code (text) , location_name (text) , location_code (number) | document_locations : location_code (text) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What are the name and description for location code x?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_locations : location_name (text) , location_description (text) , location_code (text) , location_code (number) | document_locations : location_code (text) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "Give me the name and description of the location with code x.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_locations : location_name (text) , location_description (text) , location_code (text) , location_code (number) | document_locations : location_code (text) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What is the location code for the country \"Canada\"?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_locations : location_code (text) , location_name (text) , location_code (number) | document_locations : location_code (text) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "Show the location code of the country \"Canada\".", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "ref_locations : location_code (text) , location_name (text) , location_code (number) | document_locations : location_code (text) , document_id (number)"} -{"db_id": "cre_Doc_Tracking_DB", "question": "How many roles are there?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} -{"db_id": "cre_Doc_Tracking_DB", "question": "Count the total number of roles listed.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} +{"db_id": "cre_Doc_Tracking_DB", "question": "How many roles are there?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "roles : role_code (number)"} +{"db_id": "cre_Doc_Tracking_DB", "question": "Count the total number of roles listed.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "roles : role_code (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "List all role codes, role names, and role descriptions.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "roles : role_code (text) , role_name (text) , role_description (text) , role_code (number) | employees : role_code (text) , employee_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What are all the role codes, role names, and role descriptions?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "roles : role_code (text) , role_name (text) , role_description (text) , role_code (number) | employees : role_code (text) , employee_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What are the name and description for role code \"MG\"?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "roles : role_name (text) , role_description (text) , role_code (text) , role_code (number) | employees : role_code (text) , employee_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "Find the name and description of the role with code \"MG\".", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "roles : role_name (text) , role_description (text) , role_code (text) , role_code (number) | employees : role_code (text) , employee_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "Show the description for role name \"Proof Reader\".", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "roles : role_description (text) , role_name (text) , role_code (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What is the description of the role named \"Proof Reader\"?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "roles : role_description (text) , role_name (text) , role_code (number)"} -{"db_id": "cre_Doc_Tracking_DB", "question": "How many employees do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} -{"db_id": "cre_Doc_Tracking_DB", "question": "Find the number of employees we have.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": ""} +{"db_id": "cre_Doc_Tracking_DB", "question": "How many employees do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "employees : employee_id (number)"} +{"db_id": "cre_Doc_Tracking_DB", "question": "Find the number of employees we have.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "employees : employee_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "Show the name, role code, and date of birth for the employee with name 'Armani'.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "employees : employee_name (text) , role_code (text) , date_of_birth (time) , employee_id (number) | roles : role_code (text) , role_code (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What are the name, role code, and date of birth of the employee named 'Armani'?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "employees : employee_name (text) , role_code (text) , date_of_birth (time) , employee_id (number) | roles : role_code (text) , role_code (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "What is the id for the employee called Ebba?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "employees : employee_id (number) , employee_name (text) , employee_id (number)"} @@ -4248,12 +4248,12 @@ {"db_id": "cre_Doc_Tracking_DB", "question": "Which employees do not destroy any document? Find their employee ids.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "employees : employee_id (number) , employee_id (number) | documents_to_be_destroyed : destroyed_by_employee_id (number) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "Show the ids of all employees who have either destroyed a document or made an authorization to do this.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "documents_to_be_destroyed : destroyed_by_employee_id (number) , destruction_authorised_by_employee_id (number) , document_id (number)"} {"db_id": "cre_Doc_Tracking_DB", "question": "Which employees have either destroyed a document or made an authorization to do so? Return their employee ids.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)", "summarized-schema": "documents_to_be_destroyed : destroyed_by_employee_id (number) , destruction_authorised_by_employee_id (number) , document_id (number)"} -{"db_id": "club_1", "question": "How many clubs are there?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": ""} -{"db_id": "club_1", "question": "Count the total number of clubs.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": ""} +{"db_id": "club_1", "question": "How many clubs are there?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": "club : clubid (number)"} +{"db_id": "club_1", "question": "Count the total number of clubs.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": "club : clubid (number)"} {"db_id": "club_1", "question": "What are the names of all clubs?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": "club : clubname (text) , clubid (number)"} {"db_id": "club_1", "question": "Give me the name of each club.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": "club : clubname (text) , clubid (number)"} -{"db_id": "club_1", "question": "How many students are there?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": ""} -{"db_id": "club_1", "question": "Count the total number of students.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": ""} +{"db_id": "club_1", "question": "How many students are there?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": "student : stuid (number)"} +{"db_id": "club_1", "question": "Count the total number of students.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": "student : stuid (number)"} {"db_id": "club_1", "question": "What are the first names of all the students?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": "student : fname (text) , stuid (number)"} {"db_id": "club_1", "question": "Find each student's first name.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": "student : fname (text) , stuid (number)"} {"db_id": "club_1", "question": "Find the last names of the members of the club \"Bootup Baltimore\".", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)", "summarized-schema": "student : lname (text) , stuid (number) , stuid (number) | club : clubid (number) , clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number)"} @@ -4386,8 +4386,8 @@ {"db_id": "tracking_grants_for_research", "question": "What are the details for the projects which were launched by the organization with the most projects?", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": "projects : project_details (text) , organisation_id (number) , project_id (number) | grants : organisation_id (number) , grant_id (number) | organisations : organisation_id (number) , organisation_id (number)"} {"db_id": "tracking_grants_for_research", "question": "List the research staff details, and order in ascending order.", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": "research_staff : staff_details (text) , staff_id (number)"} {"db_id": "tracking_grants_for_research", "question": "What details are there on the research staff? List the result in ascending alphabetical order.", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": "research_staff : staff_details (text) , staff_id (number)"} -{"db_id": "tracking_grants_for_research", "question": "How many tasks are there in total?", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": ""} -{"db_id": "tracking_grants_for_research", "question": "How many tasks are there?", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": ""} +{"db_id": "tracking_grants_for_research", "question": "How many tasks are there in total?", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": "tasks : task_id (number)"} +{"db_id": "tracking_grants_for_research", "question": "How many tasks are there?", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": "tasks : task_id (number)"} {"db_id": "tracking_grants_for_research", "question": "How many tasks does each project have? List the task count and the project detail.", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": "projects : project_details (text) , project_id (number) , project_id (number) | project_outcomes : project_id (number) | project_staff : project_id (number) , staff_id (number) | tasks : project_id (number) , task_id (number)"} {"db_id": "tracking_grants_for_research", "question": "For each project id, how many tasks are there?", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": "projects : project_details (text) , project_id (number) , project_id (number) | project_outcomes : project_id (number) | project_staff : project_id (number) , staff_id (number) | tasks : project_id (number) , task_id (number)"} {"db_id": "tracking_grants_for_research", "question": "What are the staff roles of the staff who", "schema": "document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree", "summarized-schema": "project_staff : role_code (text) , date_from (time) , date_to (time) , staff_id (number) | staff_roles : role_code (text) , role_code (number)"} @@ -4482,7 +4482,7 @@ {"db_id": "network_2", "question": "What is the total number of people who have no friends living in Austin?", "schema": "person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)", "summarized-schema": "person : name (text) , city (text) , name (number) | personfriend : name (text) , friend (text)"} {"db_id": "network_2", "question": "Find Alice's friends of friends.", "schema": "person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)", "summarized-schema": "person : name (text) , name (number) | personfriend : name (text) , friend (text)"} {"db_id": "network_2", "question": "What are the names of all of Alice's friends of friends?", "schema": "person : name (text) , age (number) , city (text) , gender (text) , job (text) | personfriend : name (text) , friend (text) , year (number)", "summarized-schema": "person : name (text) , name (number) | personfriend : name (text) , friend (text)"} -{"db_id": "decoration_competition", "question": "How many members are there?", "schema": "college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)", "summarized-schema": ""} +{"db_id": "decoration_competition", "question": "How many members are there?", "schema": "college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)", "summarized-schema": "member : member_id (number)"} {"db_id": "decoration_competition", "question": "List the names of members in ascending alphabetical order.", "schema": "college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)", "summarized-schema": "college : name (text) , college_id (number) | member : name (text) , member_id (number)"} {"db_id": "decoration_competition", "question": "What are the names and countries of members?", "schema": "college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)", "summarized-schema": "college : name (text) , college_id (number) | member : name (text) , country (text) , member_id (number)"} {"db_id": "decoration_competition", "question": "Show the names of members whose country is \"United States\" or \"Canada\".", "schema": "college : college_id (number) , name (text) , leader_name (text) , college_location (text) | member : member_id (number) , name (text) , country (text) , college_id (number) | round : round_id (number) , member_id (number) , decoration_theme (text) , rank_in_round (number)", "summarized-schema": "college : name (text) , college_id (number) | member : name (text) , country (text) , member_id (number)"} @@ -4541,8 +4541,8 @@ {"db_id": "document_management", "question": "What are the different role codes for users, and how many users have each?", "schema": "roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)", "summarized-schema": "roles : role_code (text) , role_code (number) | users : role_code (text) , user_id (number)"} {"db_id": "document_management", "question": "What document types have more than 2 corresponding documents?", "schema": "roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)", "summarized-schema": "documents : document_type_code (text) , document_code (number)"} {"db_id": "document_management", "question": "Give the codes of document types that have more than 2 corresponding documents.", "schema": "roles : role_code (text) , role_description (text) | users : user_id (number) , role_code (text) , user_name (text) , user_login (text) , password (text) | document_structures : document_structure_code (text) , parent_document_structure_code (text) , document_structure_description (text) | functional_areas : functional_area_code (text) , parent_functional_area_code (text) , functional_area_description (text) | images : image_id (number) , image_alt_text (text) , image_name (text) , image_url (text) | documents : document_code (text) , document_structure_code (text) , document_type_code (text) , access_count (number) , document_name (text) | document_functional_areas : document_code (text) , functional_area_code (text) | document_sections : section_id (number) , document_code (text) , section_sequence (number) , section_code (text) , section_title (text) | document_sections_images : section_id (number) , image_id (number)", "summarized-schema": "documents : document_type_code (text) , document_code (number)"} -{"db_id": "company_office", "question": "How many companies are there?", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": ""} -{"db_id": "company_office", "question": "Count the number of companies.", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": ""} +{"db_id": "company_office", "question": "How many companies are there?", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": "companies : id (number)"} +{"db_id": "company_office", "question": "Count the number of companies.", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": "companies : id (number)"} {"db_id": "company_office", "question": "List the names of companies in descending order of market value.", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": "buildings : name (text) , id (number) | companies : name (text) , market_value_billion (text) , id (number)"} {"db_id": "company_office", "question": "Sort the company names in descending order of the company's market value.", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": "buildings : name (text) , id (number) | companies : name (text) , market_value_billion (text) , id (number)"} {"db_id": "company_office", "question": "What are the names of companies whose headquarters are not \"USA\"?", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": "buildings : name (text) , id (number) | companies : name (text) , headquarters (text) , id (number)"} @@ -4581,7 +4581,7 @@ {"db_id": "company_office", "question": "How many companies are in either \"Banking\" industry or \"Conglomerate\" industry?", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": "companies : industry (text) , id (number)"} {"db_id": "company_office", "question": "Show the headquarters shared by more than two companies.", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": "companies : headquarters (text) , id (number)"} {"db_id": "company_office", "question": "Which headquarter locations are used by more than 2 companies?", "schema": "buildings : id (number) , name (text) , city (text) , height (number) , stories (number) , status (text) | companies : id (number) , name (text) , headquarters (text) , industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value_billion (text) | office_locations : building_id (number) , company_id (number) , move_in_year (number)", "summarized-schema": "companies : headquarters (text) , id (number)"} -{"db_id": "solvency_ii", "question": "How many products are there?", "schema": "addresses : address_id (number) , address_details (text) | locations : location_id (number) , other_details (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | parties : party_id (number) , party_details (text) | assets : asset_id (number) , other_details (text) | channels : channel_id (number) , other_details (text) | finances : finance_id (number) , other_details (text) | events : event_id (number) , address_id (number) , channel_id (number) , event_type_code (text) , finance_id (number) , location_id (number) | products_in_events : product_in_event_id (number) , event_id (number) , product_id (number) | parties_in_events : party_id (number) , event_id (number) , role_code (text) | agreements : document_id (number) , event_id (number) | assets_in_events : asset_id (number) , event_id (number)", "summarized-schema": ""} +{"db_id": "solvency_ii", "question": "How many products are there?", "schema": "addresses : address_id (number) , address_details (text) | locations : location_id (number) , other_details (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | parties : party_id (number) , party_details (text) | assets : asset_id (number) , other_details (text) | channels : channel_id (number) , other_details (text) | finances : finance_id (number) , other_details (text) | events : event_id (number) , address_id (number) , channel_id (number) , event_type_code (text) , finance_id (number) , location_id (number) | products_in_events : product_in_event_id (number) , event_id (number) , product_id (number) | parties_in_events : party_id (number) , event_id (number) , role_code (text) | agreements : document_id (number) , event_id (number) | assets_in_events : asset_id (number) , event_id (number)", "summarized-schema": "products : product_id (number)"} {"db_id": "solvency_ii", "question": "List the name of products in ascending order of price.", "schema": "addresses : address_id (number) , address_details (text) | locations : location_id (number) , other_details (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | parties : party_id (number) , party_details (text) | assets : asset_id (number) , other_details (text) | channels : channel_id (number) , other_details (text) | finances : finance_id (number) , other_details (text) | events : event_id (number) , address_id (number) , channel_id (number) , event_type_code (text) , finance_id (number) , location_id (number) | products_in_events : product_in_event_id (number) , event_id (number) , product_id (number) | parties_in_events : party_id (number) , event_id (number) , role_code (text) | agreements : document_id (number) , event_id (number) | assets_in_events : asset_id (number) , event_id (number)", "summarized-schema": "products : product_name (text) , product_price (number) , product_id (number)"} {"db_id": "solvency_ii", "question": "What are the names and type codes of products?", "schema": "addresses : address_id (number) , address_details (text) | locations : location_id (number) , other_details (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | parties : party_id (number) , party_details (text) | assets : asset_id (number) , other_details (text) | channels : channel_id (number) , other_details (text) | finances : finance_id (number) , other_details (text) | events : event_id (number) , address_id (number) , channel_id (number) , event_type_code (text) , finance_id (number) , location_id (number) | products_in_events : product_in_event_id (number) , event_id (number) , product_id (number) | parties_in_events : party_id (number) , event_id (number) , role_code (text) | agreements : document_id (number) , event_id (number) | assets_in_events : asset_id (number) , event_id (number)", "summarized-schema": "products : product_name (text) , product_type_code (text) , product_id (number)"} {"db_id": "solvency_ii", "question": "Show the prices of the products named \"Dining\" or \"Trading Policy\".", "schema": "addresses : address_id (number) , address_details (text) | locations : location_id (number) , other_details (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | parties : party_id (number) , party_details (text) | assets : asset_id (number) , other_details (text) | channels : channel_id (number) , other_details (text) | finances : finance_id (number) , other_details (text) | events : event_id (number) , address_id (number) , channel_id (number) , event_type_code (text) , finance_id (number) , location_id (number) | products_in_events : product_in_event_id (number) , event_id (number) , product_id (number) | parties_in_events : party_id (number) , event_id (number) , role_code (text) | agreements : document_id (number) , event_id (number) | assets_in_events : asset_id (number) , event_id (number)", "summarized-schema": "products : product_price (number) , product_name (text) , product_id (number)"} @@ -4596,7 +4596,7 @@ {"db_id": "solvency_ii", "question": "Show the names of products that are in at least two events.", "schema": "addresses : address_id (number) , address_details (text) | locations : location_id (number) , other_details (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | parties : party_id (number) , party_details (text) | assets : asset_id (number) , other_details (text) | channels : channel_id (number) , other_details (text) | finances : finance_id (number) , other_details (text) | events : event_id (number) , address_id (number) , channel_id (number) , event_type_code (text) , finance_id (number) , location_id (number) | products_in_events : product_in_event_id (number) , event_id (number) , product_id (number) | parties_in_events : party_id (number) , event_id (number) , role_code (text) | agreements : document_id (number) , event_id (number) | assets_in_events : asset_id (number) , event_id (number)", "summarized-schema": "products : product_name (text) , product_id (number) , product_id (number) | products_in_events : product_id (number) , product_in_event_id (number)"} {"db_id": "solvency_ii", "question": "Show the names of products that are in at least two events in ascending alphabetical order of product name.", "schema": "addresses : address_id (number) , address_details (text) | locations : location_id (number) , other_details (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | parties : party_id (number) , party_details (text) | assets : asset_id (number) , other_details (text) | channels : channel_id (number) , other_details (text) | finances : finance_id (number) , other_details (text) | events : event_id (number) , address_id (number) , channel_id (number) , event_type_code (text) , finance_id (number) , location_id (number) | products_in_events : product_in_event_id (number) , event_id (number) , product_id (number) | parties_in_events : party_id (number) , event_id (number) , role_code (text) | agreements : document_id (number) , event_id (number) | assets_in_events : asset_id (number) , event_id (number)", "summarized-schema": "products : product_name (text) , product_id (number) , product_id (number) | products_in_events : product_id (number) , product_in_event_id (number)"} {"db_id": "solvency_ii", "question": "List the names of products that are not in any event.", "schema": "addresses : address_id (number) , address_details (text) | locations : location_id (number) , other_details (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | parties : party_id (number) , party_details (text) | assets : asset_id (number) , other_details (text) | channels : channel_id (number) , other_details (text) | finances : finance_id (number) , other_details (text) | events : event_id (number) , address_id (number) , channel_id (number) , event_type_code (text) , finance_id (number) , location_id (number) | products_in_events : product_in_event_id (number) , event_id (number) , product_id (number) | parties_in_events : party_id (number) , event_id (number) , role_code (text) | agreements : document_id (number) , event_id (number) | assets_in_events : asset_id (number) , event_id (number)", "summarized-schema": "products : product_name (text) , product_id (number) , product_id (number) | products_in_events : product_id (number) , product_in_event_id (number)"} -{"db_id": "entertainment_awards", "question": "How many artworks are there?", "schema": "festival_detail : festival_id (number) , festival_name (text) , chair_name (text) , location (text) , year (number) , num_of_audience (number) | artwork : artwork_id (number) , type (text) , name (text) | nomination : artwork_id (number) , festival_id (number) , result (text)", "summarized-schema": ""} +{"db_id": "entertainment_awards", "question": "How many artworks are there?", "schema": "festival_detail : festival_id (number) , festival_name (text) , chair_name (text) , location (text) , year (number) , num_of_audience (number) | artwork : artwork_id (number) , type (text) , name (text) | nomination : artwork_id (number) , festival_id (number) , result (text)", "summarized-schema": "artwork : artwork_id (number)"} {"db_id": "entertainment_awards", "question": "List the name of artworks in ascending alphabetical order.", "schema": "festival_detail : festival_id (number) , festival_name (text) , chair_name (text) , location (text) , year (number) , num_of_audience (number) | artwork : artwork_id (number) , type (text) , name (text) | nomination : artwork_id (number) , festival_id (number) , result (text)", "summarized-schema": "artwork : name (text) , artwork_id (number)"} {"db_id": "entertainment_awards", "question": "List the name of artworks whose type is not \"Program Talent Show\".", "schema": "festival_detail : festival_id (number) , festival_name (text) , chair_name (text) , location (text) , year (number) , num_of_audience (number) | artwork : artwork_id (number) , type (text) , name (text) | nomination : artwork_id (number) , festival_id (number) , result (text)", "summarized-schema": "artwork : name (text) , type (text) , artwork_id (number)"} {"db_id": "entertainment_awards", "question": "What are the names and locations of festivals?", "schema": "festival_detail : festival_id (number) , festival_name (text) , chair_name (text) , location (text) , year (number) , num_of_audience (number) | artwork : artwork_id (number) , type (text) , name (text) | nomination : artwork_id (number) , festival_id (number) , result (text)", "summarized-schema": "festival_detail : festival_name (text) , location (text) , festival_id (number)"} @@ -4618,7 +4618,7 @@ {"db_id": "entertainment_awards", "question": "Show the number of audience in year 2008 or 2010.", "schema": "festival_detail : festival_id (number) , festival_name (text) , chair_name (text) , location (text) , year (number) , num_of_audience (number) | artwork : artwork_id (number) , type (text) , name (text) | nomination : artwork_id (number) , festival_id (number) , result (text)", "summarized-schema": "festival_detail : num_of_audience (number) , year (number) , festival_id (number)"} {"db_id": "entertainment_awards", "question": "What are the total number of the audiences who visited any of the festivals?", "schema": "festival_detail : festival_id (number) , festival_name (text) , chair_name (text) , location (text) , year (number) , num_of_audience (number) | artwork : artwork_id (number) , type (text) , name (text) | nomination : artwork_id (number) , festival_id (number) , result (text)", "summarized-schema": "festival_detail : num_of_audience (number) , festival_id (number)"} {"db_id": "entertainment_awards", "question": "In which year are there festivals both inside the 'United States' and outside the 'United States'?", "schema": "festival_detail : festival_id (number) , festival_name (text) , chair_name (text) , location (text) , year (number) , num_of_audience (number) | artwork : artwork_id (number) , type (text) , name (text) | nomination : artwork_id (number) , festival_id (number) , result (text)", "summarized-schema": "festival_detail : year (number) , location (text) , festival_id (number)"} -{"db_id": "customers_campaigns_ecommerce", "question": "How many premises are there?", "schema": "premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)", "summarized-schema": ""} +{"db_id": "customers_campaigns_ecommerce", "question": "How many premises are there?", "schema": "premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)", "summarized-schema": "premises : premise_id (number)"} {"db_id": "customers_campaigns_ecommerce", "question": "What are all the distinct premise types?", "schema": "premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)", "summarized-schema": "premises : premises_type (text) , premise_id (number)"} {"db_id": "customers_campaigns_ecommerce", "question": "Find the types and details for all premises and order by the premise type.", "schema": "premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)", "summarized-schema": "premises : premises_type (text) , premise_details (text) , premise_id (number)"} {"db_id": "customers_campaigns_ecommerce", "question": "Show each premise type and the number of premises in that type.", "schema": "premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)", "summarized-schema": "premises : premises_type (text) , premise_id (number)"} @@ -4633,8 +4633,8 @@ {"db_id": "customers_campaigns_ecommerce", "question": "What are the distinct address type codes for all customer addresses?", "schema": "premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)", "summarized-schema": "customer_addresses : address_type_code (text)"} {"db_id": "customers_campaigns_ecommerce", "question": "Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.", "schema": "premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)", "summarized-schema": "customer_orders : order_shipping_charges (text) , customer_id (number) , order_status_code (text) , order_id (number) | customers : customer_id (number) , customer_id (number) | customer_addresses : customer_id (number) | mailshot_customers : customer_id (number)"} {"db_id": "customers_campaigns_ecommerce", "question": "Show the names of customers having an order with shipping method FedEx and order status Paid.", "schema": "premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)", "summarized-schema": "customers : customer_name (text) , customer_id (number) , customer_id (number) | customer_addresses : customer_id (number) | customer_orders : customer_id (number) , shipping_method_code (text) , order_status_code (text) , order_id (number) | mailshot_customers : customer_id (number)"} -{"db_id": "college_3", "question": "How many courses are there in total?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)", "summarized-schema": ""} -{"db_id": "college_3", "question": "Count the number of courses.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)", "summarized-schema": ""} +{"db_id": "college_3", "question": "How many courses are there in total?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)", "summarized-schema": "course : cid (number)"} +{"db_id": "college_3", "question": "Count the number of courses.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)", "summarized-schema": "course : cid (number)"} {"db_id": "college_3", "question": "How many courses have more than 2 credits?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)", "summarized-schema": "course : credits (number) , cid (number)"} {"db_id": "college_3", "question": "Count the number of courses with more than 2 credits.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)", "summarized-schema": "course : credits (number) , cid (number)"} {"db_id": "college_3", "question": "List all names of courses with 1 credit?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)", "summarized-schema": "course : cname (text) , credits (number) , cid (number)"} @@ -4946,8 +4946,8 @@ {"db_id": "soccer_2", "question": "How many students are enrolled in college?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": "college : enr (number) , cname (number)"} {"db_id": "soccer_2", "question": "What is the average enrollment number?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": "college : enr (number) , cname (number)"} {"db_id": "soccer_2", "question": "How many students, on average, does each college have enrolled?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": "college : enr (number) , cname (number)"} -{"db_id": "soccer_2", "question": "How many colleges in total?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": ""} -{"db_id": "soccer_2", "question": "How many different colleges are there?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": ""} +{"db_id": "soccer_2", "question": "How many colleges in total?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": "college : cname (number)"} +{"db_id": "soccer_2", "question": "How many different colleges are there?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": "college : cname (number)"} {"db_id": "soccer_2", "question": "How many players have more than 1000 hours of training?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": "player : hs (number) , pid (number)"} {"db_id": "soccer_2", "question": "How many different players trained for more than 1000 hours?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": "player : hs (number) , pid (number)"} {"db_id": "soccer_2", "question": "How many colleges has more than 15000 students?", "schema": "college : cname (text) , state (text) , enr (number) | player : pid (number) , pname (text) , ycard (text) , hs (number) | tryout : pid (number) , cname (text) , ppos (text) , decision (text)", "summarized-schema": "college : enr (number) , cname (number)"} @@ -5088,14 +5088,14 @@ {"db_id": "device", "question": "What are the carriers of devices that are not in stock anywhere?", "schema": "device : device_id (number) , device (text) , carrier (text) , package_version (text) , applications (text) , software_platform (text) | shop : shop_id (number) , shop_name (text) , location (text) , open_date (text) , open_year (number) | stock : shop_id (number) , device_id (number) , quantity (number)", "summarized-schema": "device : carrier (text) , device (text) , device_id (number) , device_id (number) | stock : device_id (number) , shop_id (number)"} {"db_id": "device", "question": "Show the carriers of devices in stock at more than one shop.", "schema": "device : device_id (number) , device (text) , carrier (text) , package_version (text) , applications (text) , software_platform (text) | shop : shop_id (number) , shop_name (text) , location (text) , open_date (text) , open_year (number) | stock : shop_id (number) , device_id (number) , quantity (number)", "summarized-schema": "device : carrier (text) , device (text) , device_id (number) , device_id (number) | stock : device_id (number) , shop_id (number)"} {"db_id": "device", "question": "What are the carriers of devices that are in stock in more than a single shop?", "schema": "device : device_id (number) , device (text) , carrier (text) , package_version (text) , applications (text) , software_platform (text) | shop : shop_id (number) , shop_name (text) , location (text) , open_date (text) , open_year (number) | stock : shop_id (number) , device_id (number) , quantity (number)", "summarized-schema": "device : carrier (text) , device (text) , device_id (number) , device_id (number) | stock : device_id (number) , shop_id (number)"} -{"db_id": "cre_Drama_Workshop_Groups", "question": "How many bookings do we have?", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": ""} -{"db_id": "cre_Drama_Workshop_Groups", "question": "Count the total number of bookings made.", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": ""} +{"db_id": "cre_Drama_Workshop_Groups", "question": "How many bookings do we have?", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "bookings : booking_id (number)"} +{"db_id": "cre_Drama_Workshop_Groups", "question": "Count the total number of bookings made.", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "bookings : booking_id (number)"} {"db_id": "cre_Drama_Workshop_Groups", "question": "List the order dates of all the bookings.", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "bookings : order_date (time) , booking_id (number) | customer_orders : order_date (time) , order_id (number)"} {"db_id": "cre_Drama_Workshop_Groups", "question": "What is the order date of each booking?", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "bookings : order_date (time) , booking_id (number) | customer_orders : order_date (time) , order_id (number)"} {"db_id": "cre_Drama_Workshop_Groups", "question": "Show all the planned delivery dates and actual delivery dates of bookings.", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "bookings : planned_delivery_date (time) , actual_delivery_date (time) , booking_id (number) | customer_orders : planned_delivery_date (time) , actual_delivery_date (time) , order_id (number)"} {"db_id": "cre_Drama_Workshop_Groups", "question": "What are the planned delivery date and actual delivery date for each booking?", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "bookings : planned_delivery_date (time) , actual_delivery_date (time) , booking_id (number) | customer_orders : planned_delivery_date (time) , actual_delivery_date (time) , order_id (number)"} -{"db_id": "cre_Drama_Workshop_Groups", "question": "How many customers do we have?", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": ""} -{"db_id": "cre_Drama_Workshop_Groups", "question": "Count the number of customers recorded.", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": ""} +{"db_id": "cre_Drama_Workshop_Groups", "question": "How many customers do we have?", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "customers : customer_id (number)"} +{"db_id": "cre_Drama_Workshop_Groups", "question": "Count the number of customers recorded.", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "customers : customer_id (number)"} {"db_id": "cre_Drama_Workshop_Groups", "question": "What are the phone and email for customer Harold?", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "clients : customer_phone (text) , customer_email_address (text) , customer_name (text) , client_id (number) | performers : customer_phone (text) , customer_email_address (text) , customer_name (text) , performer_id (number) | customers : customer_phone (text) , customer_email_address (text) , customer_name (text) , customer_id (number)"} {"db_id": "cre_Drama_Workshop_Groups", "question": "Find the phone number and email address of customer \"Harold\".", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "clients : customer_phone (text) , customer_email_address (text) , customer_name (text) , client_id (number) | performers : customer_phone (text) , customer_email_address (text) , customer_name (text) , performer_id (number) | customers : customer_phone (text) , customer_email_address (text) , customer_name (text) , customer_id (number)"} {"db_id": "cre_Drama_Workshop_Groups", "question": "Show all the Store_Name of drama workshop groups.", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "drama_workshop_groups : store_name (text) , workshop_group_id (number) | stores : store_name (text) , store_id (number)"} @@ -5170,16 +5170,16 @@ {"db_id": "cre_Drama_Workshop_Groups", "question": "Find the id of the product ordered the most often on invoices.", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "products : product_id (text) , product_id (number) | order_items : product_id (number) , order_item_id (number) | invoices : product_id (number) , invoice_id (number) | bookings_services : product_id (number) , order_id (number) | invoice_items : product_id (number) , invoice_item_id (number)"} {"db_id": "cre_Drama_Workshop_Groups", "question": "What is the description of the service type which offers both the photo product and the film product?", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "ref_service_types : service_type_description (text) , service_type_code (text) , service_type_code (number) | services : service_type_code (text) , product_name (text) , service_id (number) | products : product_name (text) , product_id (number)"} {"db_id": "cre_Drama_Workshop_Groups", "question": "Give me the description of the service type that offers not only the photo product but also the film product.", "schema": "ref_payment_methods : payment_method_code (text) , payment_method_description (text) | ref_service_types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | products : product_id (text) , product_name (text) , product_price (number) , product_description (text) , other_product_service_details (text) | marketing_regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | clients : client_id (number) , address_id (number) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | drama_workshop_groups : workshop_group_id (number) , address_id (number) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | performers : performer_id (number) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | customers : customer_id (text) , address_id (number) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | stores : store_id (text) , address_id (number) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | bookings : booking_id (number) , customer_id (number) , workshop_group_id (text) , status_code (text) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | performers_in_bookings : order_id (number) , performer_id (number) | customer_orders : order_id (number) , customer_id (number) , store_id (number) , order_date (time) , planned_delivery_date (time) , actual_delivery_date (time) , other_order_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) , other_item_details (text) | invoices : invoice_id (number) , order_id (number) , payment_method_code (text) , product_id (number) , order_quantity (text) , other_item_details (text) , order_item_id (number) | services : service_id (number) , service_type_code (text) , workshop_group_id (number) , product_description (text) , product_name (text) , product_price (number) , other_product_service_details (text) | bookings_services : order_id (number) , product_id (number) | invoice_items : invoice_item_id (number) , invoice_id (number) , order_id (number) , order_item_id (number) , product_id (number) , order_quantity (number) , other_item_details (text)", "summarized-schema": "ref_service_types : service_type_description (text) , service_type_code (text) , service_type_code (number) | services : service_type_code (text) , product_name (text) , service_id (number) | products : product_name (text) , product_id (number)"} -{"db_id": "music_2", "question": "How many bands are there?", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": ""} -{"db_id": "music_2", "question": "Find the number of bands.", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": ""} +{"db_id": "music_2", "question": "How many bands are there?", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "band : id (number)"} +{"db_id": "music_2", "question": "Find the number of bands.", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "band : id (number)"} {"db_id": "music_2", "question": "What are all the labels?", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "albums : label (text) , aid (number)"} {"db_id": "music_2", "question": "What are the different album labels listed?", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "albums : label (text) , aid (number)"} {"db_id": "music_2", "question": "Find all the albums in 2012.", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "albums : year (number) , aid (number)"} {"db_id": "music_2", "question": "return all columns of the albums created in the year of 2012.", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "albums : year (number) , aid (number)"} {"db_id": "music_2", "question": "Find all the stage positions of the musicians with first name \"Solveig\"", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "performance : stageposition (text) , bandmate (number) , songid (number) | vocals : bandmate (number) , songid (number) | band : id (number) , firstname (text) , id (number)"} {"db_id": "music_2", "question": "What are the different stage positions for all musicians whose first name is \"Solveig\"?", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "performance : stageposition (text) , bandmate (number) , songid (number) | vocals : bandmate (number) , songid (number) | band : id (number) , firstname (text) , id (number)"} -{"db_id": "music_2", "question": "How many songs are there?", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": ""} -{"db_id": "music_2", "question": "Count the number of songs.", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": ""} +{"db_id": "music_2", "question": "How many songs are there?", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "songs : songid (number)"} +{"db_id": "music_2", "question": "Count the number of songs.", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "songs : songid (number)"} {"db_id": "music_2", "question": "Find all the songs performed by artist with last name \"Heilo\"", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "songs : title (text) , songid (number) , songid (number) | albums : title (text) , aid (number) | performance : bandmate (number) , songid (number) , songid (number) | vocals : bandmate (number) , songid (number) , songid (number) | band : id (number) , lastname (text) , id (number) | instruments : songid (number) , songid (number) | tracklists : songid (number) , albumid (number)"} {"db_id": "music_2", "question": "What are the names of the songs by the artist whose last name is \"Heilo\"?", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "songs : title (text) , songid (number) , songid (number) | albums : title (text) , aid (number) | performance : bandmate (number) , songid (number) , songid (number) | vocals : bandmate (number) , songid (number) , songid (number) | band : id (number) , lastname (text) , id (number) | instruments : songid (number) , songid (number) | tracklists : songid (number) , albumid (number)"} {"db_id": "music_2", "question": "Hom many musicians performed in the song \"Flash\"?", "schema": "songs : songid (number) , title (text) | albums : aid (number) , title (text) , year (number) , label (text) , type (text) | band : id (number) , firstname (text) , lastname (text) | instruments : songid (number) , bandmateid (number) , instrument (text) | performance : songid (number) , bandmate (number) , stageposition (text) | tracklists : albumid (number) , position (number) , songid (number) | vocals : songid (number) , bandmate (number) , type (text)", "summarized-schema": "performance : bandmate (number) , songid (number) , songid (number) | vocals : bandmate (number) , songid (number) , songid (number) | band : id (number) , id (number) | songs : songid (number) , title (text) , songid (number) | instruments : songid (number) , songid (number) | tracklists : songid (number) , albumid (number) | albums : title (text) , aid (number)"} @@ -5442,8 +5442,8 @@ {"db_id": "shop_membership", "question": "What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia?", "schema": "member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)", "summarized-schema": "member : name (text) , member_id (number) , hometown (text) , member_id (number) | branch : name (text) , branch_id (number) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number) , member_id (number) | purchase : branch_id (text) , member_id (number) , member_id (number)"} {"db_id": "shop_membership", "question": "list the card number of all members whose hometown address includes word \"Kentucky\".", "schema": "member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)", "summarized-schema": "member : card_number (text) , hometown (text) , member_id (number)"} {"db_id": "shop_membership", "question": "What are the card numbers of members from Kentucky?", "schema": "member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)", "summarized-schema": "member : card_number (text) , hometown (text) , member_id (number)"} -{"db_id": "voter_2", "question": "Find the number of students in total.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": ""} -{"db_id": "voter_2", "question": "How many students are there in total?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": ""} +{"db_id": "voter_2", "question": "Find the number of students in total.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": "student : stuid (number)"} +{"db_id": "voter_2", "question": "How many students are there in total?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": "student : stuid (number)"} {"db_id": "voter_2", "question": "Find the number of voting records in total.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": ""} {"db_id": "voter_2", "question": "How many voting records do we have?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": ""} {"db_id": "voter_2", "question": "Find the distinct number of president votes.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": "voting_record : president_vote (number)"} @@ -5514,12 +5514,12 @@ {"db_id": "voter_2", "question": "Return the code of the city that has the most students.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": "student : city_code (text) , stuid (number)"} {"db_id": "voter_2", "question": "Report the distinct advisors who have more than 2 students.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": "student : advisor (number) , stuid (number)"} {"db_id": "voter_2", "question": "Which advisors are advising more than 2 students?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)", "summarized-schema": "student : advisor (number) , stuid (number)"} -{"db_id": "products_gen_characteristics", "question": "How many products are there?", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": ""} -{"db_id": "products_gen_characteristics", "question": "Count the number of products.", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": ""} -{"db_id": "products_gen_characteristics", "question": "How many colors are there?", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": ""} -{"db_id": "products_gen_characteristics", "question": "Count the number of colors.", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": ""} -{"db_id": "products_gen_characteristics", "question": "How many characteristics are there?", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": ""} -{"db_id": "products_gen_characteristics", "question": "Count the number of characteristics.", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": ""} +{"db_id": "products_gen_characteristics", "question": "How many products are there?", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "products : product_id (number)"} +{"db_id": "products_gen_characteristics", "question": "Count the number of products.", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "products : product_id (number)"} +{"db_id": "products_gen_characteristics", "question": "How many colors are there?", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "ref_colors : color_code (number)"} +{"db_id": "products_gen_characteristics", "question": "Count the number of colors.", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "ref_colors : color_code (number)"} +{"db_id": "products_gen_characteristics", "question": "How many characteristics are there?", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "characteristics : characteristic_id (number)"} +{"db_id": "products_gen_characteristics", "question": "Count the number of characteristics.", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "characteristics : characteristic_id (number)"} {"db_id": "products_gen_characteristics", "question": "What are the names and buying prices of all the products?", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "products : product_name (text) , typical_buying_price (text) , product_id (number)"} {"db_id": "products_gen_characteristics", "question": "Return the names and typical buying prices for all products.", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "products : product_name (text) , typical_buying_price (text) , product_id (number)"} {"db_id": "products_gen_characteristics", "question": "List the description of all the colors.", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "ref_colors : color_description (text) , color_code (number)"} @@ -5600,10 +5600,10 @@ {"db_id": "products_gen_characteristics", "question": "Give the names of characteristics that are in two or more products?", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "characteristics : characteristic_name (text) , characteristic_id (number) , characteristic_id (number) | products : product_id (number) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number)"} {"db_id": "products_gen_characteristics", "question": "How many colors are never used by any product?", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "ref_colors : color_code (text) , color_code (number) | products : color_code (text) , product_id (number)"} {"db_id": "products_gen_characteristics", "question": "Count the number of colors that are not used in any products.", "schema": "ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)", "summarized-schema": "ref_colors : color_code (text) , color_code (number) | products : color_code (text) , product_id (number)"} -{"db_id": "swimming", "question": "How many events are there?", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": ""} +{"db_id": "swimming", "question": "How many events are there?", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "event : id (number)"} {"db_id": "swimming", "question": "List all the event names by year from the most recent to the oldest.", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "swimmer : name (text) , id (number) | stadium : name (text) , id (number) | event : name (text) , year (text) , id (number)"} {"db_id": "swimming", "question": "What is the name of the event that happened in the most recent year?", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "swimmer : name (text) , id (number) | stadium : name (text) , id (number) | event : name (text) , year (text) , id (number)"} -{"db_id": "swimming", "question": "How many stadiums are there?", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": ""} +{"db_id": "swimming", "question": "How many stadiums are there?", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "stadium : id (number)"} {"db_id": "swimming", "question": "Find the name of the stadium that has the maximum capacity.", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "swimmer : name (text) , id (number) | stadium : name (text) , capacity (number) , id (number) | event : name (text) , id (number)"} {"db_id": "swimming", "question": "Find the names of stadiums whose capacity is smaller than the average capacity.", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "swimmer : name (text) , id (number) | stadium : name (text) , capacity (number) , id (number) | event : name (text) , id (number)"} {"db_id": "swimming", "question": "Find the country that has the most stadiums.", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "stadium : country (text) , id (number)"} @@ -5628,7 +5628,7 @@ {"db_id": "swimming", "question": "Find the names of the swimmers who have both \"win\" and \"loss\" results in the record.", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "swimmer : name (text) , id (number) , id (number) | stadium : name (text) , id (number) , id (number) | event : name (text) , id (number) , id (number) | record : id (number) , swimmer_id (number) , result (text) , swimmer_id (number)"} {"db_id": "swimming", "question": "Find the names of stadiums that some Australian swimmers have been to.", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "swimmer : name (text) , id (number) , nationality (text) , id (number) | stadium : name (text) , id (number) , id (number) | event : name (text) , id (number) , stadium_id (number) , id (number) | record : id (number) , swimmer_id (number) , event_id (number) , swimmer_id (number)"} {"db_id": "swimming", "question": "Find the names of stadiums that the most swimmers have been to.", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "swimmer : name (text) , id (number) , id (number) | stadium : name (text) , id (number) , id (number) | event : name (text) , id (number) , stadium_id (number) , id (number) | record : event_id (number) , id (number) , swimmer_id (number)"} -{"db_id": "swimming", "question": "Find all details for each swimmer.", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": ""} +{"db_id": "swimming", "question": "Find all details for each swimmer.", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "swimmer : id (number)"} {"db_id": "swimming", "question": "What is the average capacity of the stadiums that were opened in year 2005?", "schema": "swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number)", "summarized-schema": "stadium : capacity (number) , opening_year (number) , id (number)"} {"db_id": "railway", "question": "How many railways are there?", "schema": "railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text)", "summarized-schema": "train : from (text) , train_id (number) | railway : railway (text) , railway_id (number)"} {"db_id": "railway", "question": "List the builders of railways in ascending alphabetical order.", "schema": "railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text)", "summarized-schema": "railway : builder (text) , railway (text) , railway_id (number) | train : from (text) , train_id (number)"} @@ -5682,8 +5682,8 @@ {"db_id": "dorm_1", "question": "How many diffrent dorm amenities are there?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": ""} {"db_id": "dorm_1", "question": "Find the total capacity of all dorms.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "dorm : student_capacity (number)"} {"db_id": "dorm_1", "question": "What is the total student capacity of all dorms?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "dorm : student_capacity (number)"} -{"db_id": "dorm_1", "question": "How many students are there?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": ""} -{"db_id": "dorm_1", "question": "How many students exist?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": ""} +{"db_id": "dorm_1", "question": "How many students are there?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "student : stuid (number)"} +{"db_id": "dorm_1", "question": "How many students exist?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "student : stuid (number)"} {"db_id": "dorm_1", "question": "Find the average age of all students living in the each city.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "student : age (number) , city_code (text) , stuid (number)"} {"db_id": "dorm_1", "question": "What is the average age for each city and what are those cities?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "student : age (number) , city_code (text) , stuid (number)"} {"db_id": "dorm_1", "question": "Find the average and total capacity of dorms for the students with gender X.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "dorm : student_capacity (number) , gender (text)"} @@ -5766,8 +5766,8 @@ {"db_id": "dorm_1", "question": "What is the first name and age of every student who lives in a dorm with a TV Lounge?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "student : fname (text) , age (number) , stuid (number) , stuid (number) | lives_in : stuid (number) , dormid (number) | dorm : dormid (number) | has_amenity : dormid (number) , amenid (number) | dorm_amenity : amenid (number) , amenity_name (text)"} {"db_id": "dorm_1", "question": "Find the name of amenities of the dorm where the student with last name Smith is living in.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "dorm_amenity : amenity_name (text) , amenid (number) | dorm : dormid (number) | has_amenity : dormid (number) , amenid (number) | lives_in : dormid (number) , stuid (number) | student : stuid (number) , lname (text) , stuid (number)"} {"db_id": "dorm_1", "question": "What are the amenities in the dorm that a student who has the last name of Smith lives in?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number)", "summarized-schema": "dorm_amenity : amenity_name (text) , amenid (number) | dorm : dormid (number) | has_amenity : dormid (number) , amenid (number) | lives_in : dormid (number) , stuid (number) | student : stuid (number) , lname (text) , stuid (number)"} -{"db_id": "customer_complaints", "question": "How many customers are there?", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": ""} -{"db_id": "customer_complaints", "question": "Count the number of customers.", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": ""} +{"db_id": "customer_complaints", "question": "How many customers are there?", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": "customers : customer_id (number)"} +{"db_id": "customer_complaints", "question": "Count the number of customers.", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": "customers : customer_id (number)"} {"db_id": "customer_complaints", "question": "Find the emails and phone numbers of all the customers, ordered by email address and phone number.", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": "staff : email_address (text) , phone_number (text) , staff_id (number) | customers : email_address (text) , phone_number (text) , customer_id (number)"} {"db_id": "customer_complaints", "question": "What are the emails and phone numbers of all customers, sorted by email address and phone number?", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": "staff : email_address (text) , phone_number (text) , staff_id (number) | customers : email_address (text) , phone_number (text) , customer_id (number)"} {"db_id": "customer_complaints", "question": "Which city has the least number of customers whose type code is \"Good Credit Rating\"?", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": "customers : town_city (text) , customer_type_code (text) , customer_id (number)"} @@ -5812,8 +5812,8 @@ {"db_id": "customer_complaints", "question": "Return the first names of the 5 staff members who have handled the most complaints.", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": "staff : first_name (text) , staff_id (number) , staff_id (number) | complaints : staff_id (number)"} {"db_id": "customer_complaints", "question": "Which state has the most customers?", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": "customers : state (text) , customer_id (number)"} {"db_id": "customer_complaints", "question": "Give the state that has the most customers.", "schema": "staff : staff_id (number) , gender (text) , first_name (text) , last_name (text) , email_address (text) , phone_number (text) | customers : customer_id (number) , customer_type_code (text) , address_line_1 (text) , address_line_2 (text) , town_city (text) , state (text) , email_address (text) , phone_number (text) | products : product_id (number) , parent_product_id (number) , product_category_code (text) , date_product_first_available (time) , date_product_discontinued (time) , product_name (text) , product_description (text) , product_price (number) | complaints : complaint_id (number) , product_id (number) , customer_id (number) , complaint_outcome_code (text) , complaint_status_code (text) , complaint_type_code (text) , date_complaint_raised (time) , date_complaint_closed (time) , staff_id (number)", "summarized-schema": "customers : state (text) , customer_id (number)"} -{"db_id": "workshop_paper", "question": "How many submissions are there?", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": ""} -{"db_id": "workshop_paper", "question": "Count the number of submissions.", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": ""} +{"db_id": "workshop_paper", "question": "How many submissions are there?", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": "submission : submission_id (number)"} +{"db_id": "workshop_paper", "question": "Count the number of submissions.", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": "submission : submission_id (number)"} {"db_id": "workshop_paper", "question": "List the authors of submissions in ascending order of scores.", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": "submission : author (text) , scores (number) , submission_id (number)"} {"db_id": "workshop_paper", "question": "Find the author for each submission and list them in ascending order of submission score.", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": "submission : author (text) , scores (number) , submission_id (number)"} {"db_id": "workshop_paper", "question": "What are the authors of submissions and their colleges?", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": "submission : author (text) , college (text) , submission_id (number)"} @@ -5842,7 +5842,7 @@ {"db_id": "workshop_paper", "question": "Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop.", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": "workshop : date (text) , venue (text) , workshop_id (number)"} {"db_id": "workshop_paper", "question": "List the authors who do not have submission to any workshop.", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": "submission : author (text) , submission_id (number) , submission_id (number) | acceptance : submission_id (number) , submission_id (number)"} {"db_id": "workshop_paper", "question": "Which authors did not submit to any workshop?", "schema": "workshop : workshop_id (number) , date (text) , venue (text) , name (text) | submission : submission_id (number) , scores (number) , author (text) , college (text) | acceptance : submission_id (number) , workshop_id (number) , result (text)", "summarized-schema": "submission : author (text) , submission_id (number) , submission_id (number) | acceptance : submission_id (number) , submission_id (number)"} -{"db_id": "tracking_share_transactions", "question": "Find the number of investors in total.", "schema": "investors : investor_id (number) , investor_details (text) | lots : lot_id (number) , investor_id (number) , lot_details (text) | ref_transaction_types : transaction_type_code (text) , transaction_type_description (text) | transactions : transaction_id (number) , investor_id (number) , transaction_type_code (text) , date_of_transaction (time) , amount_of_transaction (number) , share_count (text) , other_details (text) | sales : sales_transaction_id (number) , sales_details (text) | purchases : purchase_transaction_id (number) , purchase_details (text) | transactions_lots : transaction_id (number) , lot_id (number)", "summarized-schema": ""} +{"db_id": "tracking_share_transactions", "question": "Find the number of investors in total.", "schema": "investors : investor_id (number) , investor_details (text) | lots : lot_id (number) , investor_id (number) , lot_details (text) | ref_transaction_types : transaction_type_code (text) , transaction_type_description (text) | transactions : transaction_id (number) , investor_id (number) , transaction_type_code (text) , date_of_transaction (time) , amount_of_transaction (number) , share_count (text) , other_details (text) | sales : sales_transaction_id (number) , sales_details (text) | purchases : purchase_transaction_id (number) , purchase_details (text) | transactions_lots : transaction_id (number) , lot_id (number)", "summarized-schema": "investors : investor_id (number)"} {"db_id": "tracking_share_transactions", "question": "Show all investor details.", "schema": "investors : investor_id (number) , investor_details (text) | lots : lot_id (number) , investor_id (number) , lot_details (text) | ref_transaction_types : transaction_type_code (text) , transaction_type_description (text) | transactions : transaction_id (number) , investor_id (number) , transaction_type_code (text) , date_of_transaction (time) , amount_of_transaction (number) , share_count (text) , other_details (text) | sales : sales_transaction_id (number) , sales_details (text) | purchases : purchase_transaction_id (number) , purchase_details (text) | transactions_lots : transaction_id (number) , lot_id (number)", "summarized-schema": "investors : investor_details (text) , investor_id (number)"} {"db_id": "tracking_share_transactions", "question": "Show all distinct lot details.", "schema": "investors : investor_id (number) , investor_details (text) | lots : lot_id (number) , investor_id (number) , lot_details (text) | ref_transaction_types : transaction_type_code (text) , transaction_type_description (text) | transactions : transaction_id (number) , investor_id (number) , transaction_type_code (text) , date_of_transaction (time) , amount_of_transaction (number) , share_count (text) , other_details (text) | sales : sales_transaction_id (number) , sales_details (text) | purchases : purchase_transaction_id (number) , purchase_details (text) | transactions_lots : transaction_id (number) , lot_id (number)", "summarized-schema": "lots : lot_details (text) , lot_id (number)"} {"db_id": "tracking_share_transactions", "question": "Show the maximum amount of transaction.", "schema": "investors : investor_id (number) , investor_details (text) | lots : lot_id (number) , investor_id (number) , lot_details (text) | ref_transaction_types : transaction_type_code (text) , transaction_type_description (text) | transactions : transaction_id (number) , investor_id (number) , transaction_type_code (text) , date_of_transaction (time) , amount_of_transaction (number) , share_count (text) , other_details (text) | sales : sales_transaction_id (number) , sales_details (text) | purchases : purchase_transaction_id (number) , purchase_details (text) | transactions_lots : transaction_id (number) , lot_id (number)", "summarized-schema": "transactions : amount_of_transaction (number) , transaction_id (number)"} @@ -5883,8 +5883,8 @@ {"db_id": "tracking_share_transactions", "question": "What are the dates of transactions with at least 100 share count or amount bigger than 100?", "schema": "investors : investor_id (number) , investor_details (text) | lots : lot_id (number) , investor_id (number) , lot_details (text) | ref_transaction_types : transaction_type_code (text) , transaction_type_description (text) | transactions : transaction_id (number) , investor_id (number) , transaction_type_code (text) , date_of_transaction (time) , amount_of_transaction (number) , share_count (text) , other_details (text) | sales : sales_transaction_id (number) , sales_details (text) | purchases : purchase_transaction_id (number) , purchase_details (text) | transactions_lots : transaction_id (number) , lot_id (number)", "summarized-schema": "transactions : date_of_transaction (time) , share_count (text) , amount_of_transaction (number) , transaction_id (number)"} {"db_id": "tracking_share_transactions", "question": "What are the details of all sales and purchases?", "schema": "investors : investor_id (number) , investor_details (text) | lots : lot_id (number) , investor_id (number) , lot_details (text) | ref_transaction_types : transaction_type_code (text) , transaction_type_description (text) | transactions : transaction_id (number) , investor_id (number) , transaction_type_code (text) , date_of_transaction (time) , amount_of_transaction (number) , share_count (text) , other_details (text) | sales : sales_transaction_id (number) , sales_details (text) | purchases : purchase_transaction_id (number) , purchase_details (text) | transactions_lots : transaction_id (number) , lot_id (number)", "summarized-schema": "sales : sales_details (text) , sales_transaction_id (number) | purchases : purchase_details (text)"} {"db_id": "tracking_share_transactions", "question": "What are the details of the lots which are not used in any transactions?", "schema": "investors : investor_id (number) , investor_details (text) | lots : lot_id (number) , investor_id (number) , lot_details (text) | ref_transaction_types : transaction_type_code (text) , transaction_type_description (text) | transactions : transaction_id (number) , investor_id (number) , transaction_type_code (text) , date_of_transaction (time) , amount_of_transaction (number) , share_count (text) , other_details (text) | sales : sales_transaction_id (number) , sales_details (text) | purchases : purchase_transaction_id (number) , purchase_details (text) | transactions_lots : transaction_id (number) , lot_id (number)", "summarized-schema": "lots : lot_details (text) , lot_id (number) , lot_id (number) | transactions_lots : lot_id (number)"} -{"db_id": "cre_Theme_park", "question": "How many available hotels are there in total?", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": ""} -{"db_id": "cre_Theme_park", "question": "Find the total number of available hotels.", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": ""} +{"db_id": "cre_Theme_park", "question": "How many available hotels are there in total?", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": "hotels : hotel_id (number)"} +{"db_id": "cre_Theme_park", "question": "Find the total number of available hotels.", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": "hotels : hotel_id (number)"} {"db_id": "cre_Theme_park", "question": "What are the price ranges of hotels?", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": "hotels : price_range (number) , hotel_id (number)"} {"db_id": "cre_Theme_park", "question": "Tell me the price ranges for all the hotels.", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": "hotels : price_range (number) , hotel_id (number)"} {"db_id": "cre_Theme_park", "question": "Show all distinct location names.", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": "locations : location_name (text) , location_id (number)"} @@ -5967,8 +5967,8 @@ {"db_id": "cre_Theme_park", "question": "Find the the names of the tourist attractions that the tourist named Alison visited but Rosalind did not visit.", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": "tourist_attractions : name (text) , tourist_attraction_id (number) , tourist_attraction_id (number) | photos : name (text) , tourist_attraction_id (number) , photo_id (number) | staff : name (text) , tourist_attraction_id (number) , staff_id (number) | visits : tourist_attraction_id (number) , tourist_id (number) , visit_id (number) | tourist_attraction_features : tourist_attraction_id (number) , tourist_attraction_id (number) | visitors : tourist_id (number) , tourist_details (text) , tourist_id (number)"} {"db_id": "cre_Theme_park", "question": "How many tourists did not make any visit?", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": "visitors : tourist_id (number) , tourist_id (number) | visits : tourist_id (number) , visit_id (number)"} {"db_id": "cre_Theme_park", "question": "Count the number of tourists who did not visit any place.", "schema": "ref_hotel_star_ratings : star_rating_code (text) , star_rating_description (text) | locations : location_id (number) , location_name (text) , address (text) , other_details (text) | ref_attraction_types : attraction_type_code (text) , attraction_type_description (text) | visitors : tourist_id (number) , tourist_details (text) | features : feature_id (number) , feature_details (text) | hotels : hotel_id (number) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | tourist_attractions : tourist_attraction_id (number) , attraction_type_code (text) , location_id (number) , how_to_get_there (text) , name (text) , description (text) , opening_hours (text) , other_details (text) | street_markets : market_id (number) , market_details (text) | shops : shop_id (number) , shop_details (text) | museums : museum_id (number) , museum_details (text) | royal_family : royal_family_id (number) , royal_family_details (text) | theme_parks : theme_park_id (number) , theme_park_details (text) | visits : visit_id (number) , tourist_attraction_id (number) , tourist_id (number) , visit_date (time) , visit_details (text) | photos : photo_id (number) , tourist_attraction_id (number) , name (text) , description (text) , filename (text) , other_details (text) | staff : staff_id (number) , tourist_attraction_id (number) , name (text) , other_details (text) | tourist_attraction_features : tourist_attraction_id (number) , feature_id (number)", "summarized-schema": "visitors : tourist_id (number) , tourist_id (number) | visits : tourist_id (number) , visit_id (number)"} -{"db_id": "game_1", "question": "How many video games exist?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text)", "summarized-schema": ""} -{"db_id": "game_1", "question": "How many video games do you have?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text)", "summarized-schema": ""} +{"db_id": "game_1", "question": "How many video games exist?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text)", "summarized-schema": "video_games : gameid (number)"} +{"db_id": "game_1", "question": "How many video games do you have?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text)", "summarized-schema": "video_games : gameid (number)"} {"db_id": "game_1", "question": "How many video game types exist?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text)", "summarized-schema": "video_games : gtype (text) , gameid (number)"} {"db_id": "game_1", "question": "What is the count of different game types?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text)", "summarized-schema": "video_games : gtype (text) , gameid (number)"} {"db_id": "game_1", "question": "Show all video game types.", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text)", "summarized-schema": "video_games : gtype (text) , gameid (number)"} @@ -6055,8 +6055,8 @@ {"db_id": "game_1", "question": "what is the last name and gender of all students who played both Call of Destiny and Works of Widenius?", "schema": "student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text)", "summarized-schema": "student : lname (text) , sex (text) , stuid (number) , stuid (number) | plays_games : stuid (number) , gameid (number) | sportsinfo : stuid (number) | video_games : gameid (number) , gname (text) , gameid (number)"} {"db_id": "customers_and_addresses", "question": "Find the name of all customers.", "schema": "addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text)", "summarized-schema": "customers : customer_name (text) , customer_id (number)"} {"db_id": "customers_and_addresses", "question": "What are the names of all the customers?", "schema": "addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text)", "summarized-schema": "customers : customer_name (text) , customer_id (number)"} -{"db_id": "customers_and_addresses", "question": "How many customers are there?", "schema": "addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text)", "summarized-schema": ""} -{"db_id": "customers_and_addresses", "question": "Return the total number of distinct customers.", "schema": "addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text)", "summarized-schema": ""} +{"db_id": "customers_and_addresses", "question": "How many customers are there?", "schema": "addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text)", "summarized-schema": "customers : customer_id (number)"} +{"db_id": "customers_and_addresses", "question": "Return the total number of distinct customers.", "schema": "addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text)", "summarized-schema": "customers : customer_id (number)"} {"db_id": "customers_and_addresses", "question": "What is the average amount of items ordered in each order?", "schema": "addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text)", "summarized-schema": "order_items : order_quantity (text)"} {"db_id": "customers_and_addresses", "question": "Find the average order quantity per order.", "schema": "addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text)", "summarized-schema": "order_items : order_quantity (text)"} {"db_id": "customers_and_addresses", "question": "What are the names of customers who use payment method \"Cash\"?", "schema": "addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text)", "summarized-schema": "customers : customer_name (text) , payment_method (text) , customer_id (number)"} @@ -6201,7 +6201,7 @@ {"db_id": "music_4", "question": "How many music festivals have had each kind of result, ordered descending by count?", "schema": "artist : artist_id (number) , artist (text) , age (number) , famous_title (text) , famous_release_date (text) | volume : volume_id (number) , volume_issue (text) , issue_date (text) , weeks_on_top (number) , song (text) , artist_id (number) | music_festival : id (number) , music_festival (text) , date_of_ceremony (text) , category (text) , volume (number) , result (text)", "summarized-schema": "music_festival : result (text) , music_festival (text) , id (number)"} {"db_id": "music_4", "question": "What are the issue dates of volumes associated with the artist aged 23 or younger?", "schema": "artist : artist_id (number) , artist (text) , age (number) , famous_title (text) , famous_release_date (text) | volume : volume_id (number) , volume_issue (text) , issue_date (text) , weeks_on_top (number) , song (text) , artist_id (number) | music_festival : id (number) , music_festival (text) , date_of_ceremony (text) , category (text) , volume (number) , result (text)", "summarized-schema": "volume : issue_date (text) , artist_id (number) , volume_id (number) | artist : artist (text) , artist_id (number) , age (number) , artist_id (number) | music_festival : volume (number) , id (number)"} {"db_id": "music_4", "question": "Return the issue dates of volumes by artists who are at most 23 years old?", "schema": "artist : artist_id (number) , artist (text) , age (number) , famous_title (text) , famous_release_date (text) | volume : volume_id (number) , volume_issue (text) , issue_date (text) , weeks_on_top (number) , song (text) , artist_id (number) | music_festival : id (number) , music_festival (text) , date_of_ceremony (text) , category (text) , volume (number) , result (text)", "summarized-schema": "volume : issue_date (text) , artist_id (number) , volume_id (number) | artist : artist (text) , artist_id (number) , age (number) , artist_id (number) | music_festival : volume (number) , id (number)"} -{"db_id": "roller_coaster", "question": "How many roller coasters are there?", "schema": "roller_coaster : roller_coaster_id (number) , name (text) , park (text) , country_id (number) , length (number) , height (number) , speed (text) , opened (text) , status (text) | country : country_id (number) , name (text) , population (number) , area (number) , languages (text)", "summarized-schema": ""} +{"db_id": "roller_coaster", "question": "How many roller coasters are there?", "schema": "roller_coaster : roller_coaster_id (number) , name (text) , park (text) , country_id (number) , length (number) , height (number) , speed (text) , opened (text) , status (text) | country : country_id (number) , name (text) , population (number) , area (number) , languages (text)", "summarized-schema": "roller_coaster : roller_coaster_id (number)"} {"db_id": "roller_coaster", "question": "List the names of roller coasters by ascending order of length.", "schema": "roller_coaster : roller_coaster_id (number) , name (text) , park (text) , country_id (number) , length (number) , height (number) , speed (text) , opened (text) , status (text) | country : country_id (number) , name (text) , population (number) , area (number) , languages (text)", "summarized-schema": "roller_coaster : name (text) , length (number) , roller_coaster_id (number) | country : name (text) , country_id (number)"} {"db_id": "roller_coaster", "question": "What are the lengths and heights of roller coasters?", "schema": "roller_coaster : roller_coaster_id (number) , name (text) , park (text) , country_id (number) , length (number) , height (number) , speed (text) , opened (text) , status (text) | country : country_id (number) , name (text) , population (number) , area (number) , languages (text)", "summarized-schema": "roller_coaster : length (number) , height (number) , roller_coaster_id (number)"} {"db_id": "roller_coaster", "question": "List the names of countries whose language is not \"German\".", "schema": "roller_coaster : roller_coaster_id (number) , name (text) , park (text) , country_id (number) , length (number) , height (number) , speed (text) , opened (text) , status (text) | country : country_id (number) , name (text) , population (number) , area (number) , languages (text)", "summarized-schema": "roller_coaster : name (text) , roller_coaster_id (number) | country : name (text) , languages (text) , country_id (number)"} @@ -6242,8 +6242,8 @@ {"db_id": "ship_1", "question": "What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": "captain : rank (text) , class (text) , captain_id (number) | ship : class (text) , ship_id (number)"} {"db_id": "ship_1", "question": "What is the name of the youngest captain?", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": "captain : name (text) , age (text) , captain_id (number) | ship : name (text) , ship_id (number)"} {"db_id": "ship_1", "question": "Return the name of the youngest captain.", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": "captain : name (text) , age (text) , captain_id (number) | ship : name (text) , ship_id (number)"} -{"db_id": "ship_1", "question": "how many ships are there?", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": ""} -{"db_id": "ship_1", "question": "Count the number of ships.", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": ""} +{"db_id": "ship_1", "question": "how many ships are there?", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": "ship : ship_id (number)"} +{"db_id": "ship_1", "question": "Count the number of ships.", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": "ship : ship_id (number)"} {"db_id": "ship_1", "question": "Find the name, type, and flag of the ship that is built in the most recent year.", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": "captain : name (text) , captain_id (number) | ship : name (text) , type (text) , flag (text) , built_year (number) , ship_id (number)"} {"db_id": "ship_1", "question": "What is the name, type, and flag of the ship that was built in the most recent year?", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": "captain : name (text) , captain_id (number) | ship : name (text) , type (text) , flag (text) , built_year (number) , ship_id (number)"} {"db_id": "ship_1", "question": "Group by ships by flag, and return number of ships that have each flag.", "schema": "captain : captain_id (number) , name (text) , ship_id (number) , age (text) , class (text) , rank (text) | ship : ship_id (number) , name (text) , type (text) , built_year (number) , class (text) , flag (text)", "summarized-schema": "ship : flag (text) , ship_id (number)"} @@ -6324,8 +6324,8 @@ {"db_id": "e_government", "question": "What is the last name of the contact individual from the Labour party organization who was contacted most recently?", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "individuals : individual_last_name (text) , individual_id (number) , individual_id (number) | organizations : organization_id (number) , organization_name (text) , organization_id (number) | organization_contact_individuals : organization_id (number) , individual_id (number) , date_contact_to (time) , individual_id (number)"} {"db_id": "e_government", "question": "Find the last name of the first ever contact person of the organization with the highest UK Vat number.", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "individuals : individual_last_name (text) , individual_id (number) , individual_id (number) | organizations : organization_id (number) , uk_vat_number (text) , organization_id (number) | organization_contact_individuals : organization_id (number) , individual_id (number) , date_contact_to (time) , individual_id (number)"} {"db_id": "e_government", "question": "What is the last name of the first individual contacted from the organization with the maximum UK Vat number across all organizations?", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "individuals : individual_last_name (text) , individual_id (number) , individual_id (number) | organizations : organization_id (number) , uk_vat_number (text) , organization_id (number) | organization_contact_individuals : organization_id (number) , individual_id (number) , date_contact_to (time) , individual_id (number)"} -{"db_id": "e_government", "question": "How many services are there?", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": ""} -{"db_id": "e_government", "question": "Count the number of services.", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": ""} +{"db_id": "e_government", "question": "How many services are there?", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "services : service_id (number)"} +{"db_id": "e_government", "question": "Count the number of services.", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "services : service_id (number)"} {"db_id": "e_government", "question": "Find name of the services that has never been used.", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "services : service_name (text) , service_id (number) , service_id (number) | forms : service_id (number) , form_id (number) | party_services : service_id (number)"} {"db_id": "e_government", "question": "What are the names of the services that have never been used?", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "services : service_name (text) , service_id (number) , service_id (number) | forms : service_id (number) , form_id (number) | party_services : service_id (number)"} {"db_id": "e_government", "question": "Find the name of all the cities and states.", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "addresses : town_city (text) , state_province_county (text) , address_id (number)"} @@ -6346,7 +6346,7 @@ {"db_id": "e_government", "question": "Return the name of the organization which has the most contact individuals.", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "organizations : organization_name (text) , organization_id (number) , organization_id (number) | organization_contact_individuals : organization_id (number) , individual_id (number)"} {"db_id": "e_government", "question": "Find the last name of the individuals that have been contact individuals of an organization.", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "individuals : individual_last_name (text) , individual_id (number) , individual_id (number) | organization_contact_individuals : individual_id (number) , individual_id (number)"} {"db_id": "e_government", "question": "What are the last names of individuals who have been contact individuals for an organization?", "schema": "addresses : address_id (number) , line_1_number_building (text) , town_city (text) , zip_postcode (text) , state_province_county (text) , country (text) | services : service_id (number) , service_type_code (text) , service_name (text) , service_descriptio (text) | forms : form_id (number) , form_type_code (text) , service_id (number) , form_number (text) , form_name (text) , form_description (text) | individuals : individual_id (number) , individual_first_name (text) , individual_middle_name (text) , inidividual_phone (text) , individual_email (text) , individual_address (text) , individual_last_name (text) | organizations : organization_id (number) , date_formed (time) , organization_name (text) , uk_vat_number (text) | parties : party_id (number) , payment_method_code (text) , party_phone (text) , party_email (text) | organization_contact_individuals : individual_id (number) , organization_id (number) , date_contact_from (time) , date_contact_to (time) | party_addresses : party_id (number) , address_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | party_forms : party_id (number) , form_id (number) , date_completion_started (time) , form_status_code (text) , date_fully_completed (time) | party_services : booking_id (number) , customer_id (number) , service_id (number) , service_datetime (time) , booking_made_date (time)", "summarized-schema": "individuals : individual_last_name (text) , individual_id (number) , individual_id (number) | organization_contact_individuals : individual_id (number) , individual_id (number)"} -{"db_id": "school_bus", "question": "How many drivers are there?", "schema": "driver : driver_id (number) , name (text) , party (text) , home_city (text) , age (number) | school : school_id (number) , grade (text) , school (text) , location (text) , type (text) | school_bus : school_id (number) , driver_id (number) , years_working (number) , if_full_time (others)", "summarized-schema": ""} +{"db_id": "school_bus", "question": "How many drivers are there?", "schema": "driver : driver_id (number) , name (text) , party (text) , home_city (text) , age (number) | school : school_id (number) , grade (text) , school (text) , location (text) , type (text) | school_bus : school_id (number) , driver_id (number) , years_working (number) , if_full_time (others)", "summarized-schema": "driver : driver_id (number)"} {"db_id": "school_bus", "question": "Show the name, home city, and age for all drivers.", "schema": "driver : driver_id (number) , name (text) , party (text) , home_city (text) , age (number) | school : school_id (number) , grade (text) , school (text) , location (text) , type (text) | school_bus : school_id (number) , driver_id (number) , years_working (number) , if_full_time (others)", "summarized-schema": "driver : name (text) , home_city (text) , age (number) , driver_id (number)"} {"db_id": "school_bus", "question": "Show the party and the number of drivers in each party.", "schema": "driver : driver_id (number) , name (text) , party (text) , home_city (text) , age (number) | school : school_id (number) , grade (text) , school (text) , location (text) , type (text) | school_bus : school_id (number) , driver_id (number) , years_working (number) , if_full_time (others)", "summarized-schema": "driver : party (text) , driver_id (number)"} {"db_id": "school_bus", "question": "Show the name of drivers in descending order of age.", "schema": "driver : driver_id (number) , name (text) , party (text) , home_city (text) , age (number) | school : school_id (number) , grade (text) , school (text) , location (text) , type (text) | school_bus : school_id (number) , driver_id (number) , years_working (number) , if_full_time (others)", "summarized-schema": "driver : name (text) , age (number) , driver_id (number)"} @@ -6383,12 +6383,12 @@ {"db_id": "flight_company", "question": "how many airports are there in each country?", "schema": "airport : id (number) , city (text) , country (text) , iata (text) , icao (text) , name (text) | operate_company : id (number) , name (text) , type (text) , principal_activities (text) , incorporated_in (text) , group_equity_shareholding (number) | flight : id (number) , vehicle_flight_number (text) , date (text) , pilot (text) , velocity (number) , altitude (number) , airport_id (number) , company_id (number)", "summarized-schema": "airport : country (text) , id (number)"} {"db_id": "flight_company", "question": "which countries have more than 2 airports?", "schema": "airport : id (number) , city (text) , country (text) , iata (text) , icao (text) , name (text) | operate_company : id (number) , name (text) , type (text) , principal_activities (text) , incorporated_in (text) , group_equity_shareholding (number) | flight : id (number) , vehicle_flight_number (text) , date (text) , pilot (text) , velocity (number) , altitude (number) , airport_id (number) , company_id (number)", "summarized-schema": "airport : country (text) , id (number)"} {"db_id": "flight_company", "question": "which pilot is in charge of the most number of flights?", "schema": "airport : id (number) , city (text) , country (text) , iata (text) , icao (text) , name (text) | operate_company : id (number) , name (text) , type (text) , principal_activities (text) , incorporated_in (text) , group_equity_shareholding (number) | flight : id (number) , vehicle_flight_number (text) , date (text) , pilot (text) , velocity (number) , altitude (number) , airport_id (number) , company_id (number)", "summarized-schema": "flight : pilot (text) , id (number)"} -{"db_id": "cre_Docs_and_Epenses", "question": "How many accounts do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} -{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of accounts.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} +{"db_id": "cre_Docs_and_Epenses", "question": "How many accounts do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "accounts : account_id (number)"} +{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of accounts.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "accounts : account_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Show all account ids and account details.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "accounts : account_id (number) , account_details (text) , account_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What are the ids and details of all accounts?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "accounts : account_id (number) , account_details (text) , account_id (number)"} -{"db_id": "cre_Docs_and_Epenses", "question": "How many statements do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} -{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of statements.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} +{"db_id": "cre_Docs_and_Epenses", "question": "How many statements do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "statements : statement_id (number)"} +{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of statements.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "statements : statement_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "List all statement ids and statement details.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "statements : statement_id (number) , statement_details (text) , statement_id (number) | accounts : statement_id (number) , account_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What are the ids and details of all statements?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "statements : statement_id (number) , statement_details (text) , statement_id (number) | accounts : statement_id (number) , account_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Show statement id, statement detail, account detail for accounts.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "statements : statement_id (number) , statement_details (text) , statement_id (number) | accounts : statement_id (number) , account_details (text) , account_id (number)"} @@ -6397,8 +6397,8 @@ {"db_id": "cre_Docs_and_Epenses", "question": "What are the different statement ids on accounts, and the number of accounts for each?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "statements : statement_id (number) , statement_id (number) | accounts : statement_id (number) , account_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Show the statement id and the statement detail for the statement with most number of accounts.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "statements : statement_id (number) , statement_details (text) , statement_id (number) | accounts : statement_id (number) , account_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What are the statement id and statement detail for the statement that has the most corresponding accounts?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "statements : statement_id (number) , statement_details (text) , statement_id (number) | accounts : statement_id (number) , account_id (number)"} -{"db_id": "cre_Docs_and_Epenses", "question": "Show the number of documents.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} -{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of documents.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} +{"db_id": "cre_Docs_and_Epenses", "question": "Show the number of documents.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "documents : document_id (number)"} +{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of documents.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "documents : document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_document_types : document_type_code (text) , document_type_code (number) | documents : document_type_code (text) , document_name (text) , document_description (text) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What are the type come, name, and description of the document that has either the name 'Noel CV' or 'King Book'?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_document_types : document_type_code (text) , document_type_code (number) | documents : document_type_code (text) , document_name (text) , document_description (text) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Show the ids and names of all documents.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "documents : document_id (number) , document_name (text) , document_id (number) | documents_with_expenses : document_id (number) , document_id (number)"} @@ -6429,22 +6429,22 @@ {"db_id": "cre_Docs_and_Epenses", "question": "Return the description of the document type name 'Film'.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_document_types : document_type_description (text) , document_type_name (text) , document_type_code (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What is the document type name and the document type description and creation date for all the documents?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_document_types : document_type_name (text) , document_type_description (text) , document_type_code (text) , document_type_code (number) | documents : document_date (time) , document_type_code (text) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Return the type name, type description, and date of creation for each document.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_document_types : document_type_name (text) , document_type_description (text) , document_type_code (text) , document_type_code (number) | documents : document_date (time) , document_type_code (text) , document_id (number)"} -{"db_id": "cre_Docs_and_Epenses", "question": "Show the number of projects.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} -{"db_id": "cre_Docs_and_Epenses", "question": "How many projects are there?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} +{"db_id": "cre_Docs_and_Epenses", "question": "Show the number of projects.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "projects : project_id (number)"} +{"db_id": "cre_Docs_and_Epenses", "question": "How many projects are there?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "projects : project_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "List ids and details for all projects.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "projects : project_id (number) , project_details (text) , project_id (number) | documents : project_id (number) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What are the ids and details for each project?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "projects : project_id (number) , project_details (text) , project_id (number) | documents : project_id (number) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What is the project id and detail for the project with at least two documents?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "projects : project_id (number) , project_details (text) , project_id (number) | documents : project_id (number) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Return the ids and details corresponding to projects for which there are more than two documents.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "projects : project_id (number) , project_details (text) , project_id (number) | documents : project_id (number) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What is the project detail for the project with document \"King Book\"?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "projects : project_details (text) , project_id (number) , project_id (number) | documents : project_id (number) , document_name (text) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Give the details of the project with the document name 'King Book'.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "projects : project_details (text) , project_id (number) , project_id (number) | documents : project_id (number) , document_name (text) , document_id (number)"} -{"db_id": "cre_Docs_and_Epenses", "question": "How many budget types do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} -{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of budget codes.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} +{"db_id": "cre_Docs_and_Epenses", "question": "How many budget types do we have?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_budget_codes : budget_type_code (number)"} +{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of budget codes.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_budget_codes : budget_type_code (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "List all budget type codes and descriptions.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_budget_codes : budget_type_code (text) , budget_type_description (text) , budget_type_code (number) | documents_with_expenses : budget_type_code (text) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What are the type codes and descriptions of each budget type?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_budget_codes : budget_type_code (text) , budget_type_description (text) , budget_type_code (number) | documents_with_expenses : budget_type_code (text) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What is the description for the budget type with code ORG?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_budget_codes : budget_type_description (text) , budget_type_code (text) , budget_type_code (number) | documents_with_expenses : budget_type_code (text) , document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Return the description of the budget type that has the code ORG.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_budget_codes : budget_type_description (text) , budget_type_code (text) , budget_type_code (number) | documents_with_expenses : budget_type_code (text) , document_id (number)"} -{"db_id": "cre_Docs_and_Epenses", "question": "How many documents have expenses?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} -{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of documents with expenses.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": ""} +{"db_id": "cre_Docs_and_Epenses", "question": "How many documents have expenses?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "documents_with_expenses : document_id (number)"} +{"db_id": "cre_Docs_and_Epenses", "question": "Count the number of documents with expenses.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "documents_with_expenses : document_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What are the document ids for the budget type code 'SF'?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "documents : document_id (number) , document_id (number) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_id (number) | ref_budget_codes : budget_type_code (text) , budget_type_code (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Give the ids of documents with expenses that have the budget code 'SF'.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "documents : document_id (number) , document_id (number) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_id (number) | ref_budget_codes : budget_type_code (text) , budget_type_code (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Show the budget type code and description and the corresponding document id.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "ref_budget_codes : budget_type_code (text) , budget_type_description (text) , budget_type_code (number) | documents_with_expenses : budget_type_code (text) , document_id (number) , document_id (number) | documents : document_id (number) , document_id (number)"} @@ -6467,8 +6467,8 @@ {"db_id": "cre_Docs_and_Epenses", "question": "Give the dates of creation for documents that have both budget type codes 'GV' and 'SF'.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "documents : document_date (time) , document_id (number) , document_id (number) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_id (number) | ref_budget_codes : budget_type_code (text) , budget_type_code (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "What are the account details with the largest value or with value having char '5' in it?", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "accounts : account_details (text) , account_id (number)"} {"db_id": "cre_Docs_and_Epenses", "question": "Return the account details with the greatest value, as well as those that include the character 5.", "schema": "ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)", "summarized-schema": "accounts : account_details (text) , account_id (number)"} -{"db_id": "scientist_1", "question": "Find the total number of scientists.", "schema": "scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)", "summarized-schema": ""} -{"db_id": "scientist_1", "question": "How many scientists are there?", "schema": "scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)", "summarized-schema": ""} +{"db_id": "scientist_1", "question": "Find the total number of scientists.", "schema": "scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)", "summarized-schema": "scientists : ssn (number)"} +{"db_id": "scientist_1", "question": "How many scientists are there?", "schema": "scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)", "summarized-schema": "scientists : ssn (number)"} {"db_id": "scientist_1", "question": "Find the total hours of all projects.", "schema": "scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)", "summarized-schema": "projects : hours (number) , code (number)"} {"db_id": "scientist_1", "question": "What is the total number of hours for all projects?", "schema": "scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)", "summarized-schema": "projects : hours (number) , code (number)"} {"db_id": "scientist_1", "question": "How many different scientists are assigned to any project?", "schema": "scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)", "summarized-schema": "assignedto : scientist (number) , scientist (number)"} @@ -6597,7 +6597,7 @@ {"db_id": "wine_1", "question": "What is the average price for wines not produced in Sonoma county?", "schema": "grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)", "summarized-schema": "wine : price (number) , appelation (text) | appellations : appelation (text) , county (text) , no (number)"} {"db_id": "wine_1", "question": "Find the county where produces the most number of wines with score higher than 90.", "schema": "grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)", "summarized-schema": "appellations : county (text) , appelation (text) , no (number) | wine : appelation (text) , score (number)"} {"db_id": "wine_1", "question": "What is the county that produces the most wines scoring higher than 90?", "schema": "grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)", "summarized-schema": "appellations : county (text) , appelation (text) , no (number) | wine : appelation (text) , score (number)"} -{"db_id": "train_station", "question": "How many train stations are there?", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": ""} +{"db_id": "train_station", "question": "How many train stations are there?", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : station_id (number)"} {"db_id": "train_station", "question": "Show the name, location, and number of platforms for all stations.", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : name (text) , location (text) , number_of_platforms (number) , station_id (number) | train : name (text) , train_id (number)"} {"db_id": "train_station", "question": "What are all locations of train stations?", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : location (text) , station_id (number)"} {"db_id": "train_station", "question": "Show the names and total passengers for all train stations not in London.", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : name (text) , total_passengers (number) , location (text) , station_id (number) | train : name (text) , train_id (number)"} @@ -6608,7 +6608,7 @@ {"db_id": "train_station", "question": "Show all locations which don't have a train station with at least 15 platforms.", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : location (text) , number_of_platforms (number) , station_id (number)"} {"db_id": "train_station", "question": "Show the location with most number of train stations.", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : location (text) , station_id (number)"} {"db_id": "train_station", "question": "Show the name, time, and service for all trains.", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : name (text) , station_id (number) | train : name (text) , time (text) , service (text) , train_id (number)"} -{"db_id": "train_station", "question": "Show the number of trains", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": ""} +{"db_id": "train_station", "question": "Show the number of trains", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "train : train_id (number)"} {"db_id": "train_station", "question": "Show the name and service for all trains in order by time.", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : name (text) , station_id (number) | train : name (text) , service (text) , time (text) , train_id (number)"} {"db_id": "train_station", "question": "Show the station name and number of trains in each station.", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : name (text) , station_id (number) , station_id (number) | train : name (text) , train_id (number) | train_station : station_id (number) , train_id (number)"} {"db_id": "train_station", "question": "show the train name and station name for each train.", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : name (text) , station_id (number) , station_id (number) | train : name (text) , train_id (number) , train_id (number) | train_station : station_id (number) , train_id (number) , train_id (number)"} @@ -6622,8 +6622,8 @@ {"db_id": "train_station", "question": "List the names and locations of all stations ordered by their yearly entry exit and interchange amounts.", "schema": "station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)", "summarized-schema": "station : name (text) , location (text) , annual_entry_exit (number) , annual_interchanges (number) , station_id (number) | train : name (text) , train_id (number)"} {"db_id": "driving_school", "question": "List all vehicle id", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "vehicles : vehicle_id (number) , vehicle_id (number) | lessons : vehicle_id (number) , lesson_id (number)"} {"db_id": "driving_school", "question": "What are the ids of all vehicles?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "vehicles : vehicle_id (number) , vehicle_id (number) | lessons : vehicle_id (number) , lesson_id (number)"} -{"db_id": "driving_school", "question": "How many vehicle in total?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": ""} -{"db_id": "driving_school", "question": "How many vehicles exist?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": ""} +{"db_id": "driving_school", "question": "How many vehicle in total?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "vehicles : vehicle_id (number)"} +{"db_id": "driving_school", "question": "How many vehicles exist?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "vehicles : vehicle_id (number)"} {"db_id": "driving_school", "question": "Show the detail of vehicle with id 1.", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "vehicles : vehicle_details (text) , vehicle_id (number) , vehicle_id (number) | lessons : vehicle_id (number) , lesson_id (number)"} {"db_id": "driving_school", "question": "What are the details of the car with id 1?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "vehicles : vehicle_details (text) , vehicle_id (number) , vehicle_id (number) | lessons : vehicle_id (number) , lesson_id (number)"} {"db_id": "driving_school", "question": "List the first name middle name and last name of all staff.", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "staff : first_name (text) , middle_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)"} @@ -6638,8 +6638,8 @@ {"db_id": "driving_school", "question": "How many employees have a first name of Ludie?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "staff : first_name (text) , staff_id (number) | customers : first_name (text) , customer_id (number)"} {"db_id": "driving_school", "question": "What is the nickname of staff with first name as Janessa and last name as Sawayn?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "staff : nickname (text) , first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)"} {"db_id": "driving_school", "question": "What is the nickname of the employee named Janessa Sawayn?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "staff : nickname (text) , first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)"} -{"db_id": "driving_school", "question": "How many staff in total?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": ""} -{"db_id": "driving_school", "question": "How many employees are there?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": ""} +{"db_id": "driving_school", "question": "How many staff in total?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "staff : staff_id (number)"} +{"db_id": "driving_school", "question": "How many employees are there?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "staff : staff_id (number)"} {"db_id": "driving_school", "question": "Which city does staff with first name as Janessa and last name as Sawayn live?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "addresses : city (text) , address_id (number) , address_id (number) | staff : staff_address_id (number) , first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)"} {"db_id": "driving_school", "question": "In what city does Janessa Sawayn live?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "addresses : city (text) , address_id (number) , address_id (number) | staff : staff_address_id (number) , first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)"} {"db_id": "driving_school", "question": "Which country and state does staff with first name as Janessa and last name as Sawayn lived?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "addresses : country (text) , state_province_county (text) , address_id (number) , address_id (number) | staff : staff_address_id (number) , first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)"} @@ -6668,8 +6668,8 @@ {"db_id": "driving_school", "question": "What is the date of birth of every customer whose status code is 'Good Customer'?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "staff : date_of_birth (time) , staff_id (number) | customers : date_of_birth (time) , customer_status_code (text) , customer_id (number)"} {"db_id": "driving_school", "question": "When did customer with first name as Carole and last name as Bernhard became a customer?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "customers : date_became_customer (time) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)"} {"db_id": "driving_school", "question": "When did Carole Bernhard first become a customer?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "customers : date_became_customer (time) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)"} -{"db_id": "driving_school", "question": "How many customers in total?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": ""} -{"db_id": "driving_school", "question": "How many customers are there?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": ""} +{"db_id": "driving_school", "question": "How many customers in total?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "customers : customer_id (number)"} +{"db_id": "driving_school", "question": "How many customers are there?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "customers : customer_id (number)"} {"db_id": "driving_school", "question": "List all customer status codes and the number of customers having each status code.", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "customers : customer_status_code (text) , customer_id (number)"} {"db_id": "driving_school", "question": "For each customer status code, how many customers are classified that way?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "customers : customer_status_code (text) , customer_id (number)"} {"db_id": "driving_school", "question": "Which customer status code has least number of customers?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "customers : customer_status_code (text) , customer_id (number)"} @@ -6713,8 +6713,8 @@ {"db_id": "driving_school", "question": "What is the first name of the staff who did not give any lesson?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "staff : first_name (text) , staff_id (number) , staff_id (number) | customers : first_name (text) , customer_id (number) | lessons : staff_id (number) , lesson_id (number)"} {"db_id": "driving_school", "question": "What is the first name of all employees who do not give any lessons?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "staff : first_name (text) , staff_id (number) , staff_id (number) | customers : first_name (text) , customer_id (number) | lessons : staff_id (number) , lesson_id (number)"} {"db_id": "driving_school", "question": "What is the id and detail of the vehicle used in lessons for most of the times?", "schema": "addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)", "summarized-schema": "vehicles : vehicle_id (number) , vehicle_details (text) , vehicle_id (number) | lessons : vehicle_id (number) , lesson_id (number)"} -{"db_id": "activity_1", "question": "How many faculty do we have?", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": ""} -{"db_id": "activity_1", "question": "What is the total number of faculty members?", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": ""} +{"db_id": "activity_1", "question": "How many faculty do we have?", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "faculty : facid (number)"} +{"db_id": "activity_1", "question": "What is the total number of faculty members?", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "faculty : facid (number)"} {"db_id": "activity_1", "question": "What ranks do we have for faculty?", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "faculty : rank (text) , facid (number)"} {"db_id": "activity_1", "question": "Find the list of distinct ranks for faculty.", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "faculty : rank (text) , facid (number)"} {"db_id": "activity_1", "question": "Show all the distinct buildings that have faculty rooms.", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "faculty : building (text) , facid (number)"} @@ -6765,8 +6765,8 @@ {"db_id": "activity_1", "question": "What are the ids of the faculty members who do not advise any student.", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "faculty_participates_in : facid (number) | faculty : facid (number) , facid (number) | student : advisor (number) , stuid (number)"} {"db_id": "activity_1", "question": "What activities do we have?", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "activity : activity_name (text) , actid (number)"} {"db_id": "activity_1", "question": "List all the activities we have.", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "activity : activity_name (text) , actid (number)"} -{"db_id": "activity_1", "question": "How many activities do we have?", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": ""} -{"db_id": "activity_1", "question": "Find the number of activities available.", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": ""} +{"db_id": "activity_1", "question": "How many activities do we have?", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "activity : actid (number)"} +{"db_id": "activity_1", "question": "Find the number of activities available.", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "activity : actid (number)"} {"db_id": "activity_1", "question": "How many faculty members participate in an activity?", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "faculty_participates_in : facid (number) | faculty : facid (number) , facid (number)"} {"db_id": "activity_1", "question": "Give me the number of faculty members who participate in an activity", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "faculty_participates_in : facid (number) | faculty : facid (number) , facid (number)"} {"db_id": "activity_1", "question": "Show the ids of the faculty who don't participate in any activity.", "schema": "activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)", "summarized-schema": "faculty_participates_in : facid (number) | faculty : facid (number) , facid (number)"} @@ -6805,8 +6805,8 @@ {"db_id": "flight_4", "question": "What are the names of the airports in the city of Goroka?", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": "airports : name (text) , city (text) , apid (number) | airlines : name (text) , alid (number)"} {"db_id": "flight_4", "question": "Find the name, city, country, and altitude (or elevation) of the airports in the city of New York.", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": "airports : name (text) , city (text) , country (text) , elevation (number) , apid (number) | airlines : name (text) , country (text) , alid (number)"} {"db_id": "flight_4", "question": "What is the name, city, country, and elevation for every airport in the city of New York?", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": "airports : name (text) , city (text) , country (text) , elevation (number) , apid (number) | airlines : name (text) , country (text) , alid (number)"} -{"db_id": "flight_4", "question": "How many airlines are there?", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": ""} -{"db_id": "flight_4", "question": "What is the total number of airlines?", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": ""} +{"db_id": "flight_4", "question": "How many airlines are there?", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": "airlines : alid (number)"} +{"db_id": "flight_4", "question": "What is the total number of airlines?", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": "airlines : alid (number)"} {"db_id": "flight_4", "question": "How many airlines does Russia has?", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": "airports : country (text) , apid (number) | airlines : country (text) , alid (number)"} {"db_id": "flight_4", "question": "What is the number of airlines based in Russia?", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": "airports : country (text) , apid (number) | airlines : country (text) , alid (number)"} {"db_id": "flight_4", "question": "What is the maximum elevation of all airports in the country of Iceland?", "schema": "routes : rid (number) , dst_apid (number) , dst_ap (text) , src_apid (number) , src_ap (text) , alid (number) , airline (text) , codeshare (text) | airports : apid (number) , name (text) , city (text) , country (text) , x (number) , y (number) , elevation (number) , iata (text) , icao (text) | airlines : alid (number) , name (text) , iata (text) , icao (text) , callsign (text) , country (text) , active (text)", "summarized-schema": "airports : elevation (number) , country (text) , apid (number) | airlines : country (text) , alid (number)"} @@ -6960,8 +6960,8 @@ {"db_id": "architecture", "question": "What is the most common mill type, and how many are there?", "schema": "architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)", "summarized-schema": "mill : type (text) , id (number)"} {"db_id": "architecture", "question": "How many architects haven't built a mill before year 1850?", "schema": "architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)", "summarized-schema": "architect : id (text) , id (number) | bridge : id (number) , architect_id (number) , id (number) | mill : id (number) , architect_id (number) , built_year (number) , id (number)"} {"db_id": "architecture", "question": "show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.", "schema": "architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)", "summarized-schema": "architect : name (text) , id (text) , nationality (text) , id (number) | bridge : name (text) , architect_id (number) , id (number) , length_feet (number) , id (number) | mill : name (text) , architect_id (number) , id (number) , id (number)"} -{"db_id": "culture_company", "question": "How many book clubs are there?", "schema": "book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)", "summarized-schema": ""} -{"db_id": "culture_company", "question": "Count the number of book clubs.", "schema": "book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)", "summarized-schema": ""} +{"db_id": "culture_company", "question": "How many book clubs are there?", "schema": "book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)", "summarized-schema": "book_club : book_club_id (number)"} +{"db_id": "culture_company", "question": "Count the number of book clubs.", "schema": "book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)", "summarized-schema": "book_club : book_club_id (number)"} {"db_id": "culture_company", "question": "show the titles, and authors or editors for all books made after the year 1989.", "schema": "book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)", "summarized-schema": "book_club : book_title (text) , author_or_editor (text) , year (number) , book_club_id (number) | movie : year (number) , movie_id (number)"} {"db_id": "culture_company", "question": "What are the titles and authors or editors that correspond to books made after 1989?", "schema": "book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)", "summarized-schema": "book_club : book_title (text) , author_or_editor (text) , year (number) , book_club_id (number) | movie : year (number) , movie_id (number)"} {"db_id": "culture_company", "question": "Show all distinct publishers for books.", "schema": "book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)", "summarized-schema": "book_club : publisher (text) , book_club_id (number)"}