Update the SQL query construction
Merge remote-tracking branch 'origin/master'