Question: What are the monthly rentals of student addresses in Texas state?

ref_address_types : address_type_code (text) , address_type_description (text) | ref_detention_type : detention_type_code (text) , detention_type_description (text) | ref_incident_type : incident_type_code (text) , incident_type_description (text) | addresses : address_id (number) , line_1 (text) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | students : student_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , date_first_rental (time) , date_left_university (time) , other_student_details (text) | teachers : teacher_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , gender (text) , cell_mobile_number (text) , email_address (text) , other_details (text) | assessment_notes : notes_id (number) , student_id (number) , teacher_id (number) , date_of_notes (time) , text_of_notes (text) , other_details (text) | behavior_incident : incident_id (number) , incident_type_code (text) , student_id (number) , date_incident_start (time) , date_incident_end (time) , incident_summary (text) , recommendations (text) , other_details (text) | detention : detention_id (number) , detention_type_code (text) , teacher_id (number) , datetime_detention_start (time) , datetime_detention_end (time) , detention_summary (text) , other_details (text) | student_addresses : student_id (number) , address_id (number) , date_address_from (time) , date_address_to (time) , monthly_rental (number) , other_details (text) | students_in_detention : student_id (number) , detention_id (number) , incident_id (number)

student_addresses : monthly_rental (number) , address_id (number) | addresses : address_id (number) , state_province_county (text)


Question: What are the first names and last names of students with address in Wisconsin state?

ref_address_types : address_type_code (text) , address_type_description (text) | ref_detention_type : detention_type_code (text) , detention_type_description (text) | ref_incident_type : incident_type_code (text) , incident_type_description (text) | addresses : address_id (number) , line_1 (text) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | students : student_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , date_first_rental (time) , date_left_university (time) , other_student_details (text) | teachers : teacher_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , gender (text) , cell_mobile_number (text) , email_address (text) , other_details (text) | assessment_notes : notes_id (number) , student_id (number) , teacher_id (number) , date_of_notes (time) , text_of_notes (text) , other_details (text) | behavior_incident : incident_id (number) , incident_type_code (text) , student_id (number) , date_incident_start (time) , date_incident_end (time) , incident_summary (text) , recommendations (text) , other_details (text) | detention : detention_id (number) , detention_type_code (text) , teacher_id (number) , datetime_detention_start (time) , datetime_detention_end (time) , detention_summary (text) , other_details (text) | student_addresses : student_id (number) , address_id (number) , date_address_from (time) , date_address_to (time) , monthly_rental (number) , other_details (text) | students_in_detention : student_id (number) , detention_id (number) , incident_id (number)

students : first_name (text) , last_name (text) , address_id (number) , student_id (number) | addresses : address_id (number) , state_province_county (text)


Question: What are the line 1 and average monthly rentals of all student addresses?

ref_address_types : address_type_code (text) , address_type_description (text) | ref_detention_type : detention_type_code (text) , detention_type_description (text) | ref_incident_type : incident_type_code (text) , incident_type_description (text) | addresses : address_id (number) , line_1 (text) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | students : student_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , date_first_rental (time) , date_left_university (time) , other_student_details (text) | teachers : teacher_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , gender (text) , cell_mobile_number (text) , email_address (text) , other_details (text) | assessment_notes : notes_id (number) , student_id (number) , teacher_id (number) , date_of_notes (time) , text_of_notes (text) , other_details (text) | behavior_incident : incident_id (number) , incident_type_code (text) , student_id (number) , date_incident_start (time) , date_incident_end (time) , incident_summary (text) , recommendations (text) , other_details (text) | detention : detention_id (number) , detention_type_code (text) , teacher_id (number) , datetime_detention_start (time) , datetime_detention_end (time) , detention_summary (text) , other_details (text) | student_addresses : student_id (number) , address_id (number) , date_address_from (time) , date_address_to (time) , monthly_rental (number) , other_details (text) | students_in_detention : student_id (number) , detention_id (number) , incident_id (number)

addresses : line_1 (text) , address_id (number) | student_addresses : monthly_rental (number) , address_id (number)


Question: What is the zip code of the address where the teacher with first name "Lyla" lives?

ref_address_types : address_type_code (text) , address_type_description (text) | ref_detention_type : detention_type_code (text) , detention_type_description (text) | ref_incident_type : incident_type_code (text) , incident_type_description (text) | addresses : address_id (number) , line_1 (text) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | students : student_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , date_first_rental (time) , date_left_university (time) , other_student_details (text) | teachers : teacher_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , gender (text) , cell_mobile_number (text) , email_address (text) , other_details (text) | assessment_notes : notes_id (number) , student_id (number) , teacher_id (number) , date_of_notes (time) , text_of_notes (text) , other_details (text) | behavior_incident : incident_id (number) , incident_type_code (text) , student_id (number) , date_incident_start (time) , date_incident_end (time) , incident_summary (text) , recommendations (text) , other_details (text) | detention : detention_id (number) , detention_type_code (text) , teacher_id (number) , datetime_detention_start (time) , datetime_detention_end (time) , detention_summary (text) , other_details (text) | student_addresses : student_id (number) , address_id (number) , date_address_from (time) , date_address_to (time) , monthly_rental (number) , other_details (text) | students_in_detention : student_id (number) , detention_id (number) , incident_id (number)

addresses : zip_postcode (text) , address_id (number) | teachers : address_id (number) , first_name (text) , teacher_id (number)


Question: What are the email addresses of teachers whose address has zip code "918"?

ref_address_types : address_type_code (text) , address_type_description (text) | ref_detention_type : detention_type_code (text) , detention_type_description (text) | ref_incident_type : incident_type_code (text) , incident_type_description (text) | addresses : address_id (number) , line_1 (text) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | students : student_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , date_first_rental (time) , date_left_university (time) , other_student_details (text) | teachers : teacher_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , gender (text) , cell_mobile_number (text) , email_address (text) , other_details (text) | assessment_notes : notes_id (number) , student_id (number) , teacher_id (number) , date_of_notes (time) , text_of_notes (text) , other_details (text) | behavior_incident : incident_id (number) , incident_type_code (text) , student_id (number) , date_incident_start (time) , date_incident_end (time) , incident_summary (text) , recommendations (text) , other_details (text) | detention : detention_id (number) , detention_type_code (text) , teacher_id (number) , datetime_detention_start (time) , datetime_detention_end (time) , detention_summary (text) , other_details (text) | student_addresses : student_id (number) , address_id (number) , date_address_from (time) , date_address_to (time) , monthly_rental (number) , other_details (text) | students_in_detention : student_id (number) , detention_id (number) , incident_id (number)

teachers : email_address (text) , address_id (number) , teacher_id (number) | addresses : address_id (number) , zip_postcode (text)


Question: How many students are not involved in any behavior incident?

ref_address_types : address_type_code (text) , address_type_description (text) | ref_detention_type : detention_type_code (text) , detention_type_description (text) | ref_incident_type : incident_type_code (text) , incident_type_description (text) | addresses : address_id (number) , line_1 (text) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | students : student_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , date_first_rental (time) , date_left_university (time) , other_student_details (text) | teachers : teacher_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , gender (text) , cell_mobile_number (text) , email_address (text) , other_details (text) | assessment_notes : notes_id (number) , student_id (number) , teacher_id (number) , date_of_notes (time) , text_of_notes (text) , other_details (text) | behavior_incident : incident_id (number) , incident_type_code (text) , student_id (number) , date_incident_start (time) , date_incident_end (time) , incident_summary (text) , recommendations (text) , other_details (text) | detention : detention_id (number) , detention_type_code (text) , teacher_id (number) , datetime_detention_start (time) , datetime_detention_end (time) , detention_summary (text) , other_details (text) | student_addresses : student_id (number) , address_id (number) , date_address_from (time) , date_address_to (time) , monthly_rental (number) , other_details (text) | students_in_detention : student_id (number) , detention_id (number) , incident_id (number)

students : student_id (number) | behavior_incident : student_id (number) , incident_id (number)


Question: Find the last names of teachers who are not involved in any detention.

ref_address_types : address_type_code (text) , address_type_description (text) | ref_detention_type : detention_type_code (text) , detention_type_description (text) | ref_incident_type : incident_type_code (text) , incident_type_description (text) | addresses : address_id (number) , line_1 (text) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | students : student_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , date_first_rental (time) , date_left_university (time) , other_student_details (text) | teachers : teacher_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , gender (text) , cell_mobile_number (text) , email_address (text) , other_details (text) | assessment_notes : notes_id (number) , student_id (number) , teacher_id (number) , date_of_notes (time) , text_of_notes (text) , other_details (text) | behavior_incident : incident_id (number) , incident_type_code (text) , student_id (number) , date_incident_start (time) , date_incident_end (time) , incident_summary (text) , recommendations (text) , other_details (text) | detention : detention_id (number) , detention_type_code (text) , teacher_id (number) , datetime_detention_start (time) , datetime_detention_end (time) , detention_summary (text) , other_details (text) | student_addresses : student_id (number) , address_id (number) , date_address_from (time) , date_address_to (time) , monthly_rental (number) , other_details (text) | students_in_detention : student_id (number) , detention_id (number) , incident_id (number)

teachers : last_name (text) , teacher_id (number) | detention : teacher_id (number) , detention_id (number)


Question: What are the line 1 of addresses shared by some students and some teachers?

ref_address_types : address_type_code (text) , address_type_description (text) | ref_detention_type : detention_type_code (text) , detention_type_description (text) | ref_incident_type : incident_type_code (text) , incident_type_description (text) | addresses : address_id (number) , line_1 (text) , line_2 (text) , line_3 (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | students : student_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , cell_mobile_number (text) , email_address (text) , date_first_rental (time) , date_left_university (time) , other_student_details (text) | teachers : teacher_id (number) , address_id (number) , first_name (text) , middle_name (text) , last_name (text) , gender (text) , cell_mobile_number (text) , email_address (text) , other_details (text) | assessment_notes : notes_id (number) , student_id (number) , teacher_id (number) , date_of_notes (time) , text_of_notes (text) , other_details (text) | behavior_incident : incident_id (number) , incident_type_code (text) , student_id (number) , date_incident_start (time) , date_incident_end (time) , incident_summary (text) , recommendations (text) , other_details (text) | detention : detention_id (number) , detention_type_code (text) , teacher_id (number) , datetime_detention_start (time) , datetime_detention_end (time) , detention_summary (text) , other_details (text) | student_addresses : student_id (number) , address_id (number) , date_address_from (time) , date_address_to (time) , monthly_rental (number) , other_details (text) | students_in_detention : student_id (number) , detention_id (number) , incident_id (number)

addresses : line_1 (text) , address_id (number) | students : address_id (number) , student_id (number) | teachers : address_id (number) , teacher_id (number)


Question: Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

assets : asset_id (number) , asset_details (text) | asset_parts : asset_id (number) | fault_log : asset_id (number) , fault_log_entry_id (number)


Question: How many assets does each maintenance contract contain? List the number and the contract id.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

maintenance_contracts : maintenance_contract_id (number) | assets : maintenance_contract_id (number) , asset_id (number)


Question: How many assets does each third party company supply? List the count and the company id.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

third_party_companies : company_id (number) | assets : supplier_company_id (number) , asset_id (number)


Question: Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

third_party_companies : company_id (number) , company_name (text) | maintenance_engineers : company_id (number) , engineer_id (number) | maintenance_contracts : maintenance_contract_company_id (number) , maintenance_contract_id (number)


Question: What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

staff : staff_name (text) , staff_id (number) | fault_log : recorded_by_staff_id (number) , fault_log_entry_id (number) | engineer_visits : contact_staff_id (number) , engineer_visit_id (number)


Question: Which engineer has visited the most times? Show the engineer id, first name and last name.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

maintenance_engineers : engineer_id (number) , first_name (text) , last_name (text) | engineer_visits : engineer_id (number) , engineer_visit_id (number)


Question: Which parts have more than 2 faults? Show the part name and id.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

parts : part_name (text) , part_id (number) | part_faults : part_id (number) , part_fault_id (number)


Question: List all every engineer's first name, last name, details and coresponding skill description.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

maintenance_engineers : first_name (text) , last_name (text) , other_details (text) , engineer_id (number) | skills : skill_description (text) , skill_id (number) | engineer_skills : engineer_id (number) , skill_id (number)


Question: For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

part_faults : fault_short_name (text) , part_fault_id (number) | skills : skill_description (text) , skill_id (number) | skills_required_to_fix : part_fault_id (number) , skill_id (number)


Question: How many assets can each parts be used in? List the part name and the number.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

parts : part_name (text) , part_id (number) | asset_parts : part_id (number)


Question: What are all the fault descriptions and the fault status of all the faults recoreded in the logs?

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

fault_log : fault_description (text) , fault_log_entry_id (number) | fault_log_parts : fault_status (text) , fault_log_entry_id (number)


Question: How many engineer visits are required at most for a single fault log? List the number and the log entry id.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

fault_log : fault_log_entry_id (number) | engineer_visits : fault_log_entry_id (number) , engineer_visit_id (number)


Question: What are all the distinct last names of all the engineers?

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

maintenance_engineers : last_name (text) , engineer_id (number)


Question: How many fault status codes are recorded in the fault log parts table?

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)


Question: Which engineers have never visited to maintain the assets? List the engineer first name and last name.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

maintenance_engineers : first_name (text) , last_name (text) , engineer_id (number) | engineer_visits : engineer_id (number) , engineer_visit_id (number)


Question: List the asset id, details, make and model for every asset.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

assets : asset_id (number) , asset_details (text) , asset_make (text) , asset_model (text)


Question: When was the first asset acquired?

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

assets : asset_acquired_date (time) , asset_id (number)


Question: Which part fault requires the most number of skills to fix? List part id and name.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

parts : part_id (number) , part_name (text) | part_faults : part_id (number) , part_fault_id (number) | skills_required_to_fix : part_fault_id (number)


Question: Which kind of part has the least number of faults? List the part name.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

parts : part_name (text) , part_id (number) | part_faults : part_id (number) , part_fault_id (number)


Question: Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

maintenance_engineers : engineer_id (number) , first_name (text) , last_name (text) | engineer_visits : engineer_id (number) , engineer_visit_id (number)


Question: Which staff have contacted which engineers? List the staff name and the engineer first name and last name.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

staff : staff_name (text) , staff_id (number) | maintenance_engineers : first_name (text) , last_name (text) , engineer_id (number) | engineer_visits : contact_staff_id (number) , engineer_id (number) , engineer_visit_id (number)


Question: Which fault log included the most number of faulty parts? List the fault log id, description and record time.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

fault_log : fault_log_entry_id (number) , fault_description (text) , fault_log_entry_datetime (time) | fault_log_parts : fault_log_entry_id (number)


Question: Which skill is used in fixing the most number of faults? List the skill id and description.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

skills : skill_id (number) , skill_description (text) | skills_required_to_fix : skill_id (number)


Question: What are all the distinct asset models?

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

assets : asset_model (text) , asset_id (number)


Question: List the all the assets make, model, details by the disposed date ascendingly.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

assets : asset_make (text) , asset_model (text) , asset_details (text) , asset_disposed_date (time) , asset_id (number)


Question: Which part has the least chargeable amount? List the part id and amount.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

parts : part_id (number) , chargeable_amount (text)


Question: Which company started the earliest the maintenance contract? Show the company name.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

third_party_companies : company_name (text) , company_id (number) | maintenance_contracts : maintenance_contract_company_id (number) , contract_start_date (time) , maintenance_contract_id (number)


Question: What is the description of the type of the company who concluded its contracts most recently?

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

third_party_companies : company_name (text) , company_id (number) | maintenance_contracts : maintenance_contract_company_id (number) , contract_end_date (time) , maintenance_contract_id (number)


Question: Which gender makes up the majority of the staff?

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

staff : gender (text) , staff_id (number)


Question: How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

staff : staff_name (text) , staff_id (number) | engineer_visits : contact_staff_id (number) , engineer_visit_id (number)


Question: Which assets did not incur any fault log? List the asset model.

third_party_companies : company_id (number) , company_type (text) , company_name (text) , company_address (text) , other_company_details (text) | maintenance_contracts : maintenance_contract_id (number) , maintenance_contract_company_id (number) , contract_start_date (time) , contract_end_date (time) , other_contract_details (text) | parts : part_id (number) , part_name (text) , chargeable_yn (text) , chargeable_amount (text) , other_part_details (text) | skills : skill_id (number) , skill_code (text) , skill_description (text) | staff : staff_id (number) , staff_name (text) , gender (text) , other_staff_details (text) | assets : asset_id (number) , maintenance_contract_id (number) , supplier_company_id (number) , asset_details (text) , asset_make (text) , asset_model (text) , asset_acquired_date (time) , asset_disposed_date (time) , other_asset_details (text) | asset_parts : asset_id (number) , part_id (number) | maintenance_engineers : engineer_id (number) , company_id (number) , first_name (text) , last_name (text) , other_details (text) | engineer_skills : engineer_id (number) , skill_id (number) | fault_log : fault_log_entry_id (number) , asset_id (number) , recorded_by_staff_id (number) , fault_log_entry_datetime (time) , fault_description (text) , other_fault_details (text) | engineer_visits : engineer_visit_id (number) , contact_staff_id (number) , engineer_id (number) , fault_log_entry_id (number) , fault_status (text) , visit_start_datetime (time) , visit_end_datetime (time) , other_visit_details (text) | part_faults : part_fault_id (number) , part_id (number) , fault_short_name (text) , fault_description (text) , other_fault_details (text) | fault_log_parts : fault_log_entry_id (number) , part_fault_id (number) , fault_status (text) | skills_required_to_fix : part_fault_id (number) , skill_id (number)

assets : asset_model (text) , asset_id (number) | fault_log : asset_id (number) , fault_log_entry_id (number)


Question: list the local authorities and services provided by all stations.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

station : local_authority (text) , services (text) , id (number)


Question: show all train numbers and names ordered by their time from early to late.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

train : train_number (number) , name (text) , time (text) , id (number)


Question: Give me the times and numbers of all trains that go to Chennai, ordered by time.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

train : time (text) , train_number (number) , destination (text) , id (number)


Question: How many trains have 'Express' in their names?

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)


Question: Find the number and time of the train that goes from Chennai to Guruvayur.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

train : train_number (number) , time (text) , origin (text) , destination (text) , id (number)


Question: Find the number of trains starting from each origin.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)


Question: Find the name of the train whose route runs through greatest number of stations.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

train : name (text) , id (number) | route : train_id (number)


Question: Find the number of trains for each station, as well as the station network name and services.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

station : network_name (text) , services (text) , id (number) | route : station_id (number) , train_id (number)


Question: What is the average high temperature for each day of week?

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

weekly_weather : high_temperature (number) , day_of_week (text) , station_id (number)


Question: Give me the maximum low temperature and average precipitation at the Amersham station.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

weekly_weather : low_temperature (number) , precipitation (number) , station_id (number) | station : id (number) , network_name (text)


Question: Find names and times of trains that run through stations for the local authority Chiltern.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

train : name (text) , time (text) , id (number) | station : id (number) , local_authority (text) | route : station_id (number) , train_id (number)


Question: How many different services are provided by all stations?

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)


Question: Find the id and local authority of the station with has the highest average high temperature.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

station : id (number) , local_authority (text) | weekly_weather : station_id (number) , high_temperature (number)


Question: Find the id and local authority of the station whose maximum precipitation is higher than 50.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

station : id (number) , local_authority (text) | weekly_weather : station_id (number) , precipitation (number)


Question: show the lowest low temperature and highest wind speed in miles per hour.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)

weekly_weather : low_temperature (number) , wind_speed_mph (number) , station_id (number)


Question: Find the origins from which more than 1 train starts.

train : id (number) , train_number (number) , name (text) , origin (text) , destination (text) , time (text) , interval (text) | station : id (number) , network_name (text) , services (text) , local_authority (text) | route : train_id (number) , station_id (number) | weekly_weather : station_id (number) , day_of_week (text) , high_temperature (number) , low_temperature (number) , precipitation (number) , wind_speed_mph (number)


Question: Find the number of professors in accounting department.

class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)

department : dept_code (text) , dept_name (text) | professor : dept_code (text)


Question: How many professors are in the accounting dept?

class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)

department : dept_code (text) , dept_name (text) | professor : dept_code (text)


Question: How many professors are teaching class with code ACCT-211?

class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)

class : prof_num (number) , crs_code (text) , class_code (text)


Question: How many professors teach a class with the code ACCT-211?

class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)

class : prof_num (number) , crs_code (text) , class_code (text)


Question: What is the first and last name of the professor in biology department?

class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)

employee : emp_fname (text) , emp_lname (text) , emp_num (number) | department : dept_code (text) , emp_num (number) , dept_name (text) | professor : dept_code (text) , emp_num (number)


Question: What are the first and last name of all biology professors?

class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)

employee : emp_fname (text) , emp_lname (text) , emp_num (number) | department : dept_code (text) , emp_num (number) , dept_name (text) | professor : dept_code (text) , emp_num (number)


Question: What are the first names and date of birth of professors teaching course ACCT-211?

class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)

employee : emp_fname (text) , emp_dob (time) , emp_num (number) | class : prof_num (number) , crs_code (text) , class_code (text)


Question: What are the first names and birthdates of the professors in charge of ACCT-211?

class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)

employee : emp_fname (text) , emp_dob (time) , emp_num (number) | class : prof_num (number) , crs_code (text) , class_code (text)


Question: How many classes are professor whose last name is Graztevski has?

class : class_code (text) , crs_code (text) , class_section (text) , class_time (text) , class_room (text) , prof_num (number) | course : crs_code (text) , dept_code (text) , crs_description (text) , crs_credit (number) | department : dept_code (text) , dept_name (text) , school_code (text) , emp_num (number) , dept_address (text) , dept_extension (text) | employee : emp_num (number) , emp_lname (text) , emp_fname (text) , emp_initial (text) , emp_jobcode (text) , emp_hiredate (time) , emp_dob (time) | enroll : class_code (text) , stu_num (number) , enroll_grade (text) | professor : emp_num (number) , dept_code (text) , prof_office (text) , prof_extension (text) , prof_high_degree (text) | student : stu_num (number) , stu_lname (text) , stu_fname (text) , stu_init (text) , stu_dob (time) , stu_hrs (number) , stu_class (text) , stu_gpa (number) , stu_transfer (number) , dept_code (text) , stu_phone (text) , prof_num (number)

employee : emp_num (number) , emp_lname (text) | class : prof_num (number) , class_code (text)