The SQL of three views.