Please Write Me a SQL Query for the following prompts using the diagram as reference below.
A. Using the university database, write a query to return the cities that have 4 or more students living there. Display the results in ascending order.
B. Using the university database, write a query to display all students (zid, fname, lname) who did not get an A for any courses with the word ‘database’ in its name. Sort the results by their zid.