CREATE TABLE foo (barid integer not null);
CREATE TABLE bar (id integer not null, owner text not null);

-- name: JoinWhereClause :many
SELECT foo.*
FROM foo
JOIN bar ON bar.id = barid
WHERE owner = ?;

-- name: JoinParamWhereClause :many
SELECT foo.*
FROM foo
JOIN bar ON bar.id = ?
WHERE owner = ?;