Model: pavankumarbalijepalli/phi2-sqlcoder
Author: pavankumarbalijepalli
Pipeline: text-generation
Library: transformers
Tags: transformers, safetensors, gguf, phi, text-generation, peft, nl2sql, custom_code, en, dataset:b-mc2/sql-create-context, arxiv:1910.09700, doi:10.57967/hf/1886, license:mit, text-generation-inference, endpoints_compatible, region:us
Card metadata: license: mit
datasets: b-mc2/sql-create-context
language: en
metrics: accuracy, code_eval
library_name: transformers
pipeline_tag: text-generation
tags: peft, nl2sql
widget: text: ### Task
Generate a SQL query to answer the following question:
`How many heads of the departments are older than 56?`

### Database Schema
The query will run on a database with the following schema:
CREATE TABLE head (age INTEGER)

### Answer
Given the database schema, here is the SQL query that answers `How many heads of the departments are older than 56?`:
```sql
example_title: One Table, text: ### Task
Generate a SQL query to answer the following question:
`How many departments are led by heads who are not mentioned?`

### Database Schema
The query will run on a database with the following schema:
CREATE TABLE management (department_id VARCHAR);
CREATE TABLE department (department_id VARCHAR)

### Answer
Given the database schema, here is the SQL query that answers `How many departments are led by heads who are not mentioned?`:
```sql
example_title: Two Tables
Likes: 7 | All-time downloads: 9256
Created: 2024-02-21 09:06:40