db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
twitter_1
|
Find the maximum and total number of followers of all users.
|
follows : f1 (number) , f2 (number) | tweets : id (number) , uid (number) , text (text) , createdate (time) | user_profiles : uid (number) , name (text) , email (text) , partitionid (number) , followers (number)
|
user_profiles : followers (number)
| 0.909091 |
product_catalog
|
Find the names of all the catalog entries.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text)
| 0.965517 |
product_catalog
|
What are all the catalog entry names?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text)
| 0.965517 |
product_catalog
|
Find the list of attribute data types possessed by more than 3 attribute definitions.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
attribute_definitions : attribute_data_type (text) , attribute_id (number)
| 0.931034 |
product_catalog
|
What are the attribute data types with more than 3 attribute definitions?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
attribute_definitions : attribute_data_type (text) , attribute_id (number)
| 0.931034 |
product_catalog
|
What is the attribute data type of the attribute with name "Green"?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
attribute_definitions : attribute_data_type (text) , attribute_name (text)
| 0.931034 |
product_catalog
|
Find the attribute data type for the attribute named "Green".
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
attribute_definitions : attribute_data_type (text) , attribute_name (text)
| 0.931034 |
product_catalog
|
Find the name and level of catalog structure with level between 5 and 10.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_structure : catalog_level_name (text) , catalog_level_number (number)
| 0.931034 |
product_catalog
|
What are the name and level of catalog structure with level number between 5 and 10
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_structure : catalog_level_name (text) , catalog_level_number (number)
| 0.931034 |
product_catalog
|
Find all the catalog publishers whose name contains "Murray"
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalogs : catalog_publisher (text)
| 0.965517 |
product_catalog
|
Which catalog publishers have substring "Murray" in their names?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalogs : catalog_publisher (text)
| 0.965517 |
product_catalog
|
Which catalog publisher has published the most catalogs?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalogs : catalog_publisher (text) , catalog_id (number)
| 0.931034 |
product_catalog
|
Find the catalog publisher that has the most catalogs.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalogs : catalog_publisher (text) , catalog_id (number)
| 0.931034 |
product_catalog
|
Find the names and publication dates of all catalogs that have catalog level number greater than 5.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalogs : catalog_name (text) , date_of_publication (time) , catalog_id (number) | catalog_structure : catalog_id (number) , catalog_level_number (number)
| 0.827586 |
product_catalog
|
What are the name and publication date of the catalogs with catalog level number above 5?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalogs : catalog_name (text) , date_of_publication (time) , catalog_id (number) | catalog_structure : catalog_id (number) , catalog_level_number (number)
| 0.827586 |
product_catalog
|
What are the entry names of catalog with the attribute possessed by most entries.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , catalog_entry_id (number) | catalog_contents_additional_attributes : catalog_entry_id (number) , attribute_value (text)
| 0.862069 |
product_catalog
|
Find the entry names of the catalog with the attribute that have the most entries.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , catalog_entry_id (number) | catalog_contents_additional_attributes : catalog_entry_id (number) , attribute_value (text)
| 0.862069 |
product_catalog
|
What is the entry name of the most expensive catalog (in USD)?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , price_in_dollars (number)
| 0.931034 |
product_catalog
|
Find the entry name of the catalog with the highest price (in USD).
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , price_in_dollars (number)
| 0.931034 |
product_catalog
|
What is the level name of the cheapest catalog (in USD)?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_structure : catalog_level_name (text) , catalog_level_number (number) | catalog_contents : catalog_level_number (number) , price_in_dollars (number)
| 0.862069 |
product_catalog
|
Find the level name of the catalog with the lowest price (in USD).
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_structure : catalog_level_name (text) , catalog_level_number (number) | catalog_contents : catalog_level_number (number) , price_in_dollars (number)
| 0.862069 |
product_catalog
|
What are the average and minimum price (in Euro) of all products?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : price_in_euros (number)
| 0.965517 |
product_catalog
|
Give me the average and minimum price (in Euro) of the products.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : price_in_euros (number)
| 0.965517 |
product_catalog
|
What is the product with the highest height? Give me the catalog entry name.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , height (text)
| 0.931034 |
product_catalog
|
Which catalog content has the highest height? Give me the catalog entry name.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , height (text)
| 0.931034 |
product_catalog
|
Find the name of the product that has the smallest capacity.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , capacity (text)
| 0.931034 |
product_catalog
|
Which catalog content has the smallest capacity? Return the catalog entry name.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , capacity (text)
| 0.931034 |
product_catalog
|
Find the names of all the products whose stock number starts with "2".
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , product_stock_number (text)
| 0.931034 |
product_catalog
|
Which catalog contents have a product stock number that starts from "2"? Show the catalog entry names.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , product_stock_number (text)
| 0.931034 |
product_catalog
|
Find the names of catalog entries with level number 8.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , catalog_entry_id (number) , catalog_level_number (number) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number)
| 0.827586 |
product_catalog
|
What are the names of catalog entries with level number 8?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , catalog_entry_id (number) , catalog_level_number (number) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number)
| 0.827586 |
product_catalog
|
Find the names of the products with length smaller than 3 or height greater than 5.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , length (text) , width (text)
| 0.896552 |
product_catalog
|
Which catalog contents have length below 3 or above 5? Find the catalog entry names.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , length (text) , width (text)
| 0.896552 |
product_catalog
|
Find the name and attribute ID of the attribute definitions with attribute value 0.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
attribute_definitions : attribute_name (text) , attribute_id (number) | catalog_contents_additional_attributes : attribute_id (number) , attribute_value (text)
| 0.862069 |
product_catalog
|
Which attribute definitions have attribute value 0? Give me the attribute name and attribute ID.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
attribute_definitions : attribute_name (text) , attribute_id (number) | catalog_contents_additional_attributes : attribute_id (number) , attribute_value (text)
| 0.862069 |
product_catalog
|
Find the name and capacity of products with price greater than 700 (in USD).
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , capacity (text) , price_in_dollars (number)
| 0.896552 |
product_catalog
|
Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , capacity (text) , price_in_dollars (number)
| 0.896552 |
product_catalog
|
Find the dates on which more than one revisions were made.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalogs : date_of_latest_revision (time) , catalog_id (number)
| 0.931034 |
product_catalog
|
On which days more than one revisions were made on catalogs.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalogs : date_of_latest_revision (time) , catalog_id (number)
| 0.931034 |
product_catalog
|
How many products are there in the records?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_id (number)
| 0.965517 |
product_catalog
|
Find the total number of catalog contents.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_id (number)
| 0.965517 |
product_catalog
|
Name all the products with next entry ID greater than 8.
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , next_entry_id (number)
| 0.931034 |
product_catalog
|
What are the catalog entry names of the products with next entry ID above 8?
|
attribute_definitions : attribute_id (number) , attribute_name (text) , attribute_data_type (text) | catalogs : catalog_id (number) , catalog_name (text) , catalog_publisher (text) , date_of_publication (time) , date_of_latest_revision (time) | catalog_structure : catalog_level_number (number) , catalog_id (number) , catalog_level_name (text) | catalog_contents : catalog_entry_id (number) , catalog_level_number (number) , parent_entry_id (number) , previous_entry_id (number) , next_entry_id (number) , catalog_entry_name (text) , product_stock_number (text) , price_in_dollars (number) , price_in_euros (number) , price_in_pounds (number) , capacity (text) , length (text) , height (text) , width (text) | catalog_contents_additional_attributes : catalog_entry_id (number) , catalog_level_number (number) , attribute_id (number) , attribute_value (text)
|
catalog_contents : catalog_entry_name (text) , next_entry_id (number)
| 0.931034 |
flight_1
|
How many aircrafts do we have?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : aid (number)
| 0.9375 |
flight_1
|
How many aircrafts exist in the database?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : aid (number)
| 0.9375 |
flight_1
|
Show name and distance for all aircrafts.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : name (text) , distance (number)
| 0.875 |
flight_1
|
What are the names and distances for all airplanes?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : name (text) , distance (number)
| 0.875 |
flight_1
|
Show ids for all aircrafts with more than 1000 distance.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : aid (number) , distance (number)
| 0.875 |
flight_1
|
What are the ids of all aircrafts that can cover a distance of more than 1000?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : aid (number) , distance (number)
| 0.875 |
flight_1
|
How many aircrafts have distance between 1000 and 5000?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : distance (number) , aid (number)
| 0.875 |
flight_1
|
What is the count of aircrafts that have a distance between 1000 and 5000?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : distance (number) , aid (number)
| 0.875 |
flight_1
|
What is the name and distance for aircraft with id 12?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : name (text) , distance (number) , aid (number)
| 0.8125 |
flight_1
|
What is the name and distance for the aircraft that has an id of 12?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : name (text) , distance (number) , aid (number)
| 0.8125 |
flight_1
|
What is the minimum, average, and maximum distance of all aircrafts.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : distance (number)
| 0.9375 |
flight_1
|
Return the minimum, average and maximum distances traveled across all aircrafts.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : distance (number)
| 0.9375 |
flight_1
|
Show the id and name of the aircraft with the maximum distance.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : aid (number) , name (text) , distance (number)
| 0.8125 |
flight_1
|
What is the id and name of the aircraft that can cover the maximum distance?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : aid (number) , name (text) , distance (number)
| 0.8125 |
flight_1
|
Show the name of aircrafts with top three lowest distances.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : name (text) , distance (number)
| 0.875 |
flight_1
|
What are the aircrafts with top 3 shortest lengthes? List their names.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : name (text) , distance (number)
| 0.875 |
flight_1
|
Show names for all aircrafts with distances more than the average.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : name (text) , distance (number)
| 0.875 |
flight_1
|
What are the names of all aircrafts that can cover more distances than average?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
aircraft : name (text) , distance (number)
| 0.875 |
flight_1
|
How many employees do we have?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : eid (number)
| 0.9375 |
flight_1
|
What is the number of employees?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : eid (number)
| 0.9375 |
flight_1
|
Show name and salary for all employees sorted by salary.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : name (text) , salary (number)
| 0.875 |
flight_1
|
What is the name and salary of all employees in order of salary?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : name (text) , salary (number)
| 0.875 |
flight_1
|
Show ids for all employees with at least 100000 salary.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : eid (number) , salary (number)
| 0.875 |
flight_1
|
What is the id of every employee who has at least a salary of 100000?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : eid (number) , salary (number)
| 0.875 |
flight_1
|
How many employees have salary between 100000 and 200000?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : salary (number) , eid (number)
| 0.875 |
flight_1
|
What is the number of employees that have a salary between 100000 and 200000?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : salary (number) , eid (number)
| 0.875 |
flight_1
|
What is the name and salary for employee with id 242518965?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : name (text) , salary (number) , eid (number)
| 0.8125 |
flight_1
|
What is the name and salary of the employee with the id 242518965?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : name (text) , salary (number) , eid (number)
| 0.8125 |
flight_1
|
What is average and maximum salary of all employees.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : salary (number)
| 0.9375 |
flight_1
|
What is the average and largest salary of all employees?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : salary (number)
| 0.9375 |
flight_1
|
Show the id and name of the employee with maximum salary.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : eid (number) , name (text) , salary (number)
| 0.8125 |
flight_1
|
What is the id and name of the employee with the highest salary?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : eid (number) , name (text) , salary (number)
| 0.8125 |
flight_1
|
Show the name of employees with three lowest salaries.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : name (text) , salary (number)
| 0.875 |
flight_1
|
What is the name of the 3 employees who get paid the least?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : name (text) , salary (number)
| 0.875 |
flight_1
|
Show names for all employees with salary more than the average.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : name (text) , salary (number)
| 0.875 |
flight_1
|
What are the names of all employees who have a salary higher than average?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : name (text) , salary (number)
| 0.875 |
flight_1
|
Show the id and salary of Mark Young.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : eid (number) , salary (number) , name (text)
| 0.8125 |
flight_1
|
What is the id and salary of the employee named Mark Young?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
employee : eid (number) , salary (number) , name (text)
| 0.8125 |
flight_1
|
How many flights do we have?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number)
| 0.9375 |
flight_1
|
What is the number of flights?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number)
| 0.9375 |
flight_1
|
Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number) , origin (text) , destination (text)
| 0.8125 |
flight_1
|
What is the flight number, origin, and destination for all flights in alphabetical order by departure cities?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number) , origin (text) , destination (text)
| 0.8125 |
flight_1
|
Show all flight number from Los Angeles.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number) , origin (text)
| 0.875 |
flight_1
|
What are the numbers of all flights coming from Los Angeles?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number) , origin (text)
| 0.875 |
flight_1
|
Show origins of all flights with destination Honolulu.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : origin (text) , destination (text)
| 0.875 |
flight_1
|
What are the origins of all flights that are headed to Honolulu?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : origin (text) , destination (text)
| 0.875 |
flight_1
|
Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : departure_date (time) , arrival_date (time) , origin (text) , destination (text)
| 0.75 |
flight_1
|
What are the departure and arrival dates of all flights from LA to Honolulu?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : departure_date (time) , arrival_date (time) , origin (text) , destination (text)
| 0.75 |
flight_1
|
Show flight number for all flights with more than 2000 distance.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number) , distance (number)
| 0.875 |
flight_1
|
What are the numbers of all flights that can cover a distance of more than 2000?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number) , distance (number)
| 0.875 |
flight_1
|
What is the average price for flights from Los Angeles to Honolulu.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : price (number) , origin (text) , destination (text)
| 0.8125 |
flight_1
|
What is the average price for flights from LA to Honolulu?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : price (number) , origin (text) , destination (text)
| 0.8125 |
flight_1
|
Show origin and destination for flights with price higher than 300.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : origin (text) , destination (text) , price (number)
| 0.8125 |
flight_1
|
What is the origin and destination for all flights whose price is higher than 300?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : origin (text) , destination (text) , price (number)
| 0.8125 |
flight_1
|
Show the flight number and distance of the flight with maximum price.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number) , distance (number) , price (number)
| 0.8125 |
flight_1
|
What is the flight number and its distance for the one with the maximum price?
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number) , distance (number) , price (number)
| 0.8125 |
flight_1
|
Show the flight number of flights with three lowest distances.
|
flight : flno (number) , origin (text) , destination (text) , distance (number) , departure_date (time) , arrival_date (time) , price (number) , aid (number) | aircraft : aid (number) , name (text) , distance (number) | employee : eid (number) , name (text) , salary (number) | certificate : eid (number) , aid (number)
|
flight : flno (number) , distance (number)
| 0.875 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.