renamed query from "select" to "fields"