Make `test_select_with_subquery_in_from_uses_original_table_name` work with old SQLite3
Make `test_select_with_subquery_in_from_uses_original_table_name` work with old SQLite3

It seems that the reason why the `test_select_with_subquery_in_from_uses_original_table_name`
does not pass is that the return value of `sqlite3_column_name()` is
wrong due to subquery flattening.

This seems to have been fixed with SQLite 3.20.0(https://sqlite.org/changes.html#version_3_20_0).
But CI uses the old version(maybe 3.11.0), I added `DISTINCT` to avoid
optimization by subquery flattening.

Ref: https://sqlite.org/optoverview.html#flattening

EmmaB/rails-1,esparta/rails,rails/rails,Erol/rails,jeremy/rails,EmmaB/rails-1,eileencodes/rails,iainbeeston/rails,Edouard-chin/rails,arunagw/rails,kddeisz/rails,rails/rails,Envek/rails,betesh/rails,flanger001/rails,kmcphillips/rails,rails/rails,fabianoleittes/rails,bogdanvlviv/rails,iainbeeston/rails,Vasfed/rails,MSP-Greg/rails,Edouard-chin/rails,georgeclaghorn/rails,kmcphillips/rails,palkan/rails,Edouard-chin/rails,flanger001/rails,kmcphillips/rails,Erol/rails,EmmaB/rails-1,joonyou/rails,notapatch/rails,Edouard-chin/rails,georgeclaghorn/rails,jeremy/rails,repinel/rails,notapatch/rails,rafaelfranca/omg-rails,palkan/rails,shioyama/rails,eileencodes/rails,esparta/rails,tgxworld/rails,lcreid/rails,bogdanvlviv/rails,bogdanvlviv/rails,yahonda/rails,starknx/rails,prathamesh-sonpatki/rails,arunagw/rails,palkan/rails,tgxworld/rails,lcreid/rails,BlakeWilliams/rails,schuetzm/rails,eileencodes/rails,yhirano55/rails,yalab/rails,tjschuck/rails,yalab/rails,tjschuck/rails,Erol/rails,esparta/rails,BlakeWilliams/rails,kddeisz/rails,yawboakye/rails,georgeclaghorn/rails,tgxworld/rails,yawboakye/rails,yahonda/rails,iainbeeston/rails,mechanicles/rails,Vasfed/rails,rails/rails,joonyou/rails,fabianoleittes/rails,fabianoleittes/rails,joonyou/rails,georgeclaghorn/rails,Envek/rails,vipulnsward/rails,BlakeWilliams/rails,BlakeWilliams/rails,MSP-Greg/rails,tjschuck/rails,Vasfed/rails,vipulnsward/rails,Stellenticket/rails,palkan/rails,Erol/rails,arunagw/rails,yalab/rails,Vasfed/rails,fabianoleittes/rails,gauravtiwari/rails,mechanicles/rails,rafaelfranca/omg-rails,starknx/rails,yahonda/rails,Envek/rails,arunagw/rails,yhirano55/rails,joonyou/rails,notapatch/rails,yahonda/rails,kddeisz/rails,betesh/rails,esparta/rails,shioyama/rails,MSP-Greg/rails,yawboakye/rails,jeremy/rails,iainbeeston/rails,repinel/rails,kmcphillips/rails,rafaelfranca/omg-rails,vipulnsward/rails,prathamesh-sonpatki/rails,tgxworld/rails,prathamesh-sonpatki/rails,Stellenticket/rails,schuetzm/rails,vipulnsward/rails,betesh/rails,flanger001/rails,lcreid/rails,shioyama/rails,yhirano55/rails,schuetzm/rails,repinel/rails,Stellenticket/rails,jeremy/rails,gauravtiwari/rails,betesh/rails,kddeisz/rails,prathamesh-sonpatki/rails,bogdanvlviv/rails,MSP-Greg/rails,gauravtiwari/rails,notapatch/rails,lcreid/rails,eileencodes/rails,yhirano55/rails,schuetzm/rails,mechanicles/rails,Stellenticket/rails,starknx/rails,flanger001/rails,yalab/rails,Envek/rails,mechanicles/rails,shioyama/rails,tjschuck/rails,repinel/rails,yawboakye/rails