**[ [[cqp:introduction|Collection: Introduction to CQP]] ]** ====== 3b. Extending simple queries: Combinations of attributes and values ====== //This section introduces simple queries involving one token with more than one property, It presupposes that you have read [[cqp:corpus-structure|Section 1]] and [[cqp:simple-queries|Section 2]].// Recall that in Section 2, we searched for //love//, and that our queries always returned examples of the noun and the verb. However, when searching for a particular lemma or word form, we typically want to limit our query to a particular part of speech. We can do this by combining two attribute-value pairs in a single pair of square brackets using the ampersand symbol ''&'' -- ''[attribute="value" & attribute="value"]''. For example, to find //love// as a singular noun (one love, to cite Bob Marley's famous song), the query would look like this: [hw="love" & pos="NN1"] Enter it at the prompt and hit ''RETURN''. You will see that the concordance contains only uses of the singular noun //love//. Or, we might be interested in whether the noun //love// can be used in the plural. Our query would look like this: [hw="love" & pos="NN2"] Again, run the query and look at the results. You will see, that the plural noun //loves// does indeed exist. ===== Summary and outlook ===== This section has shown you how to create concordances using combinations of attribute-value pairs. Building on this, you can look at the following sections in any order: * [[cqp:extending-queries-combinations|Section 3a]]: Extending simple queries: Alternative attributes and values * [[cqp:complex-queries|Section 3c]]: Complex Queries * [[cqp:metadata|Section 3d]]: Metadata * [[cqp:regular-expressions-basics|Section 3e]]: Regular expressions (basics) * [[cqp:concordances|Section 3f]]: Working with concordances * [[cqp:sorting-sampling|Section 3g]]: Sorting and sampling **[ Introduction to CQP: [[cqp:corpus-structure|Section 1]] -- [[cqp:simple-queries|Section 2]] -- [[cqp:advanced-querying|Section 3]] -- [[cqp:beyond-queries|Section 4]] -- [[cqp:expert-tricks|Section 5]] -- [[cqp:exercises|Section 6]] ]**