Question: What are the procedures that cost more than 1000 or are specialized in by physician John Wen?

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

physician : name (text) , employeeid (number) | procedures : name (text) , cost (number) , code (number) | trained_in : physician (number) , treatment (number)


Question: Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in?

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

physician : name (text) , employeeid (number) | procedures : name (text) , cost (number) , code (number) | trained_in : physician (number) , treatment (number)


Question: Among the procedures that cost more than 1000, which were not specialized in by physician John Wen?

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

physician : name (text) , employeeid (number) | procedures : name (text) , cost (number) , code (number) | trained_in : physician (number) , treatment (number)


Question: Find the names of all procedures such that the cost is less than 5000 and physician John Wen was trained in.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

physician : name (text) , employeeid (number) | procedures : name (text) , cost (number) , code (number) | trained_in : physician (number) , treatment (number)


Question: What procedures cost less than 5000 and have John Wen as a trained physician?

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

physician : name (text) , employeeid (number) | procedures : name (text) , cost (number) , code (number) | trained_in : physician (number) , treatment (number)


Question: Find the name of physicians who are affiliated with both Surgery and Psychiatry departments.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) | affiliated_with : physician (number) , department (number)


Question: Which physicians are affiliated with both Surgery and Psychiatry departments? Tell me their names.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) | affiliated_with : physician (number) , department (number)


Question: Find the name of physicians who are affiliated with Surgery or Psychiatry department.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) | affiliated_with : physician (number) , department (number)


Question: Which physicians are affiliated with either Surgery or Psychiatry department? Give me their names.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

physician : name (text) , employeeid (number) | department : name (text) , departmentid (number) | affiliated_with : physician (number) , department (number)


Question: Find the names of patients who are not using the medication of Procrastin-X.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

patient : name (text) , ssn (number) | medication : name (text) , code (number) | prescribes : patient (number) , medication (number)


Question: What are the names of patients who are not taking the medication of Procrastin-X.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

patient : name (text) , ssn (number) | medication : name (text) , code (number) | prescribes : patient (number) , medication (number)


Question: Find the number of patients who are not using the medication of Procrastin-X.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

prescribes : patient (number) , medication (number) , physician (number) | patient : ssn (number) , name (text) | medication : code (number) , name (text)


Question: How many patients are not using Procrastin-X as medication?

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

prescribes : patient (number) , medication (number) , physician (number) | patient : ssn (number) , name (text) | medication : code (number) , name (text)


Question: How many appointments are there?

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)


Question: Count how many appointments have been made in total.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)


Question: Find the names of nurses who are on call.

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

nurse : name (text) , employeeid (number) | on_call : nurse (number)


Question: What are the distinct names of nurses on call?

physician : employeeid (number) , name (text) , position (text) , ssn (number) | department : departmentid (number) , name (text) , head (number) | affiliated_with : physician (number) , department (number) , primaryaffiliation (boolean) | procedures : code (number) , name (text) , cost (number) | trained_in : physician (number) , treatment (number) , certificationdate (time) , certificationexpires (time) | patient : ssn (number) , name (text) , address (text) , phone (text) , insuranceid (number) , pcp (number) | nurse : employeeid (number) , name (text) , position (text) , registered (boolean) , ssn (number) | appointment : appointmentid (number) , patient (number) , prepnurse (number) , physician (number) , start (time) , end (time) , examinationroom (text) | medication : code (number) , name (text) , brand (text) , description (text) | prescribes : physician (number) , patient (number) , medication (number) , date (time) , appointment (number) , dose (text) | block : blockfloor (number) , blockcode (number) | room : roomnumber (number) , roomtype (text) , blockfloor (number) , blockcode (number) , unavailable (boolean) | on_call : nurse (number) , blockfloor (number) , blockcode (number) , oncallstart (time) , oncallend (time) | stay : stayid (number) , patient (number) , room (number) , staystart (time) , stayend (time) | undergoes : patient (number) , procedures (number) , stay (number) , dateundergoes (time) , physician (number) , assistingnurse (number)

nurse : name (text) , employeeid (number) | on_call : nurse (number)


Question: How many ships are there?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: What is the number of ships?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: List the name of ships in ascending order of tonnage.

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: what are the names of the ships ordered by ascending tonnage?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: What are the type and nationality of ships?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: What are the types and nationalities of every ship?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: List the name of ships whose nationality is not "United States".

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: What are the names of the ships that are not from the United States?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: Show the name of ships whose nationality is either United States or United Kingdom.

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: What are the names of the ships  that are from either the US or the UK?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: What is the name of the ship with the largest tonnage?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: What is the ship with the largest amount of tonnage called?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: Show different types of ships and the number of ships of each type.

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: For each type, how many ships are there?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: Please show the most common type of ships.

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: What is the most common type of ships?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: List the nations that have more than two ships.

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

ship : nationality (text) , ship_id (number)


Question: What are the nations that have more than two ships?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

ship : nationality (text) , ship_id (number)


Question: Show different types of ships and the average tonnage of ships of each type.

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: For each type, what is the average tonnage?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: Show codes and fates of missions, and names of ships involved.

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

mission : code (text) , fate (text) , ship_id (number) | ship : name (text) , ship_id (number)


Question: What are the mission codes, fates, and names of the ships involved?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

mission : code (text) , fate (text) , ship_id (number) | ship : name (text) , ship_id (number)


Question: Show names of ships involved in a mission launched after 1928.

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

ship : name (text) , ship_id (number) | mission : ship_id (number) , launched_year (number)


Question: What are the names of ships that were involved in a mission launched after 1928?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

ship : name (text) , ship_id (number) | mission : ship_id (number) , launched_year (number)


Question: Show the distinct fate of missions that involve ships with nationality "United States"

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

mission : fate (text) , ship_id (number) | ship : ship_id (number) , nationality (text)


Question: What are the different fates of the mission that involved ships from the United States?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

mission : fate (text) , ship_id (number) | ship : ship_id (number) , nationality (text)


Question: List the name of ships that are not involved in any mission

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

ship : name (text) , ship_id (number) | mission : ship_id (number)


Question: What are the names of the ships that are not involved in any missions?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)

ship : name (text) , ship_id (number) | mission : ship_id (number)


Question: Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: What are the types of the ships that have both shiips with tonnage more than 6000 and those with tonnage less than 4000?

mission : mission_id (number) , ship_id (number) , code (text) , launched_year (number) , location (text) , speed_knots (number) , fate (text) | ship : ship_id (number) , name (text) , type (text) , nationality (text) , tonnage (number)


Question: Find the number of students in total.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)


Question: How many students are there?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)


Question: Find the last names of students studying in room 111.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number)


Question: What are the last names of students in room 111?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number)


Question: Find the first names of students studying in room 108.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , classroom (number)


Question: What are the first names of students in room 108?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , classroom (number)


Question: What are the first names of students studying in room 107?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , classroom (number)


Question: List the first names of all the students in room 107.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , classroom (number)


Question: For each classroom report the grade that is taught in it. Report just the classroom number and the grade number.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number)


Question: What are the grade number and classroom number of each class in the list?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number)


Question: Which grade is studying in classroom 103?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : grade (number) , classroom (number)


Question: Find the grade taught in classroom 103.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : grade (number) , classroom (number)


Question: Find the grade studying in room 105.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : grade (number) , classroom (number)


Question: Which grade is studying in room 105?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : grade (number) , classroom (number)


Question: Which classrooms are used by grade 4?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number)


Question: Find the classrooms in which grade 4 is studying.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number)


Question: Which classrooms are used by grade 5?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number)


Question: Show me the classrooms grade 5 is using.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number)


Question: Find the last names of the teachers that teach fifth grade.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number) , grade (number) | teachers : lastname (text) , classroom (number)


Question: what are the last names of the teachers who teach grade 5?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number) , grade (number) | teachers : lastname (text) , classroom (number)


Question: Find the first names of the teachers that teach first grade.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , classroom (number) , grade (number) | teachers : firstname (text) , classroom (number)


Question: What are the first names of the teachers who teach grade 1?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , classroom (number) , grade (number) | teachers : firstname (text) , classroom (number)


Question: Find the first names of all the teachers that teach in classroom 110.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

teachers : firstname (text) , classroom (number)


Question: Which teachers teach in classroom 110? Give me their first names.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

teachers : firstname (text) , classroom (number)


Question: Find the last names of teachers teaching in classroom 109.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

teachers : lastname (text) , classroom (number)


Question: Which teachers teach in classroom 109? Give me their last names.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

teachers : lastname (text) , classroom (number)


Question: Report the first name and last name of all the teachers.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

teachers : firstname (text) , lastname (text)


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

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

teachers : firstname (text) , lastname (text)


Question: Report the first name and last name of all the students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text)


Question: Show each student's first name and last name.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text)


Question: Find all students taught by OTHA MOYER. Output the first and last names of the students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Which students study under the teacher named OTHA MOYER? Give me the first and last names of the students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Find all students taught by MARROTTE KIRK. Output first and last names of students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Which are the first and last names of the students taught by MARROTTE KIRK?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Find the first and last name of all the teachers that teach EVELINA BROMLEY.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Which teachers teach the student named EVELINA BROMLEY? Give me the first and last name  of the teachers.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Find the last names of all the teachers that teach GELL TAMI.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)


Question: What are the last names of the teachers who teach the student called GELL TAMI?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)


Question: How many students does LORIA ONDERSMA teaches?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Count the number of students the teacher LORIA ONDERSMA teaches.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: How many students does KAWA GORDON teaches?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find the number of students taught by the teacher KAWA GORDON.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find the number of students taught by TARRING LEIA.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: How many students are taught by teacher TARRING LEIA?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: How many teachers does the student named CHRISSY NABOZNY have?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find the number of teachers who teach the student called CHRISSY NABOZNY.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: How many teachers does the student named MADLOCK RAY have?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find the number of teachers who teach the student called MADLOCK RAY.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , firstname (text) , lastname (text) | teachers : classroom (number) , firstname (text) , lastname (text)


Question: Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) , grade (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) , grade (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Find the last names of the students in third grade that are not taught by COVIN JEROME.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number) , grade (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)


Question: Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : lastname (text) , classroom (number) , grade (number) , firstname (text) | teachers : lastname (text) , classroom (number) , firstname (text)


Question: For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : grade (number) , classroom (number) , lastname (text)


Question: For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : grade (number) , classroom (number) , lastname (text)


Question: For each classroom, report the classroom number and the number of grades using it.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number)


Question: For each classroom, show the classroom number and count the number of distinct grades that use the room.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number)


Question: Which classroom has the most students?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: Find the classroom that the most students use.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: Report the number of students in each classroom.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: For each classroom, show the classroom number and find how many students are using it.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: For each grade 0 classroom, report the total number of students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: For each grade 0 classroom, return the classroom number and the count of students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: Report the total number of students for each fourth-grade classroom.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: For each fourth-grade classroom, show the classroom number and the total number of students using it.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , grade (number) , lastname (text)


Question: Find the name of the teacher who teaches the largest number of students.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Which teacher teaches the most students? Give me the first name and last name of the teacher.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : firstname (text) , lastname (text) , classroom (number) | teachers : firstname (text) , lastname (text) , classroom (number)


Question: Find the number of students in one classroom.

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: How many students does one classroom have?

list : lastname (text) , firstname (text) , grade (number) , classroom (number) | teachers : lastname (text) , firstname (text) , classroom (number)

list : classroom (number) , lastname (text)


Question: How many companies are headquartered in the US?

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : headquarters (text) , company_id (number)


Question: List the names of companies by ascending number of sales.

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : name (text) , sales_in_billion (number)


Question: What are the headquarters and industries of all companies?

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : headquarters (text) , industry (text)


Question: Show the names of companies in the banking or retailing industry?

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)


Question: What is the maximum and minimum market value of companies?

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : market_value_in_billion (number)


Question: What is the headquarter of the company with the largest sales?

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : headquarters (text) , sales_in_billion (number)


Question: Show the different headquarters and number of companies at each headquarter.

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : headquarters (text) , company_id (number)


Question: Show the most common headquarter for companies.

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : headquarters (text) , company_id (number)


Question: Show the headquarters that have at least two companies.

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : headquarters (text) , company_id (number)


Question: Show the headquarters that have both companies in banking industry and companies in oil and gas industry.

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : headquarters (text) , industry (text)


Question: Show the names of companies and of employees.

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

people : name (text) , people_id (number) | company : name (text) , company_id (number) | employment : people_id (number) , company_id (number)


Question: Show names of companies and that of employees in descending order of number of years working for that employee.

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

people : name (text) , people_id (number) | company : name (text) , company_id (number) | employment : people_id (number) , company_id (number) , year_working (number)


Question: Show the names of employees that work for companies with sales bigger than 200.

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

people : name (text) , people_id (number) | company : name (text) , company_id (number) , sales_in_billion (number) | employment : people_id (number) , company_id (number)


Question: Show the names of companies and the number of employees they have

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

people : name (text) , people_id (number) | company : name (text) , company_id (number) | employment : people_id (number) , company_id (number)


Question: List the names of people that are not employed by any company

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

people : name (text) , people_id (number) | employment : people_id (number)


Question: list the names of the companies with more than 200 sales in the descending order of sales and profits.

people : people_id (number) , age (number) , name (text) , nationality (text) , graduation_college (text) | company : company_id (number) , name (text) , headquarters (text) , industry (text) , sales_in_billion (number) , profits_in_billion (number) , assets_in_billion (number) , market_value_in_billion (number) | employment : company_id (number) , people_id (number) , year_working (number)

company : name (text) , sales_in_billion (number) , profits_in_billion (number)


Question: How many film are there?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: Count the number of films.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: List the distinct director of all films.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: What are the different film Directors?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: What is the average ticket sales gross in dollars of films?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: Return the average gross sales in dollars across all films.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: What are the low and high estimates of film markets?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film_market_estimation : low_estimate (number) , high_estimate (number)


Question: Return the low and high estimates for all film markets.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film_market_estimation : low_estimate (number) , high_estimate (number)


Question: What are the types of film market estimations in year 1995?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film_market_estimation : type (text) , year (number)


Question: Return the types of film market estimations in 1995.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film_market_estimation : type (text) , year (number)


Question: What are the maximum and minimum number of cities in all markets.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: Return the maximum and minimum number of cities across all markets.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: How many markets have number of cities smaller than 300?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

market : number_cities (number) , market_id (number)


Question: Count the number of markets that have a number of cities lower than 300.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

market : number_cities (number) , market_id (number)


Question: List all countries of markets in ascending alphabetical order.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: What are the countries for each market, ordered alphabetically?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: List all countries of markets in descending order of number of cities.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

market : country (text) , number_cities (number)


Question: What are the countries for each market ordered by decreasing number of cities?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

market : country (text) , number_cities (number)


Question: Please show the titles of films and the types of market estimations.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : title (text) , film_id (number) | film_market_estimation : type (text) , film_id (number)


Question: What are the titles of films and corresponding types of market estimations?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : title (text) , film_id (number) | film_market_estimation : type (text) , film_id (number)


Question: Show the distinct director of films with market estimation in the year of 1995.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : director (text) , film_id (number) | film_market_estimation : film_id (number) , year (number)


Question: Who are the different directors of films which had market estimation in 1995?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : director (text) , film_id (number) | film_market_estimation : film_id (number) , year (number)


Question: What is the average number of cities of markets with low film market estimate bigger than 10000?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

market : number_cities (number) , market_id (number) | film_market_estimation : market_id (number) , low_estimate (number)


Question: Give the average number of cities within markets that had a low market estimation larger than 10000?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

market : number_cities (number) , market_id (number) | film_market_estimation : market_id (number) , low_estimate (number)


Question: Please list the countries and years of film market estimations.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

market : country (text) , market_id (number) | film_market_estimation : year (number) , market_id (number)


Question: What are the countries of markets and their corresponding years of market estimation?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

market : country (text) , market_id (number) | film_market_estimation : year (number) , market_id (number)


Question: Please list the years of film market estimations when the market is in country "Japan" in descending order.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film_market_estimation : year (number) , market_id (number) | market : market_id (number) , country (text)


Question: What are the years of film market estimation for the market of Japan, ordered by year descending?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film_market_estimation : year (number) , market_id (number) | market : market_id (number) , country (text)


Question: List the studios of each film and the number of films produced by that studio.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: How films are produced by each studio?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: List the name of film studio that have the most number of films.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: What is the name of teh studio that created the most films?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: List the names of studios that have at least two films.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: What are the names of studios that have made two or more films?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: List the title of films that do not have any market estimation.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : title (text) , film_id (number) | film_market_estimation : film_id (number)


Question: What are the titles of films that do not have a film market estimation?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : title (text) , film_id (number) | film_market_estimation : film_id (number)


Question: Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill".

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: Find the titles and studios of the films that are produced by some film studios that contained the word "Universal".

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: What are the titles and studios of films that have been produced by a studio whose name contains "Universal"?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: Show the studios that have not produced films with director "Walter Hill".

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: Which studios have never worked with the director Walter Hill?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)


Question: List the studios which average gross is above 4500000.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : studio (text) , gross_in_dollar (number)


Question: Which studios have an average gross of over 4500000?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : studio (text) , gross_in_dollar (number)


Question: What is the title of the film that has the highest high market estimation.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : title (text) , film_id (number) | film_market_estimation : film_id (number) , high_estimate (number)


Question: Return the title of the film with the highest high estimate?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : title (text) , film_id (number) | film_market_estimation : film_id (number) , high_estimate (number)


Question: What are the titles and directors of the films were never presented in China?

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : title (text) , director (text) , film_id (number) | film_market_estimation : film_id (number) , market_id (number) | market : market_id (number) , country (text)


Question: Return the titles and directors of films that were never in the market of China.

film : film_id (number) , title (text) , studio (text) , director (text) , gross_in_dollar (number) | market : market_id (number) , country (text) , number_cities (number) | film_market_estimation : estimation_id (number) , low_estimate (number) , high_estimate (number) , film_id (number) , type (text) , market_id (number) , year (number)

film : title (text) , director (text) , film_id (number) | film_market_estimation : film_id (number) , market_id (number) | market : market_id (number) , country (text)


Question: How many calendar items do we have?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)


Question: Count the number of all the calendar items.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)


Question: Show all calendar dates and day Numbers.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)


Question: What are all the calendar dates and day Numbers?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)


Question: Show the number of document types.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)


Question: How many document types are there?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)


Question: List all document type codes and document type names.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_calendar : calendar_date (time) , day_number (number) | ref_locations : location_code (text) , location_name (text) , location_description (text) | roles : role_code (text) , role_name (text) , role_description (text) | all_documents : document_id (number) , date_stored (time) , document_type_code (text) , document_name (text) , document_description (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , gender_mfu (text) , date_of_birth (time) , other_details (text) | document_locations : document_id (number) , location_code (text) , date_in_location_from (time) , date_in_locaton_to (time) | documents_to_be_destroyed : document_id (number) , destruction_authorised_by_employee_id (number) , destroyed_by_employee_id (number) , planned_destruction_date (time) , actual_destruction_date (time) , other_details (text)