Add source type to queries.