prompt stringclasses 10
values | messages listlengths 2 2 | prompt_id stringlengths 10 10 |
|---|---|---|
Find the cheapest drug for diabetes | [
{
"content": "Find the cheapest drug for diabetes",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'diabetes' ORDER BY CAST(price AS DECIMAL(10, 2)) LIMIT 1;",
"role": "assistant"
}
] | sql_000001 |
List all drugs used to treat asthma | [
{
"content": "List all drugs used to treat asthma",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'asthma';",
"role": "assistant"
}
] | sql_000002 |
Find all drugs with price less than 50 | [
{
"content": "Find all drugs with price less than 50",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE CAST(price AS DECIMAL(10,2)) < 50;",
"role": "assistant"
}
] | sql_000003 |
List distinct diseases treated by medications | [
{
"content": "List distinct diseases treated by medications",
"role": "user"
},
{
"content": "SELECT DISTINCT uses FROM drugs_fts;",
"role": "assistant"
}
] | sql_000004 |
List all drugs manufactured by Pfizer | [
{
"content": "List all drugs manufactured by Pfizer",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE manufacturer MATCH 'Pfizer';",
"role": "assistant"
}
] | sql_000005 |
Find top 5 cheapest drugs for hypertension | [
{
"content": "Find top 5 cheapest drugs for hypertension",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'hypertension' ORDER BY CAST(price AS DECIMAL(10,2)) LIMIT 5;",
"role": "assistant"
}
] | sql_000006 |
Get average price of drugs used to treat cancer | [
{
"content": "Get average price of drugs used to treat cancer",
"role": "user"
},
{
"content": "SELECT AVG(CAST(price AS DECIMAL(10,2))) as avg_price FROM drugs_fts WHERE uses MATCH 'cancer';",
"role": "assistant"
}
] | sql_000007 |
List all generic names available | [
{
"content": "List all generic names available",
"role": "user"
},
{
"content": "SELECT DISTINCT generics FROM drugs_fts;",
"role": "assistant"
}
] | sql_000008 |
Count total number of drugs for tuberculosis | [
{
"content": "Count total number of drugs for tuberculosis",
"role": "user"
},
{
"content": "SELECT COUNT(*) as total_drugs FROM drugs_fts WHERE uses MATCH 'tuberculosis';",
"role": "assistant"
}
] | sql_000009 |
Find drugs for fever under 25 rupees | [
{
"content": "Find drugs for fever under 25 rupees",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'fever' AND CAST(price AS DECIMAL(10,2)) < 25;",
"role": "assistant"
}
] | sql_000010 |
Find the cheapest drug for diabetes | [
{
"content": "Find the cheapest drug for diabetes",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'diabetes' ORDER BY CAST(price AS DECIMAL(10, 2)) LIMIT 1;",
"role": "assistant"
}
] | sql_000011 |
List all drugs used to treat asthma | [
{
"content": "List all drugs used to treat asthma",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'asthma';",
"role": "assistant"
}
] | sql_000012 |
Find all drugs with price less than 50 | [
{
"content": "Find all drugs with price less than 50",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE CAST(price AS DECIMAL(10,2)) < 50;",
"role": "assistant"
}
] | sql_000013 |
List distinct diseases treated by medications | [
{
"content": "List distinct diseases treated by medications",
"role": "user"
},
{
"content": "SELECT DISTINCT uses FROM drugs_fts;",
"role": "assistant"
}
] | sql_000014 |
List all drugs manufactured by Pfizer | [
{
"content": "List all drugs manufactured by Pfizer",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE manufacturer MATCH 'Pfizer';",
"role": "assistant"
}
] | sql_000015 |
Find top 5 cheapest drugs for hypertension | [
{
"content": "Find top 5 cheapest drugs for hypertension",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'hypertension' ORDER BY CAST(price AS DECIMAL(10,2)) LIMIT 5;",
"role": "assistant"
}
] | sql_000016 |
Get average price of drugs used to treat cancer | [
{
"content": "Get average price of drugs used to treat cancer",
"role": "user"
},
{
"content": "SELECT AVG(CAST(price AS DECIMAL(10,2))) as avg_price FROM drugs_fts WHERE uses MATCH 'cancer';",
"role": "assistant"
}
] | sql_000017 |
List all generic names available | [
{
"content": "List all generic names available",
"role": "user"
},
{
"content": "SELECT DISTINCT generics FROM drugs_fts;",
"role": "assistant"
}
] | sql_000018 |
Count total number of drugs for tuberculosis | [
{
"content": "Count total number of drugs for tuberculosis",
"role": "user"
},
{
"content": "SELECT COUNT(*) as total_drugs FROM drugs_fts WHERE uses MATCH 'tuberculosis';",
"role": "assistant"
}
] | sql_000019 |
Find drugs for fever under 25 rupees | [
{
"content": "Find drugs for fever under 25 rupees",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'fever' AND CAST(price AS DECIMAL(10,2)) < 25;",
"role": "assistant"
}
] | sql_000020 |
Find the cheapest drug for diabetes | [
{
"content": "Find the cheapest drug for diabetes",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'diabetes' ORDER BY CAST(price AS DECIMAL(10, 2)) LIMIT 1;",
"role": "assistant"
}
] | sql_000021 |
List all drugs used to treat asthma | [
{
"content": "List all drugs used to treat asthma",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'asthma';",
"role": "assistant"
}
] | sql_000022 |
Find all drugs with price less than 50 | [
{
"content": "Find all drugs with price less than 50",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE CAST(price AS DECIMAL(10,2)) < 50;",
"role": "assistant"
}
] | sql_000023 |
List distinct diseases treated by medications | [
{
"content": "List distinct diseases treated by medications",
"role": "user"
},
{
"content": "SELECT DISTINCT uses FROM drugs_fts;",
"role": "assistant"
}
] | sql_000024 |
List all drugs manufactured by Pfizer | [
{
"content": "List all drugs manufactured by Pfizer",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE manufacturer MATCH 'Pfizer';",
"role": "assistant"
}
] | sql_000025 |
Find top 5 cheapest drugs for hypertension | [
{
"content": "Find top 5 cheapest drugs for hypertension",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'hypertension' ORDER BY CAST(price AS DECIMAL(10,2)) LIMIT 5;",
"role": "assistant"
}
] | sql_000026 |
Get average price of drugs used to treat cancer | [
{
"content": "Get average price of drugs used to treat cancer",
"role": "user"
},
{
"content": "SELECT AVG(CAST(price AS DECIMAL(10,2))) as avg_price FROM drugs_fts WHERE uses MATCH 'cancer';",
"role": "assistant"
}
] | sql_000027 |
List all generic names available | [
{
"content": "List all generic names available",
"role": "user"
},
{
"content": "SELECT DISTINCT generics FROM drugs_fts;",
"role": "assistant"
}
] | sql_000028 |
Count total number of drugs for tuberculosis | [
{
"content": "Count total number of drugs for tuberculosis",
"role": "user"
},
{
"content": "SELECT COUNT(*) as total_drugs FROM drugs_fts WHERE uses MATCH 'tuberculosis';",
"role": "assistant"
}
] | sql_000029 |
Find drugs for fever under 25 rupees | [
{
"content": "Find drugs for fever under 25 rupees",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'fever' AND CAST(price AS DECIMAL(10,2)) < 25;",
"role": "assistant"
}
] | sql_000030 |
Find the cheapest drug for diabetes | [
{
"content": "Find the cheapest drug for diabetes",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'diabetes' ORDER BY CAST(price AS DECIMAL(10, 2)) LIMIT 1;",
"role": "assistant"
}
] | sql_000031 |
List all drugs used to treat asthma | [
{
"content": "List all drugs used to treat asthma",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'asthma';",
"role": "assistant"
}
] | sql_000032 |
Find all drugs with price less than 50 | [
{
"content": "Find all drugs with price less than 50",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE CAST(price AS DECIMAL(10,2)) < 50;",
"role": "assistant"
}
] | sql_000033 |
List distinct diseases treated by medications | [
{
"content": "List distinct diseases treated by medications",
"role": "user"
},
{
"content": "SELECT DISTINCT uses FROM drugs_fts;",
"role": "assistant"
}
] | sql_000034 |
List all drugs manufactured by Pfizer | [
{
"content": "List all drugs manufactured by Pfizer",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE manufacturer MATCH 'Pfizer';",
"role": "assistant"
}
] | sql_000035 |
Find top 5 cheapest drugs for hypertension | [
{
"content": "Find top 5 cheapest drugs for hypertension",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'hypertension' ORDER BY CAST(price AS DECIMAL(10,2)) LIMIT 5;",
"role": "assistant"
}
] | sql_000036 |
Get average price of drugs used to treat cancer | [
{
"content": "Get average price of drugs used to treat cancer",
"role": "user"
},
{
"content": "SELECT AVG(CAST(price AS DECIMAL(10,2))) as avg_price FROM drugs_fts WHERE uses MATCH 'cancer';",
"role": "assistant"
}
] | sql_000037 |
List all generic names available | [
{
"content": "List all generic names available",
"role": "user"
},
{
"content": "SELECT DISTINCT generics FROM drugs_fts;",
"role": "assistant"
}
] | sql_000038 |
Count total number of drugs for tuberculosis | [
{
"content": "Count total number of drugs for tuberculosis",
"role": "user"
},
{
"content": "SELECT COUNT(*) as total_drugs FROM drugs_fts WHERE uses MATCH 'tuberculosis';",
"role": "assistant"
}
] | sql_000039 |
Find drugs for fever under 25 rupees | [
{
"content": "Find drugs for fever under 25 rupees",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'fever' AND CAST(price AS DECIMAL(10,2)) < 25;",
"role": "assistant"
}
] | sql_000040 |
Find the cheapest drug for diabetes | [
{
"content": "Find the cheapest drug for diabetes",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'diabetes' ORDER BY CAST(price AS DECIMAL(10, 2)) LIMIT 1;",
"role": "assistant"
}
] | sql_000041 |
List all drugs used to treat asthma | [
{
"content": "List all drugs used to treat asthma",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'asthma';",
"role": "assistant"
}
] | sql_000042 |
Find all drugs with price less than 50 | [
{
"content": "Find all drugs with price less than 50",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE CAST(price AS DECIMAL(10,2)) < 50;",
"role": "assistant"
}
] | sql_000043 |
List distinct diseases treated by medications | [
{
"content": "List distinct diseases treated by medications",
"role": "user"
},
{
"content": "SELECT DISTINCT uses FROM drugs_fts;",
"role": "assistant"
}
] | sql_000044 |
List all drugs manufactured by Pfizer | [
{
"content": "List all drugs manufactured by Pfizer",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE manufacturer MATCH 'Pfizer';",
"role": "assistant"
}
] | sql_000045 |
Find top 5 cheapest drugs for hypertension | [
{
"content": "Find top 5 cheapest drugs for hypertension",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'hypertension' ORDER BY CAST(price AS DECIMAL(10,2)) LIMIT 5;",
"role": "assistant"
}
] | sql_000046 |
Get average price of drugs used to treat cancer | [
{
"content": "Get average price of drugs used to treat cancer",
"role": "user"
},
{
"content": "SELECT AVG(CAST(price AS DECIMAL(10,2))) as avg_price FROM drugs_fts WHERE uses MATCH 'cancer';",
"role": "assistant"
}
] | sql_000047 |
List all generic names available | [
{
"content": "List all generic names available",
"role": "user"
},
{
"content": "SELECT DISTINCT generics FROM drugs_fts;",
"role": "assistant"
}
] | sql_000048 |
Count total number of drugs for tuberculosis | [
{
"content": "Count total number of drugs for tuberculosis",
"role": "user"
},
{
"content": "SELECT COUNT(*) as total_drugs FROM drugs_fts WHERE uses MATCH 'tuberculosis';",
"role": "assistant"
}
] | sql_000049 |
Find drugs for fever under 25 rupees | [
{
"content": "Find drugs for fever under 25 rupees",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'fever' AND CAST(price AS DECIMAL(10,2)) < 25;",
"role": "assistant"
}
] | sql_000050 |
Find the cheapest drug for diabetes | [
{
"content": "Find the cheapest drug for diabetes",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'diabetes' ORDER BY CAST(price AS DECIMAL(10, 2)) LIMIT 1;",
"role": "assistant"
}
] | sql_000051 |
List all drugs used to treat asthma | [
{
"content": "List all drugs used to treat asthma",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'asthma';",
"role": "assistant"
}
] | sql_000052 |
Find all drugs with price less than 50 | [
{
"content": "Find all drugs with price less than 50",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE CAST(price AS DECIMAL(10,2)) < 50;",
"role": "assistant"
}
] | sql_000053 |
List distinct diseases treated by medications | [
{
"content": "List distinct diseases treated by medications",
"role": "user"
},
{
"content": "SELECT DISTINCT uses FROM drugs_fts;",
"role": "assistant"
}
] | sql_000054 |
List all drugs manufactured by Pfizer | [
{
"content": "List all drugs manufactured by Pfizer",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE manufacturer MATCH 'Pfizer';",
"role": "assistant"
}
] | sql_000055 |
Find top 5 cheapest drugs for hypertension | [
{
"content": "Find top 5 cheapest drugs for hypertension",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'hypertension' ORDER BY CAST(price AS DECIMAL(10,2)) LIMIT 5;",
"role": "assistant"
}
] | sql_000056 |
Get average price of drugs used to treat cancer | [
{
"content": "Get average price of drugs used to treat cancer",
"role": "user"
},
{
"content": "SELECT AVG(CAST(price AS DECIMAL(10,2))) as avg_price FROM drugs_fts WHERE uses MATCH 'cancer';",
"role": "assistant"
}
] | sql_000057 |
List all generic names available | [
{
"content": "List all generic names available",
"role": "user"
},
{
"content": "SELECT DISTINCT generics FROM drugs_fts;",
"role": "assistant"
}
] | sql_000058 |
Count total number of drugs for tuberculosis | [
{
"content": "Count total number of drugs for tuberculosis",
"role": "user"
},
{
"content": "SELECT COUNT(*) as total_drugs FROM drugs_fts WHERE uses MATCH 'tuberculosis';",
"role": "assistant"
}
] | sql_000059 |
Find drugs for fever under 25 rupees | [
{
"content": "Find drugs for fever under 25 rupees",
"role": "user"
},
{
"content": "SELECT name, uses, generics, price, manufacturer FROM drugs_fts WHERE uses MATCH 'fever' AND CAST(price AS DECIMAL(10,2)) < 25;",
"role": "assistant"
}
] | sql_000060 |
README.md exists but content is empty.
- Downloads last month
- 7