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
|
---|---|---|---|---|---|
entertainment_awards | SELECT Name FROM artwork WHERE TYPE != "Program Talent Show" | List the name of artworks whose type is not "Program Talent Show". | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT Festival_Name , LOCATION FROM festival_detail | What are the names and locations of festivals? | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT Chair_Name FROM festival_detail ORDER BY YEAR ASC | What are the names of the chairs of festivals, sorted in ascending order of the year held? | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1 | What is the location of the festival with the largest number of audience? | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT Festival_Name FROM festival_detail WHERE YEAR = 2007 | What are the names of festivals held in year 2007? | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT avg(Num_of_Audience) FROM festival_detail | What is the average number of audience for festivals? | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3 | Show the names of the three most recent festivals. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT T2.Name , T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID | For each nomination, show the name of the artwork and name of the festival where it is nominated. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007 | Show distinct types of artworks that are nominated in festivals in 2007. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Year | Show the names of artworks in ascending order of the year they are nominated in. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = "Program Talent Show" | Show the names of festivals that have nominated artworks of type "Program Talent Show". | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT T1.Festival_ID , T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2 | Show the ids and names of festivals that have at least two nominations for artworks. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT T1.Festival_ID , T3.Festival_Name , COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID | Show the id, name of each festival and the number of artworks it has nominated. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT TYPE , COUNT(*) FROM artwork GROUP BY TYPE | Please show different types of artworks with the corresponding number of artworks of each type. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | List the most common type of artworks. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT(*) > 1 | List the year in which there are more than one festivals. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination) | List the name of artworks that are not nominated. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT Num_of_Audience FROM festival_detail WHERE YEAR = 2008 OR YEAR = 2010 | Show the number of audience in year 2008 or 2010. | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT sum(Num_of_Audience) FROM festival_detail | What are the total number of the audiences who visited any of the festivals? | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
entertainment_awards | SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION != 'United States' | In which year are there festivals both inside the 'United States' and outside the 'United States'? | [Schema (values) (types)]: | entertainment_awards | festival_detail : festival_id (text) , festival_name (number) , chair_name (text) , location (text) , year (text) , num_of_audience (number) | artwork : artwork_id (text) , type (number) , name (text) | nomination : artwork_id (text) , festival_id (number) , result (text); | [Primary Keys]: festival_detail : festival_id, artwork : artwork_id, nomination : artwork_id | [Foreign Keys]: nomination : festival_id = festival_detail : festival_id | nomination : artwork_id = artwork : artwork_id |
customers_campaigns_ecommerce | SELECT count(*) FROM premises | How many premises are there? | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT DISTINCT premises_type FROM premises | What are all the distinct premise types? | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT premises_type , premise_details FROM premises ORDER BY premises_type | Find the types and details for all premises and order by the premise type. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT premises_type , count(*) FROM premises GROUP BY premises_type | Show each premise type and the number of premises in that type. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT product_category , count(*) FROM mailshot_campaigns GROUP BY product_category | Show all distinct product categories along with the number of mailshots in each category. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers) | Show the name and phone of the customer without any mailshot. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response' | Show the name and phone for customers with a mailshot with outcome code 'No Response'. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT outcome_code , count(*) FROM mailshot_customers GROUP BY outcome_code | Show the outcome code of mailshots along with the number of mailshots in each outcome code. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING count(*) >= 2 | Show the names of customers who have at least 2 mailshots with outcome code 'Order'. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1 | Show the names of customers who have the most mailshots. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name , T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'No Response' | What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT T2.premises_type , T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id | Show the premise type and address type code for all customer addresses. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT DISTINCT address_type_code FROM customer_addresses | What are the distinct address type codes for all customer addresses? | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT order_shipping_charges , customer_id FROM customer_orders WHERE order_status_code = 'Cancelled' OR order_status_code = 'Paid' | Show the shipping charge and customer id for customer orders with order status Cancelled or Paid. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
customers_campaigns_ecommerce | SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE shipping_method_code = 'FedEx' AND order_status_code = 'Paid' | Show the names of customers having an order with shipping method FedEx and order status Paid. | [Schema (values) (types)]: | customers_campaigns_ecommerce | Premises : premise_id (text) , premises_type (number) , premise_details (text) | Products : product_id (text) , product_category (number) , product_name (text) | Customers : customer_id (text) , payment_method (number) , customer_name (text) , customer_phone (text) , customer_email (number) , customer_address (text) , customer_login (text) , customer_password (number) | Mailshot_Campaigns : mailshot_id (text) , product_category (number) , mailshot_name (text) , mailshot_start_date (text) , mailshot_end_date (number) | Customer_Addresses : customer_id (text) , premise_id (number) , date_address_from (text) , address_type_code (text) , date_address_to (number) | Customer_Orders : order_id (text) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (number) , order_delivered_datetime (text) , order_shipping_charges (text) | Mailshot_Customers : mailshot_id (text) , customer_id (number) , outcome_code (text) , mailshot_customer_date (text) | Order_Items : item_id (text) , order_item_status_code (number) , order_id (text) , product_id (text) , item_status_code (number) , item_delivered_datetime (text) , item_order_quantity (text); | [Primary Keys]: premises : premise_id, products : product_id, customers : customer_id, mailshot_campaigns : mailshot_id, customer_addresses : order_id | [Foreign Keys]: customer_addresses : customer_id = customers : customer_id | customer_addresses : premise_id = premises : premise_id | customer_orders : customer_id = customers : customer_id | mailshot_customers : mailshot_id = mailshot_campaigns : mailshot_id | mailshot_customers : customer_id = customers : customer_id | order_items : order_id = customer_orders : order_id | order_items : product_id = products : product_id |
college_3 | SELECT count(*) FROM COURSE | How many courses are there in total? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT count(*) FROM COURSE | Count the number of courses. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT count(*) FROM COURSE WHERE Credits > 2 | How many courses have more than 2 credits? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT count(*) FROM COURSE WHERE Credits > 2 | Count the number of courses with more than 2 credits. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT CName FROM COURSE WHERE Credits = 1 | List all names of courses with 1 credit? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT CName FROM COURSE WHERE Credits = 1 | What are the names of courses with 1 credit? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT CName FROM COURSE WHERE Days = "MTW" | Which courses are taught on days MTW? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT CName FROM COURSE WHERE Days = "MTW" | What are the course names for courses taught on MTW? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT count(*) FROM DEPARTMENT WHERE Division = "AS" | What is the number of departments in Division "AS"? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT count(*) FROM DEPARTMENT WHERE Division = "AS" | How many departments are in the division AS? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DPhone FROM DEPARTMENT WHERE Room = 268 | What are the phones of departments in Room 268? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DPhone FROM DEPARTMENT WHERE Room = 268 | Give the phones for departments in room 268. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = "B" | Find the number of students that have at least one grade "B". | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = "B" | How many students have had at least one "B" grade? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION | Find the max and min grade point for all letter grade. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION | What are the maximum and minumum grade points? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%' | Find the first names of students whose first names contain letter "a". | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%' | What are the first names for students who have an "a" in their first name? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Fname , Lname FROM FACULTY WHERE sex = "M" AND Building = "NEB" | Find the first names and last names of male (sex is M) faculties who live in building NEB. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Fname , Lname FROM FACULTY WHERE sex = "M" AND Building = "NEB" | What are the full names of faculties with sex M and who live in building NEB? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Room FROM FACULTY WHERE Rank = "Professor" AND Building = "NEB" | Find the rooms of faculties with rank professor who live in building NEB. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Room FROM FACULTY WHERE Rank = "Professor" AND Building = "NEB" | What are the rooms for members of the faculty who are professors and who live in building NEB? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DName FROM DEPARTMENT WHERE Building = "Mergenthaler" | Find the department name that is in Building "Mergenthaler". | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DName FROM DEPARTMENT WHERE Building = "Mergenthaler" | What is the name of the department in the Building Mergenthaler? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT * FROM COURSE ORDER BY Credits | List all information about courses sorted by credits in the ascending order. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT * FROM COURSE ORDER BY Credits | What is all the information about courses, ordered by credits ascending? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT CName FROM COURSE ORDER BY Credits | List the course name of courses sorted by credits. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT CName FROM COURSE ORDER BY Credits | What are the course names, ordered by credits? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Fname FROM STUDENT ORDER BY Age DESC | Find the first name of students in the descending order of age. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Fname FROM STUDENT ORDER BY Age DESC | What are the first names of students, ordered by age from greatest to least? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT LName FROM STUDENT WHERE Sex = "F" ORDER BY Age DESC | Find the last name of female (sex is F) students in the descending order of age. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT LName FROM STUDENT WHERE Sex = "F" ORDER BY Age DESC | What are the last names of female students, ordered by age descending? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Lname FROM FACULTY WHERE Building = "Barton" ORDER BY Lname | Find the last names of faculties in building Barton in alphabetic order. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Lname FROM FACULTY WHERE Building = "Barton" ORDER BY Lname | What are the last names of faculty in building Barton, sorted by last name? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Fname FROM FACULTY WHERE Rank = "Professor" ORDER BY Fname | Find the first names of faculties of rank Professor in alphabetic order. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Fname FROM FACULTY WHERE Rank = "Professor" ORDER BY Fname | What are the first names for all faculty professors, ordered by first name? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1 | Find the name of the department that has the biggest number of students minored in? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1 | What is the name of the department with the most students minoring in it? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO | Find the name of the department that has no students minored in? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO | What is the name of the department htat has no students minoring in it? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1 | Find the name of the department that has the fewest members. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1 | What is the name of the department with the fewest members? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1 | Find the rank of the faculty that the fewest faculties belong to. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1 | What is the least common faculty rank? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3 | What are the first and last names of the instructors who teach the top 3 number of courses? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3 | What are the full names of the 3 instructors who teach the most courses? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1 | Which building does the instructor who teaches the most number of courses live in? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1 | Give the building that the instructor who teaches the greatest number of courses lives in. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5 | What are the name of courses that have at least five enrollments? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5 | Give the names of the courses with at least five enrollments. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = "COMPUTER LITERACY" | Find the first name and last name of the instructor of course that has course name | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = "COMPUTER LITERACY" | What is the full name of the instructor who has a course named COMPUTER LITERACY? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = "INTRODUCTION TO COMPUTER SCIENCE" | Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = "INTRODUCTION TO COMPUTER SCIENCE" | What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID | Find the student first and last names and grade points of all enrollments. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID | What are the full names and gradepoints for all enrollments? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8 | Find the distinct student first names of all students that have grade point at least 3.8 in one course. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8 | What are the distinct first names for students with a grade point of 3.8 or above in at least one course? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520 | Find the full names of faculties who are members of department with department number 520. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520 | What are the full names of faculty members who are a part of department 520? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140 | What are the first names and last names of the students that minor in the department with DNO 140. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140 | What are the full names of students minoring in department 140? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = "Computer Science" | Find the last names of faculties who are members of computer science department. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = "Computer Science" | What are the last names of faculty who are part of the computer science department? | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
college_3 | SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = "Smith" | Find the average grade point of student whose last name is Smith. | [Schema (values) (types)]: | college_3 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Faculty : facid (text) , lname (number) , fname (text) , rank (text) , sex (number) , phone (text) , room (number) , building (number) | Department : dno (text) , division (number) , dname (text) , room (text) , building (number) , dphone (text) | Member_of : facid (text) , dno (number) , appt_type (text) | Course : cid (text) , cname (number) , credits (text) , instructor (text) , days (number) , hours (text) , dno (number) | Minor_in : stuid (text) , dno (number) | Enrolled_in : stuid (text) , cid (number) , grade (text) | Gradeconversion : lettergrade (text) , gradepoint (number); | [Primary Keys]: student : stuid, faculty : facid, department : dno, member_of : cid, course : lettergrade | [Foreign Keys]: member_of : dno = department : dno | member_of : facid = faculty : facid | course : dno = department : dno | course : instructor = faculty : facid | minor_in : dno = department : dno | minor_in : stuid = student : stuid | enrolled_in : grade = gradeconversion : lettergrade | enrolled_in : cid = course : cid | enrolled_in : stuid = student : stuid |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.