Google Sheets 多个查询匹配的单词和数字

Google Sheets multiple query matching words and numbers

我需要在 Google 工作表中查询 sheet 以查找值大于指定数字的多个单词的匹配项。

例如,我想在 sheet 中查找包含 'garden' 或 'gate' 且值大于“30”的所有单词,如下所示:

我有这个公式,但它不起作用:

=QUERY(Sheet1!A:B,"select * where A contains 'garden' OR A contains 'gate' AND B>30 ")
=QUERY(Sheet1!A:B, 
 "where B > 30 
    and (A contains 'garden' 
     or  A contains 'gate')", 0)


=QUERY(Sheet1!A:B, 
 "where A matches '.*garden.*|.*gate.*' 
    and B > 30", 0)

请尝试:

=QUERY(Sheet1!A:B,"where  B > 30 and (A like '%garden%' OR A like '%gate%')")