-- name: TableName :one SELECT foo.id FROM foo JOIN bar ON foo.bar = bar.id WHERE bar.id = ? AND foo.id = ?;