db_id
stringlengths 3
31
| query
stringlengths 18
577
| question
stringlengths 3
224
| schema
stringlengths 177
6.14k
| primary_keys
stringlengths 16
545
| foreign_keys
stringlengths 16
1.48k
|
---|---|---|---|---|---|
twitter_1 | SELECT max(followers) , sum(followers) FROM user_profiles | Find the maximum and total number of followers of all users. | [Schema (values) (types)]: | twitter_1 | follows : f1 (text) , f2 (number) | tweets : id (text) , uid (number) , text (number) , createdate (number) | user_profiles : uid (text) , name (number) , email (number) , partitionid (number) , followers (number); | [Primary Keys]: follows : f1, tweets : id, user_profiles : uid | [Foreign Keys]: follows : f2 = user_profiles : uid | follows : f1 = user_profiles : uid | tweets : uid = user_profiles : uid |
product_catalog | SELECT distinct(catalog_entry_name) FROM catalog_contents | Find the names of all the catalog entries. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT distinct(catalog_entry_name) FROM catalog_contents | What are all the catalog entry names? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3 | Find the list of attribute data types possessed by more than 3 attribute definitions. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3 | What are the attribute data types with more than 3 attribute definitions? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = "Green" | What is the attribute data type of the attribute with name "Green"? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = "Green" | Find the attribute data type for the attribute named "Green". | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 | Find the name and level of catalog structure with level between 5 and 10. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 | What are the name and level of catalog structure with level number between 5 and 10 | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "%Murray%" | Find all the catalog publishers whose name contains "Murray" | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "%Murray%" | Which catalog publishers have substring "Murray" in their names? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1 | Which catalog publisher has published the most catalogs? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1 | Find the catalog publisher that has the most catalogs. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t1.catalog_name , t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5 | Find the names and publication dates of all catalogs that have catalog level number greater than 5. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t1.catalog_name , t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5 | What are the name and publication date of the catalogs with catalog level number above 5? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1) | What are the entry names of catalog with the attribute possessed by most entries. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1) | Find the entry names of the catalog with the attribute that have the most entries. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1 | What is the entry name of the most expensive catalog (in USD)? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1 | Find the entry name of the catalog with the highest price (in USD). | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1 | What is the level name of the cheapest catalog (in USD)? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1 | Find the level name of the catalog with the lowest price (in USD). | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents | What are the average and minimum price (in Euro) of all products? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents | Give me the average and minimum price (in Euro) of the products. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1 | What is the product with the highest height? Give me the catalog entry name. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1 | Which catalog content has the highest height? Give me the catalog entry name. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1 | Find the name of the product that has the smallest capacity. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1 | Which catalog content has the smallest capacity? Return the catalog entry name. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2%" | Find the names of all the products whose stock number starts with "2". | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2%" | Which catalog contents have a product stock number that starts from "2"? Show the catalog entry names. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" | Find the names of catalog entries with level number 8. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" | What are the names of catalog entries with level number 8? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5 | Find the names of the products with length smaller than 3 or height greater than 5. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5 | Which catalog contents have length below 3 or above 5? Find the catalog entry names. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t1.attribute_name , t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 | Find the name and attribute ID of the attribute definitions with attribute value 0. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT t1.attribute_name , t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 | Which attribute definitions have attribute value 0? Give me the attribute name and attribute ID. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700 | Find the name and capacity of products with price greater than 700 (in USD). | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700 | Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1 | Find the dates on which more than one revisions were made. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1 | On which days more than one revisions were made on catalogs. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT count(*) FROM catalog_contents | How many products are there in the records? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT count(*) FROM catalog_contents | Find the total number of catalog contents. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8 | Name all the products with next entry ID greater than 8. | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
product_catalog | SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8 | What are the catalog entry names of the products with next entry ID above 8? | [Schema (values) (types)]: | product_catalog | Attribute_Definitions : attribute_id (text) , attribute_name (number) , attribute_data_type (text) | Catalogs : catalog_id (text) , catalog_name (number) , catalog_publisher (text) , date_of_publication (text) , date_of_latest_revision (number) | Catalog_Structure : catalog_level_number (text) , catalog_id (number) , catalog_level_name (text) | Catalog_Contents : catalog_entry_id (text) , catalog_level_number (number) , parent_entry_id (text) , previous_entry_id (text) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (time) , price_in_euros (time) , price_in_pounds (number) , capacity (number) , length (text) , height (number) , width (number) | Catalog_Contents_Additional_Attributes : catalog_entry_id (text) , catalog_level_number (number) , attribute_id (text) , attribute_value (text); | [Primary Keys]: attribute_definitions : attribute_id, catalogs : catalog_id, catalog_structure : catalog_level_number, catalog_contents : catalog_entry_id | [Foreign Keys]: catalog_structure : catalog_id = catalogs : catalog_id | catalog_contents : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_level_number = catalog_structure : catalog_level_number | catalog_contents_additional_attributes : catalog_entry_id = catalog_contents : catalog_entry_id |
flight_1 | SELECT count(*) FROM Aircraft | How many aircrafts do we have? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT count(*) FROM Aircraft | How many aircrafts exist in the database? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name , distance FROM Aircraft | Show name and distance for all aircrafts. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name , distance FROM Aircraft | What are the names and distances for all airplanes? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT aid FROM Aircraft WHERE distance > 1000 | Show ids for all aircrafts with more than 1000 distance. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT aid FROM Aircraft WHERE distance > 1000 | What are the ids of all aircrafts that can cover a distance of more than 1000? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000 | How many aircrafts have distance between 1000 and 5000? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000 | What is the count of aircrafts that have a distance between 1000 and 5000? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name , distance FROM Aircraft WHERE aid = 12 | What is the name and distance for aircraft with id 12? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name , distance FROM Aircraft WHERE aid = 12 | What is the name and distance for the aircraft that has an id of 12? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft | What is the minimum, average, and maximum distance of all aircrafts. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft | Return the minimum, average and maximum distances traveled across all aircrafts. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1 | Show the id and name of the aircraft with the maximum distance. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1 | What is the id and name of the aircraft that can cover the maximum distance? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name FROM Aircraft ORDER BY distance LIMIT 3 | Show the name of aircrafts with top three lowest distances. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name FROM Aircraft ORDER BY distance LIMIT 3 | What are the aircrafts with top 3 shortest lengthes? List their names. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft) | Show names for all aircrafts with distances more than the average. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft) | What are the names of all aircrafts that can cover more distances than average? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT count(*) FROM Employee | How many employees do we have? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT count(*) FROM Employee | What is the number of employees? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name , salary FROM Employee ORDER BY salary | Show name and salary for all employees sorted by salary. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name , salary FROM Employee ORDER BY salary | What is the name and salary of all employees in order of salary? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT eid FROM Employee WHERE salary > 100000 | Show ids for all employees with at least 100000 salary. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT eid FROM Employee WHERE salary > 100000 | What is the id of every employee who has at least a salary of 100000? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000 | How many employees have salary between 100000 and 200000? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000 | What is the number of employees that have a salary between 100000 and 200000? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name , salary FROM Employee WHERE eid = 242518965 | What is the name and salary for employee with id 242518965? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name , salary FROM Employee WHERE eid = 242518965 | What is the name and salary of the employee with the id 242518965? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT avg(salary) , max(salary) FROM Employee | What is average and maximum salary of all employees. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT avg(salary) , max(salary) FROM Employee | What is the average and largest salary of all employees? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1 | Show the id and name of the employee with maximum salary. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1 | What is the id and name of the employee with the highest salary? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name FROM Employee ORDER BY salary ASC LIMIT 3 | Show the name of employees with three lowest salaries. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name FROM Employee ORDER BY salary ASC LIMIT 3 | What is the name of the 3 employees who get paid the least? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee) | Show names for all employees with salary more than the average. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee) | What are the names of all employees who have a salary higher than average? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT eid , salary FROM Employee WHERE name = 'Mark Young' | Show the id and salary of Mark Young. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT eid , salary FROM Employee WHERE name = 'Mark Young' | What is the id and salary of the employee named Mark Young? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT count(*) FROM Flight | How many flights do we have? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT count(*) FROM Flight | What is the number of flights? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT flno , origin , destination FROM Flight ORDER BY origin | Show flight number, origin, destination of all flights in the alphabetical order of the departure cities. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT flno , origin , destination FROM Flight ORDER BY origin | What is the flight number, origin, and destination for all flights in alphabetical order by departure cities? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT flno FROM Flight WHERE origin = "Los Angeles" | Show all flight number from Los Angeles. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT flno FROM Flight WHERE origin = "Los Angeles" | What are the numbers of all flights coming from Los Angeles? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT origin FROM Flight WHERE destination = "Honolulu" | Show origins of all flights with destination Honolulu. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT origin FROM Flight WHERE destination = "Honolulu" | What are the origins of all flights that are headed to Honolulu? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT departure_date , arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu" | Show me the departure date and arrival date for all flights from Los Angeles to Honolulu. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT departure_date , arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu" | What are the departure and arrival dates of all flights from LA to Honolulu? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT flno FROM Flight WHERE distance > 2000 | Show flight number for all flights with more than 2000 distance. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT flno FROM Flight WHERE distance > 2000 | What are the numbers of all flights that can cover a distance of more than 2000? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT avg(price) FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu" | What is the average price for flights from Los Angeles to Honolulu. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT avg(price) FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu" | What is the average price for flights from LA to Honolulu? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT origin , destination FROM Flight WHERE price > 300 | Show origin and destination for flights with price higher than 300. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT origin , destination FROM Flight WHERE price > 300 | What is the origin and destination for all flights whose price is higher than 300? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1 | Show the flight number and distance of the flight with maximum price. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1 | What is the flight number and its distance for the one with the maximum price? | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
flight_1 | SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3 | Show the flight number of flights with three lowest distances. | [Schema (values) (types)]: | flight_1 | flight : flno (text) , origin (number) , destination (text) , distance (text) , departure_date (number) , arrival_date (time) , price (time) , aid (number) | aircraft : aid (text) , name (number) , distance (text) | employee : eid (text) , name (number) , salary (text) | certificate : eid (text) , aid (number); | [Primary Keys]: flight : flno, aircraft : aid, employee : eid, certificate : eid | [Foreign Keys]: flight : aid = aircraft : aid | certificate : aid = aircraft : aid | certificate : eid = employee : eid |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.