Question: Show the outcome code of mailshots along with the number of mailshots in each outcome code.

premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)

mailshot_customers : outcome_code (text)


Question: Show the names of customers who have at least 2 mailshots with outcome code 'Order'.

premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)

customers : customer_name (text) , customer_id (number) , customer_id (number) | customer_addresses : customer_id (number) | customer_orders : customer_id (number) , order_id (number) | mailshot_customers : customer_id (number) , outcome_code (text)


Question: Show the names of customers who have the most mailshots.

premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)

customers : customer_name (text) , customer_id (number) , customer_id (number) | customer_addresses : customer_id (number) | customer_orders : customer_id (number) , order_id (number) | mailshot_customers : customer_id (number)


Question: What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome.

premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)

customers : customer_name (text) , payment_method (text) , customer_id (number) , customer_id (number) | customer_addresses : customer_id (number) | customer_orders : customer_id (number) , order_id (number) | mailshot_customers : customer_id (number) , outcome_code (text)


Question: Show the premise type and address type code for all customer addresses.

premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)

premises : premises_type (text) , premise_id (number) , premise_id (number) | customer_addresses : address_type_code (text) , premise_id (number)


Question: What are the distinct address type codes for all customer addresses?

premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)

customer_addresses : address_type_code (text)


Question: Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.

premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)

customer_orders : order_shipping_charges (text) , customer_id (number) , order_status_code (text) , order_id (number) | customers : customer_id (number) , customer_id (number) | customer_addresses : customer_id (number) | mailshot_customers : customer_id (number)


Question: Show the names of customers having an order with shipping method FedEx and order status Paid.

premises : premise_id (number) , premises_type (text) , premise_details (text) | products : product_id (number) , product_category (text) , product_name (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , customer_address (text) , customer_login (text) , customer_password (text) | mailshot_campaigns : mailshot_id (number) , product_category (text) , mailshot_name (text) , mailshot_start_date (time) , mailshot_end_date (time) | customer_addresses : customer_id (number) , premise_id (number) , date_address_from (time) , address_type_code (text) , date_address_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , shipping_method_code (text) , order_placed_datetime (time) , order_delivered_datetime (time) , order_shipping_charges (text) | mailshot_customers : mailshot_id (number) , customer_id (number) , outcome_code (text) , mailshot_customer_date (time) | order_items : item_id (number) , order_item_status_code (text) , order_id (number) , product_id (number) , item_status_code (text) , item_delivered_datetime (time) , item_order_quantity (text)

customers : customer_name (text) , customer_id (number) , customer_id (number) | customer_addresses : customer_id (number) | customer_orders : customer_id (number) , shipping_method_code (text) , order_status_code (text) , order_id (number) | mailshot_customers : customer_id (number)


Question: How many courses are there in total?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)


Question: Count the number of courses.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)


Question: How many courses have more than 2 credits?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : credits (number) , cid (number)


Question: Count the number of courses with more than 2 credits.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : credits (number) , cid (number)


Question: List all names of courses with 1 credit?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , credits (number) , cid (number)


Question: What are the names of courses with 1 credit?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , credits (number) , cid (number)


Question: Which courses are taught on days MTW?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , days (text) , cid (number)


Question: What are the course names for courses taught on MTW?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , days (text) , cid (number)


Question: What is the number of departments in Division "AS"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : division (text) , dno (number)


Question: How many departments are in the division AS?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : division (text) , dno (number)


Question: What are the phones of departments in Room 268?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dphone (number) , room (text) , dno (number) | faculty : room (text) , facid (number)


Question: Give the phones for departments in room 268.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dphone (number) , room (text) , dno (number) | faculty : room (text) , facid (number)


Question: Find the number of students that have at least one grade "B".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : stuid (number) , stuid (number) | minor_in : stuid (number) | enrolled_in : stuid (number) , grade (text)


Question: How many students have had at least one "B" grade?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : stuid (number) , stuid (number) | minor_in : stuid (number) | enrolled_in : stuid (number) , grade (text)


Question: Find the max and min grade point for all letter grade.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

gradeconversion : gradepoint (number) , lettergrade (number)


Question: What are the maximum and minumum grade points?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

gradeconversion : gradepoint (number) , lettergrade (number)


Question: Find the first names of students whose first names contain letter "a".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , stuid (number) | faculty : fname (text) , facid (number)


Question: What are the first names for students who have an "a" in their first name?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , stuid (number) | faculty : fname (text) , facid (number)


Question: Find the first names and last names of male (sex is M) faculties who live in building NEB.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , sex (text) , stuid (number) | faculty : fname (text) , lname (text) , sex (text) , building (text) , facid (number) | department : building (text) , dno (number)


Question: What are the full names of faculties with sex M and who live in building NEB?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , sex (text) , stuid (number) | faculty : fname (text) , lname (text) , sex (text) , building (text) , facid (number) | department : building (text) , dno (number)


Question: Find the rooms of faculties with rank professor who live in building NEB.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

faculty : room (text) , rank (text) , building (text) , facid (number) | department : room (text) , building (text) , dno (number)


Question: What are the rooms for members of the faculty who are professors and who live in building NEB?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

faculty : room (text) , rank (text) , building (text) , facid (number) | department : room (text) , building (text) , dno (number)


Question: Find the department name that is in Building "Mergenthaler".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , building (text) , dno (number) | faculty : building (text) , facid (number)


Question: What is the name of the department in the Building Mergenthaler?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , building (text) , dno (number) | faculty : building (text) , facid (number)


Question: List all information about courses sorted by credits in the ascending order.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : credits (number) , cid (number)


Question: What is all the information about courses, ordered by credits ascending?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : credits (number) , cid (number)


Question: List the course name of courses sorted by credits.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , credits (number) , cid (number)


Question: What are the course names, ordered by credits?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , credits (number) , cid (number)


Question: Find the first name of students in the descending order of age.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , age (number) , stuid (number) | faculty : fname (text) , facid (number)


Question: What are the first names of students, ordered by age from greatest to least?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , age (number) , stuid (number) | faculty : fname (text) , facid (number)


Question: Find the last name of female (sex is F) students in the descending order of age.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : lname (text) , sex (text) , age (number) , stuid (number) | faculty : lname (text) , sex (text) , facid (number)


Question: What are the last names of female students, ordered by age descending?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : lname (text) , sex (text) , age (number) , stuid (number) | faculty : lname (text) , sex (text) , facid (number)


Question: Find the last names of faculties in building Barton in alphabetic order.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : lname (text) , stuid (number) | faculty : lname (text) , building (text) , facid (number) | department : building (text) , dno (number)


Question: What are the last names of faculty in building Barton, sorted by last name?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : lname (text) , stuid (number) | faculty : lname (text) , building (text) , facid (number) | department : building (text) , dno (number)


Question: Find the first names of faculties of rank Professor in alphabetic order.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , stuid (number) | faculty : fname (text) , rank (text) , facid (number)


Question: What are the first names for all faculty professors, ordered by first name?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , stuid (number) | faculty : fname (text) , rank (text) , facid (number)


Question: Find the name of the department that has the biggest number of students minored in?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , dno (number) , dno (number) | member_of : dno (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: What is the name of the department with the most students minoring in it?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , dno (number) , dno (number) | member_of : dno (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: Find the name of the department that has no students minored in?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , dno (number) , dno (number) | member_of : dno (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: What is the name of the department htat has no students minoring in it?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , dno (number) , dno (number) | member_of : dno (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: Find the name of the department that has the fewest members.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , dno (number) , dno (number) | member_of : dno (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: What is the name of the department with the fewest members?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , dno (number) , dno (number) | member_of : dno (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: Find the rank of the faculty that the fewest faculties belong to.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)


Question: What is the least common faculty rank?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)


Question: What are the first and last names of the instructors who teach the top 3 number of courses?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) , facid (number) | course : instructor (number) , cid (number) | member_of : facid (number)


Question: What are the full names of the 3 instructors who teach the most courses?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) , facid (number) | course : instructor (number) , cid (number) | member_of : facid (number)


Question: Which building does the instructor who teaches the most number of courses live in?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

faculty : building (text) , facid (number) , facid (number) | department : building (text) , dno (number) | course : instructor (number) , cid (number) | member_of : facid (number)


Question: Give the building that the instructor who teaches the greatest number of courses lives in.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

faculty : building (text) , facid (number) , facid (number) | department : building (text) , dno (number) | course : instructor (number) , cid (number) | member_of : facid (number)


Question: What are the name of courses that have at least five enrollments?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , cid (text) , cid (number) | enrolled_in : cid (text)


Question: Give the names of the courses with at least five enrollments.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , cid (text) , cid (number) | enrolled_in : cid (text)


Question: Find the first name and last name of the instructor of course that has course name

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) , facid (number) | course : instructor (number) , cname (text) , cid (number) | member_of : facid (number)


Question: What is the full name of the instructor who has a course named COMPUTER LITERACY?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) , facid (number) | course : instructor (number) , cname (text) , cid (number) | member_of : facid (number)


Question: Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , room (text) , dno (number) , dno (number) | faculty : room (text) , facid (number) | member_of : dno (number) | course : dno (number) , cname (text) , cid (number) | minor_in : dno (number)


Question: What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , room (text) , dno (number) , dno (number) | faculty : room (text) , facid (number) | member_of : dno (number) | course : dno (number) , cname (text) , cid (number) | minor_in : dno (number)


Question: Find the student first and last names and grade points of all enrollments.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) | gradeconversion : gradepoint (number) , lettergrade (text) , lettergrade (number) | enrolled_in : grade (text) , stuid (number) | minor_in : stuid (number)


Question: What are the full names and gradepoints for all enrollments?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) | gradeconversion : gradepoint (number) , lettergrade (text) , lettergrade (number) | enrolled_in : grade (text) , stuid (number) | minor_in : stuid (number)


Question: Find the distinct student first names of all students that have grade point at least 3.8 in one course.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , stuid (number) , stuid (number) | faculty : fname (text) , facid (number) | enrolled_in : grade (text) , stuid (number) | gradeconversion : lettergrade (text) , gradepoint (number) , lettergrade (number) | minor_in : stuid (number)


Question: What are the distinct first names for students with a grade point of 3.8 or above in at least one course?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , stuid (number) , stuid (number) | faculty : fname (text) , facid (number) | enrolled_in : grade (text) , stuid (number) | gradeconversion : lettergrade (text) , gradepoint (number) , lettergrade (number) | minor_in : stuid (number)


Question: Find the full names of faculties who are members of department with department number 520.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) , facid (number) | member_of : facid (number) , dno (number) | department : dno (number) , dno (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: What are the full names of faculty members who are a part of department 520?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) , facid (number) | member_of : facid (number) , dno (number) | department : dno (number) , dno (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: What are the first names and last names of the students that minor in the department with DNO 140.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) | department : dno (number) , dno (number) | member_of : dno (number) | course : dno (number) , cid (number)


Question: What are the full names of students minoring in department 140?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , lname (text) , stuid (number) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) | department : dno (number) , dno (number) | member_of : dno (number) | course : dno (number) , cid (number)


Question: Find the last names of faculties who are members of computer science department.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : lname (text) , stuid (number) | faculty : lname (text) , facid (number) , facid (number) | department : dno (number) , dname (text) , dno (number) | member_of : dno (number) , facid (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: What are the last names of faculty who are part of the computer science department?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : lname (text) , stuid (number) | faculty : lname (text) , facid (number) , facid (number) | department : dno (number) , dname (text) , dno (number) | member_of : dno (number) , facid (number) | course : dno (number) , cid (number) | minor_in : dno (number)


Question: Find the average grade point of student whose last name is Smith.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

gradeconversion : gradepoint (number) , lettergrade (text) , lettergrade (number) | enrolled_in : grade (text) , stuid (number) | student : stuid (number) , lname (text) , stuid (number) | minor_in : stuid (number) | faculty : lname (text) , facid (number)


Question: What is the average gradepoint for students with the last name Smith?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

gradeconversion : gradepoint (number) , lettergrade (text) , lettergrade (number) | enrolled_in : grade (text) , stuid (number) | student : stuid (number) , lname (text) , stuid (number) | minor_in : stuid (number) | faculty : lname (text) , facid (number)


Question: What is the maximum and minimum grade point of students who live in NYC?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

gradeconversion : gradepoint (number) , lettergrade (text) , lettergrade (number) | enrolled_in : grade (text) , stuid (number) | student : stuid (number) , city_code (text) , stuid (number) | minor_in : stuid (number)


Question: Give the maximum and minimum gradepoints for students living in NYC?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

gradeconversion : gradepoint (number) , lettergrade (text) , lettergrade (number) | enrolled_in : grade (text) , stuid (number) | student : stuid (number) , city_code (text) , stuid (number) | minor_in : stuid (number)


Question: Find the names of courses that have either 3 credits or 1 credit but 4 hours.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , credits (number) , hours (text) , cid (number)


Question: What are the names of courses that give either 3 credits, or 1 credit and 4 hours?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

course : cname (text) , credits (number) , hours (text) , cid (number)


Question: Find the names of departments that are either in division AS or in division EN and in Building NEB.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , division (text) , building (text) , dno (number) | faculty : building (text) , facid (number)


Question: What are the names of departments either in division AS, or in division EN and in building NEB?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

department : dname (text) , division (text) , building (text) , dno (number) | faculty : building (text) , facid (number)


Question: Find the first name of students not enrolled in any course.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , stuid (number) , stuid (number) | faculty : fname (text) , facid (number) | minor_in : stuid (number) | enrolled_in : stuid (number)


Question: What are the first names of all students that are not enrolled in courses?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text) | department : dno (number) , division (text) , dname (text) , room (text) , building (text) , dphone (number) | member_of : facid (number) , dno (number) , appt_type (text) | course : cid (text) , cname (text) , credits (number) , instructor (number) , days (text) , hours (text) , dno (number) | minor_in : stuid (number) , dno (number) | enrolled_in : stuid (number) , cid (text) , grade (text) | gradeconversion : lettergrade (text) , gradepoint (number)

student : fname (text) , stuid (number) , stuid (number) | faculty : fname (text) , facid (number) | minor_in : stuid (number) | enrolled_in : stuid (number)


Question: What are the ids of the top three products that were purchased in the largest amount?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_id (number) , product_id (number) | order_items : product_id (number) , order_item_id (number) | product_suppliers : product_id (number) , total_amount_purchased (text) , product_id (number)


Question: Give the ids of the three products purchased in the largest amounts.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_id (number) , product_id (number) | order_items : product_id (number) , order_item_id (number) | product_suppliers : product_id (number) , total_amount_purchased (text) , product_id (number)


Question: What are the product id and product type of the cheapest product?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_id (number) , product_type_code (text) , product_price (number) , product_id (number) | order_items : product_id (number) , order_item_id (number) | product_suppliers : product_id (number) , product_id (number)


Question: Give the id and product type of the product with the lowest price.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_id (number) , product_type_code (text) , product_price (number) , product_id (number) | order_items : product_id (number) , order_item_id (number) | product_suppliers : product_id (number) , product_id (number)


Question: Find the number of different product types.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_type_code (text) , product_id (number)


Question: Count the number of distinct product types.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_type_code (text) , product_id (number)


Question: Return the address of customer 10.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

addresses : address_details (text) , address_id (number) , address_id (number) | supplier_addresses : address_id (number) , supplier_id (number) | customer_addresses : address_id (number) , customer_id (number) , customer_id (number) | customers : customer_id (number) , customer_id (number) | customer_orders : customer_id (number) , order_id (number)


Question: What is the address for the customer with id 10?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

addresses : address_details (text) , address_id (number) , address_id (number) | supplier_addresses : address_id (number) , supplier_id (number) | customer_addresses : address_id (number) , customer_id (number) , customer_id (number) | customers : customer_id (number) , customer_id (number) | customer_orders : customer_id (number) , order_id (number)


Question: What are the staff ids and genders of all staffs whose job title is Department Manager?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

staff : staff_id (number) , staff_gender (text) , staff_id (number) | staff_department_assignments : staff_id (number) , job_title_code (text) , staff_id (number)