Add JOIN pattern to SQL query
Merge branch 'add-join-case'