finished build from queries