Set query in if statement - but perform query error "unresolved identifier"query"

In short, I have an indexpath that was segued over from a previous table and I’m looking to set that indexpath to a specific query. For example, if "indexpath (name of my variable) == 1 {query - American}, else {query -Bistro}. However, the performquery function says that “use of unresolved identifier “query””. How should i go about fixing this little error?