Database: driving_school
Question: How many lessons taken by customer with first name as Rylan were completed?
SQL: select count(*) from lessons as t1 join customers as t2 on t1.customer_id  = t2.customer_id where t2.first_name = "rylan" and t1.lesson_status_code = "completed"