CREATE TABLE status (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INT)
CREATE TABLE station (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INT)

What are the ids of stations that are located in San Francisco and have average bike availability above 10.
SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10
SELECT "id" FROM "station" WHERE "San Francisco" = "city" INTERSECT SELECT "station_id" FROM "status" GROUP BY "station_id" HAVING AVG("bikes_available") > 10