iex> query = Ecto.Query.where(Post, [p], p.views > 10) iex> Ecto.Adapters.SQL.to_sql(:all, Repo, query) {"SELECT p.id, p.title, p.inserted_at, p.created_at FROM posts as p WHERE p.views > $1", [10]}