This query should be limiting the data returned to items that have "*xpense*" in their url:
SELECT segments.httpData.url, userExperience, count(*) FROM transactions WHERE (transactionName like "*expense*" OR transactionname like "*Expense*") and us...