Instacart interview question

Random SQL questions and brain teasers.