instruction_seed stringlengths 305 1.28k | response_seed stringclasses 1
value | response stringlengths 7 2.05k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|---|
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (score VARCHAR, venue VARCHAR)
Question: in riyadh, saudi arabia, what is the score?
Here is the SQLite query to answer to the question: in riyadh, saudi a... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_12 WHERE venue = "riyadh, saudi arabia"
``` | 48,500 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (score VARCHAR, venue VARCHAR)\n\n Question: in riyadh, saudi arabia, what is the score?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (pocona_municipality___percentage_ INTEGER, entre_ríos_municipality___percentage_ VARCHAR, puerto_villarroel_municipality___percentage_ VARCHAR, chimoré_municipa... | Here is the SQLite query to answer the question regarding the lowest Pocona Municipality (%) that meets the specified conditions:
```sql
SELECT MIN(pocona_municipality___percentage_)
FROM table_name_61
WHERE puerto_villarroel_municipality___percentage_ < 14.6
AND chimoré_municipality___percentage_ = 5.1
AND en... | 48,501 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (pocona_municipality___percentage_ INTEGER, entre_ríos_municipality___percentage_ VARCHAR, puerto_villarroel_municipali... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (puerto_villarroel_municipality___percentage_ INTEGER, ethnic_group VARCHAR, totora_municipality___percentage_ VARCHAR)
Question: Which Puerto Villarroel Mu... | Here is the corrected SQLite query to answer the question:
```
SELECT MIN(puerto_villarroel_municipality___percentage_)
FROM table_name_94
WHERE ethnic_group = 'not indigenous'
AND CAST(totora_municipality___percentage_ AS FLOAT) < 4.4;
```
This assumes that the `totora_municipality___percentage_` is stored as a ... | 48,502 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (puerto_villarroel_municipality___percentage_ INTEGER, ethnic_group VARCHAR, totora_municipality___percentage_ VARCHAR)... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (pocona_municipality___percentage_ INTEGER, puerto_villarroel_municipality___percentage_ VARCHAR, pojo_municipality___percentage_ VARCHAR)
Question: Which Po... | The SQLite query you provided is almost correct, but there is a small issue with the data types you are comparing. Since `puerto_villarroel_municipality___percentage_` and `pojo_municipality___percentage_` are declared as `VARCHAR`, it would be better to ensure that the values are treated as numbers for comparison. You... | 48,503 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (pocona_municipality___percentage_ INTEGER, puerto_villarroel_municipality___percentage_ VARCHAR, pojo_municipality___pe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (totora_municipality___percentage_ INTEGER, chimoré_municipality___percentage_ VARCHAR, pocona_municipality___percentage_ VARCHAR)
Question: Which Totora Mu... | Here is the corrected SQLite query to answer your question:
```
SELECT MAX(totora_municipality___percentage_)
FROM table_name_72
WHERE chimoré_municipality___percentage_ = '5.1'
AND CAST(pocona_municipality___percentage_ AS REAL) < 0.2;
```
Note: The `chimoré_municipality___percentage_` is stored as a `VARCHAR`, ... | 48,504 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (totora_municipality___percentage_ INTEGER, chimoré_municipality___percentage_ VARCHAR, pocona_municipality___percentag... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (pos INTEGER, car__number VARCHAR, driver VARCHAR)
Question: Which Pos has a Car # smaller than 18, and a Driver of mike skinner?
Here is the SQLite query ... | The query you provided uses the `AVG` function to calculate the average of `pos` values for cars with a number smaller than 18 and driven by "mike skinner." However, if you want to retrieve the specific `pos` values instead of their average, you should use a `SELECT` statement without the aggregation function.
Here i... | 48,505 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (pos INTEGER, car__number VARCHAR, driver VARCHAR)\n\n Question: Which Pos has a Car # smaller than 18, and a Driver... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (team VARCHAR, driver VARCHAR, car__number VARCHAR, pos VARCHAR, make VARCHAR)
Question: Which Team has a Pos larger than 3, and a Make of toyota, and a Car... | Here is the SQLite query to answer the specified question:
```
SELECT team FROM table_name_75 WHERE pos > 3 AND make = "toyota" AND car__number < 59 AND driver = "mike skinner";
``` | 48,506 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (team VARCHAR, driver VARCHAR, car__number VARCHAR, pos VARCHAR, make VARCHAR)\n\n Question: Which Team has a Pos la... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (pos INTEGER, team VARCHAR, car__number VARCHAR)
Question: Which Pos has a Team of roush fenway racing, and a Car # of 99?
Here is the SQLite query to answ... | The query you provided is close, but it seems you are looking to retrieve the specific position (`pos`) rather than the sum of positions. Here is the corrected SQLite query that will return the `pos` for the team "roush fenway racing" with a car number of 99:
```
SELECT pos FROM table_name_32 WHERE team = "roush fenwa... | 48,507 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (pos INTEGER, team VARCHAR, car__number VARCHAR)\n\n Question: Which Pos has a Team of roush fenway racing, and a Ca... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (car__number INTEGER, make VARCHAR, pos VARCHAR)
Question: Which Car # has a Make of toyota, and a Pos of 7?
Here is the SQLite query to answer to the ques... | The query you've written seems to find the average of the car numbers that match the criteria, rather than just selecting the car numbers themselves. If you're looking for the specific car numbers that match the criteria of having a make of "toyota" and a pos of "7", the correct query should be as follows:
```sql
SELE... | 48,508 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (car__number INTEGER, make VARCHAR, pos VARCHAR)\n\n Question: Which Car # has a Make of toyota, and a Pos of 7?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (pos VARCHAR, team VARCHAR)
Question: Which Pos has a Team of germian racing?
Here is the SQLite query to answer to the question: Which Pos has a Team of g... | Here is the SQLite query to answer the question "Which Pos has a Team of germian racing?":
```
SELECT pos FROM table_name_68 WHERE team = "germian racing";
``` | 48,509 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (pos VARCHAR, team VARCHAR)\n\n Question: Which Pos has a Team of germian racing?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (opponent VARCHAR, score VARCHAR)
Question: Which Opponent has a Score of 2–6?
Here is the SQLite query to answer to the question: Which Opponent has a Sco... | Here is the SQLite query to answer the question: Which Opponent has a Score of 2–6?:
```
SELECT opponent FROM table_name_64 WHERE score = "2–6";
``` | 48,510 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (opponent VARCHAR, score VARCHAR)\n\n Question: Which Opponent has a Score of 2–6?\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (game INTEGER, series VARCHAR)
Question: Which Game has a Series of flyers win 3–0? Question 3
Here is the SQLite query to answer to the question: Which Gam... | Your SQLite query looks correct for finding the game associated with the series "flyers win 3–0". However, if you want to ensure that you're selecting the specific game(s) rather than just the maximum game number, you might want to adjust your query slightly. Here's your original query wrapped correctly:
```sql
SELECT... | 48,511 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (game INTEGER, series VARCHAR)\n\n Question: Which Game has a Series of flyers win 3–0? Question 3\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (series VARCHAR, date VARCHAR)
Question: Which Series is on april 18?
Here is the SQLite query to answer to the question: Which Series is on april 18?:
```... | Your SQLite query looks correct. Here it is wrapped in code format:
```
SELECT series FROM table_name_84 WHERE date = "april 18";
``` | 48,512 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (series VARCHAR, date VARCHAR)\n\n Question: Which Series is on april 18?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (date VARCHAR, score VARCHAR)
Question: Name the date with score of 9-2
Here is the SQLite query to answer to the question: Name the date with score of 9-2... | Here is the SQLite query to answer the question of identifying the date with a score of 9-2:
```
SELECT date FROM table_name_49 WHERE score = "9-2";
``` | 48,513 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (date VARCHAR, score VARCHAR)\n\n Question: Name the date with score of 9-2\n\nHere is the SQLite query to answer to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (points INTEGER, nationality VARCHAR, name VARCHAR)
Question: Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenster... | Here is the SQLite query to answer the question:
```
SELECT MAX(points) FROM table_name_32 WHERE nationality = "aut" AND name = "thomas morgenstern"
``` | 48,514 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (points INTEGER, nationality VARCHAR, name VARCHAR)\n\n Question: Which Points is the highest one that has a Nationa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (capacity__mw_ INTEGER, turbines VARCHAR, size__mw_ VARCHAR, wind_farm VARCHAR)
Question: What is the sum of the capacities for Carrigh wind warm that has a... | Here is the corrected SQLite query wrapped in code formatting:
```sql
SELECT SUM(capacity__mw_)
FROM table_name_31
WHERE size__mw_ = "0.85"
AND wind_farm = "carrigh"
AND CAST(turbines AS INTEGER) > 3;
```
In this query, I used `CAST(turbines AS INTEGER)` to ensure that the `turbines` field is treated as an i... | 48,515 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (capacity__mw_ INTEGER, turbines VARCHAR, size__mw_ VARCHAR, wind_farm VARCHAR)\n\n Question: What is the sum of the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (size__mw_ VARCHAR, county VARCHAR, turbines VARCHAR, turbine_vendor VARCHAR)
Question: What is the size of the windfarm in wexford that has more than 19 tu... | Here is the SQLite query to answer the question regarding the size of the windfarm in Wexford that has more than 19 turbines and a vendor of Enercon:
```sql
SELECT size__mw_ FROM table_name_87 WHERE turbines > 19 AND turbine_vendor = "Enercon" AND county = "Wexford";
``` | 48,516 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (size__mw_ VARCHAR, county VARCHAR, turbines VARCHAR, turbine_vendor VARCHAR)\n\n Question: What is the size of the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (turbine_vendor VARCHAR, wind_farm VARCHAR, size__mw_ VARCHAR, turbines VARCHAR, county VARCHAR)
Question: Who is the turbine vendor for Meenadreen in Doneg... | Here is the SQLite query to answer the question regarding the turbine vendor for Meenadreen in Donegal county with less than 6 turbines and a size of 0.85 MW:
```
SELECT turbine_vendor
FROM table_name_85
WHERE CAST(turbines AS INTEGER) < 6
AND LOWER(county) = "donegal"
AND size__mw_ = "0.85"
AND LOWER(wind_farm) ... | 48,517 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (turbine_vendor VARCHAR, wind_farm VARCHAR, size__mw_ VARCHAR, turbines VARCHAR, county VARCHAR)\n\n Question: Who i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (population INTEGER, rank VARCHAR, median_house__hold_income VARCHAR)
Question: What is the population where the rank is higher than 51 and the Median House... | Here is the SQLite query that answers the question:
```sql
SELECT SUM(population) FROM table_name_50 WHERE rank > '51' AND median_house__hold_income = '$25,250';
```
Note that I changed the comparison for `rank` to use single quotes since it is a VARCHAR type and the string for median household income also uses sing... | 48,518 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (population INTEGER, rank VARCHAR, median_house__hold_income VARCHAR)\n\n Question: What is the population where the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (population INTEGER, median_house__hold_income VARCHAR)
Question: What is the Population where the Median House-hold Income is $25,016?
Here is the SQLite ... | Your SQLite query looks almost correct, but there is a minor issue with using `MIN(population)`. If you are looking for the population where the median household income equals $25,016, you might want to use `SELECT population` instead, unless you specifically want the minimum population out of multiple entries.
Here i... | 48,519 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (population INTEGER, median_house__hold_income VARCHAR)\n\n Question: What is the Population where the Median House-... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR)
Question: What is the Number of Households that have a Per Capita Income of $21,345?
Here is the ... | The SQLite query you provided is using `AVG`, which is used to calculate the average value of a specific column. However, if you want to count the number of households with a per capita income of $21,345, you should be using the `SUM` function instead to get the total number of households with that income.
Here's the ... | 48,520 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR)\n\n Question: What is the Number of Households that have a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR)
Question: What County has a Median Family Income of $79,331?
Here is the SQLite query to answer to the questi... | Sure! Here is the SQLite query to find out which county has a median family income of $79,331:
```
SELECT county FROM table_name_3 WHERE median_family_income = '$79,331';
``` | 48,521 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR)\n\n Question: What County has a Median Family Income of $79,331?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)
Question: The United States, with a total medal count of less than 171, and a bronze medal coun... | Here is the SQLite query to answer the question about the United States' medal counts:
```
SELECT MAX(gold) FROM table_name_1 WHERE total < 171 AND nation = "united states" AND bronze < 9
``` | 48,522 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)\n\n Question: The United States, with a total medal cou... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (gold VARCHAR, nation VARCHAR)
Question: How many total gold medals did Australia receive?
Here is the SQLite query to answer to the question: How many tot... | Here is the SQLite query to answer the question about how many total gold medals Australia received:
```
SELECT COUNT(gold) FROM table_name_80 WHERE nation = "Australia";
``` | 48,523 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (gold VARCHAR, nation VARCHAR)\n\n Question: How many total gold medals did Australia receive?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR)
Question: How many total bronze medals did Canada receive?
Here is the SQLite query to answer to the question: How many to... | The provided query is not correct because it uses `MAX()` instead of `SUM()` to calculate the total number of bronze medals. Here is the corrected SQLite query:
```
SELECT SUM(bronze) FROM table_name_58 WHERE nation = "canada";
``` | 48,524 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR)\n\n Question: How many total bronze medals did Canada receive?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (gold VARCHAR, nation VARCHAR)
Question: How many total gold medals did India receive?
Here is the SQLite query to answer to the question: How many total g... | To count the total number of gold medals received by India, you should use the `COUNT` aggregate function in your SQL query. Here is the corrected SQLite query:
```
SELECT COUNT(gold) FROM table_name_10 WHERE nation = "India";
``` | 48,525 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (gold VARCHAR, nation VARCHAR)\n\n Question: How many total gold medals did India receive?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (tournament VARCHAR)
Question: Which 1997's accompanying 1991 was a when the tournament was the australian open?
Here is the SQLite query to answer to the ... | It seems there is some confusion in the question you provided. In the context of SQL and the provided schema, it appears you want to retrieve data related to the Australian Open tournaments.
To write an SQLite query based on the schema you provided, I will assume you're looking for tournaments that occurred in conjunc... | 48,526 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (tournament VARCHAR)\n\n Question: Which 1997's accompanying 1991 was a when the tournament was the australian open?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (Id VARCHAR)
Question: Which 1997's 1992 was 1r when 1994 was a?
Here is the SQLite query to answer to the question: Which 1997's 1992 was 1r when 1994 was... | ```sql
SELECT "1997" FROM table_name_77 WHERE "1992" = "1r" AND "1994" = "a";
``` | 48,527 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (Id VARCHAR)\n\n Question: Which 1997's 1992 was 1r when 1994 was a?\n\nHere is the SQLite query to answer to the qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (tournament VARCHAR)
Question: Which 1995's tournament was the French Open?
Here is the SQLite query to answer to the question: Which 1995's tournament was... | The SQLite query provided contains a syntax error because it incorrectly specifies `1995` as a column, while it should reference the year indirectly. The correct query to find out the French Open tournament for the year 1995 would look for a specific entry in the `tournament` column. Here's the correct syntax for the q... | 48,528 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (tournament VARCHAR)\n\n Question: Which 1995's tournament was the French Open?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (Id VARCHAR)
Question: Which 1989's 1991 and 1994 stats were 1r?
Here is the SQLite query to answer to the question: Which 1989's 1991 and 1994 stats were ... | The provided SQLite query seems to have some inconsistencies with the database schema and the question. The schema indicates that the table `table_name_81` only has a single column named `Id`. For the query as it stands, it appears to assume that the table contains columns for the years 1989, 1991, and 1994, which are ... | 48,529 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (Id VARCHAR)\n\n Question: Which 1989's 1991 and 1994 stats were 1r?\n\nHere is the SQLite query to answer to the qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (Id VARCHAR)
Question: Which 1990s 1992 was 3r?
Here is the SQLite query to answer to the question: Which 1990s 1992 was 3r?:
```
SELECT 1990 FROM table_na... | It seems like there might be some confusion in the provided question since it mixes years with a potential query condition. However, based on the provided schema (`CREATE TABLE table_name_78 (Id VARCHAR)`) and your indication of what you seek, I will attempt to construct a meaningful SQLite query that makes sense.
Ass... | 48,530 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (Id VARCHAR)\n\n Question: Which 1990s 1992 was 3r?\n\nHere is the SQLite query to answer to the question: Which 199... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (linda_mccartney VARCHAR, stuart VARCHAR)
Question: Which Linda McCartney has a Stuart of electric guitar?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question: Which Linda McCartney has a Stuart of electric guitar?:
```
SELECT linda_mccartney FROM table_name_80 WHERE stuart = "electric guitar"
``` | 48,531 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (linda_mccartney VARCHAR, stuart VARCHAR)\n\n Question: Which Linda McCartney has a Stuart of electric guitar?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (whitten VARCHAR, stuart VARCHAR, paul_mccartney VARCHAR)
Question: Which Whitten has a Stuart of bass, and a Paul McCartney of electric guitar?
Here is th... | Here is the SQLite query to answer the question regarding which Whitten has a Stuart of bass and a Paul McCartney of electric guitar:
```
SELECT whitten FROM table_name_12 WHERE stuart = "bass" AND paul_mccartney = "electric guitar"
``` | 48,532 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (whitten VARCHAR, stuart VARCHAR, paul_mccartney VARCHAR)\n\n Question: Which Whitten has a Stuart of bass, and a Pa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (mcintosh VARCHAR, paul_mccartney VARCHAR, whitten VARCHAR, stuart VARCHAR)
Question: Which McIntosh has a Whitten of drums, and a Stuart of bass, and a Pau... | Sure! Here is the SQLite query wrapped in the appropriate code formatting:
```
SELECT mcintosh FROM table_name_88 WHERE whitten = "drums" AND stuart = "bass" AND paul_mccartney = "electric guitar"
``` | 48,533 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (mcintosh VARCHAR, paul_mccartney VARCHAR, whitten VARCHAR, stuart VARCHAR)\n\n Question: Which McIntosh has a Whitt... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (paul_mccartney VARCHAR, linda_mccartney VARCHAR)
Question: Which Paul McCartney has a Linda McCartney of keyboards?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question: Which Paul McCartney has a Linda McCartney of keyboards?:
```
SELECT paul_mccartney FROM table_name_98 WHERE linda_mccartney = "keyboards"
``` | 48,534 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (paul_mccartney VARCHAR, linda_mccartney VARCHAR)\n\n Question: Which Paul McCartney has a Linda McCartney of keyboa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (mcintosh VARCHAR, stuart VARCHAR, linda_mccartney VARCHAR)
Question: Which McIntosh has a Stuart of bass, and a Linda McCartney of keyboards or drum?
Here... | Your query has a small issue with the condition for the `linda_mccartney` column. Since you want to check if `linda_mccartney` is either "keyboards" or "drum", you should use the `OR` operator to combine these conditions. Here is the corrected query:
```
SELECT mcintosh FROM table_name_78 WHERE stuart = "bass" AND (li... | 48,535 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (mcintosh VARCHAR, stuart VARCHAR, linda_mccartney VARCHAR)\n\n Question: Which McIntosh has a Stuart of bass, and a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (paul_mccartney VARCHAR, linda_mccartney VARCHAR)
Question: Which Paul McCartney has a Linda McCartney of keyboards or drum?
Here is the SQLite query to an... | Your query is almost correct. However, to fetch records where Linda McCartney can be either "keyboards" or "drum", you should use the `IN` clause or `OR` condition instead of directly comparing to the string "keyboards or drum". Here is the corrected SQL query:
```
SELECT paul_mccartney FROM table_name_15
WHERE linda... | 48,536 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (paul_mccartney VARCHAR, linda_mccartney VARCHAR)\n\n Question: Which Paul McCartney has a Linda McCartney of keyboa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (grid INTEGER, laps VARCHAR, bike VARCHAR, time VARCHAR)
Question: What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.848, and a... | Here is the SQLite query to answer the question as specified:
```
SELECT MAX(grid) FROM table_name_70 WHERE bike = "honda cbr1000rr" AND time = "+20.848" AND laps > 24
``` | 48,537 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (grid INTEGER, laps VARCHAR, bike VARCHAR, time VARCHAR)\n\n Question: What is the largest Grid that has a Bike of h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (total INTEGER, nation VARCHAR, gold VARCHAR)
Question: The nation of denmark has what average total nad more than 0 gold?
Here is the SQLite query to answ... | The SQLite query you provided has a small mistake regarding the data type of the `gold` column, which is defined as `VARCHAR`. In this case, we should convert the `gold` column to an integer type for comparison. Here’s the corrected version of the query:
```sql
SELECT AVG(total) FROM table_name_70 WHERE nation = 'denm... | 48,538 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (total INTEGER, nation VARCHAR, gold VARCHAR)\n\n Question: The nation of denmark has what average total nad more th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (gold INTEGER, nation VARCHAR, silver VARCHAR)
Question: Switzerland has how many gold and less than 0 silver?
Here is the SQLite query to answer to the qu... | The provided SQLite query accurately addresses the question about Switzerland's gold medals with less than 0 silver medals. Here is the query again, wrapped in code blocks:
```
SELECT MAX(gold) FROM table_name_61 WHERE nation = "switzerland" AND silver < 0;
```
This query retrieves the maximum number of gold medals ... | 48,539 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (gold INTEGER, nation VARCHAR, silver VARCHAR)\n\n Question: Switzerland has how many gold and less than 0 silver?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR)
Question: How many years had a score of 734-5d?
Here is the SQLite query to answer to the question: How many years had a score... | Here is the SQLite query to answer the question: How many years had a score of 734-5d?:
```
SELECT COUNT(year) FROM table_name_9 WHERE score = '734-5d';
``` | 48,540 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR)\n\n Question: How many years had a score of 734-5d?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (venue VARCHAR, city VARCHAR, year VARCHAR)
Question: Which venue had a city of Manchester before 2003?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question: Which venue had a city of Manchester before 2003?:
```
SELECT venue FROM table_name_82 WHERE city = "Manchester" AND year < '2003';
``` | 48,541 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (venue VARCHAR, city VARCHAR, year VARCHAR)\n\n Question: Which venue had a city of Manchester before 2003?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (venue VARCHAR, city VARCHAR, year VARCHAR)
Question: Which venue had a city of Manchester in 2003?
Here is the SQLite query to answer to the question: Whi... | Here is the SQLite query to answer the question "Which venue had a city of Manchester in 2003?":
```
SELECT venue FROM table_name_85 WHERE city = "Manchester" AND year = "2003"
``` | 48,542 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (venue VARCHAR, city VARCHAR, year VARCHAR)\n\n Question: Which venue had a city of Manchester in 2003?\n\nHere is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (venue VARCHAR, score VARCHAR)
Question: Which venue had a score of 734-5d?
Here is the SQLite query to answer to the question: Which venue had a score of 7... | Here is the SQLite query to answer the question: Which venue had a score of 734-5d?:
```
SELECT venue FROM table_name_8 WHERE score = '734-5d';
``` | 48,543 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (venue VARCHAR, score VARCHAR)\n\n Question: Which venue had a score of 734-5d?\n\nHere is the SQLite query to answer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (top_5 INTEGER, top_10 VARCHAR, cuts_made VARCHAR)
Question: What is the average number of top-5s for the major with 5 top-10s and fewer than 12 cuts made?
... | The provided SQLite query correctly aims to calculate the average number of top-5s for rows where the number of top-10s is exactly 5 and the number of cuts made is fewer than 12. However, the condition for `top_10` should be checking for equality with the integer value 5, but since `top_10` is defined as a `VARCHAR` in... | 48,544 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (top_5 INTEGER, top_10 VARCHAR, cuts_made VARCHAR)\n\n Question: What is the average number of top-5s for the major w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (top_10 INTEGER, top_25 VARCHAR, cuts_made VARCHAR)
Question: What is the average number of top-10s for the major with 2 top-25s and fewer than 10 cuts made... | It seems there is a misunderstanding in how to group and filter the data based on your requirements. You want to find the average number of top-10 finishes for the majors that have exactly 2 top-25 finishes and fewer than 10 cuts made. Since `top_25` is defined as a VARCHAR, you'll need to ensure you're comparing again... | 48,545 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (top_10 INTEGER, top_25 VARCHAR, cuts_made VARCHAR)\n\n Question: What is the average number of top-10s for the majo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR)
Question: What is the total number of top-25s for the major that has 11 top-10s?
Here is the SQLite query to answer to the... | It appears there is a small mistake in your query. Since `top_10` is a VARCHAR type, you should be filtering on its count rather than trying to match it directly to a number. Here’s how you can correctly write the query to find the total number of `top_25`s associated with the major that has 11 `top_10`s.
Assuming tha... | 48,546 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR)\n\n Question: What is the total number of top-25s for the major that has 11 top-10s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR, top_5 VARCHAR)
Question: How many total events have cuts made over 12, more than 2 top-5s, and more than... | Here is the corrected SQLite query that answers the question about counting the total events based on the specified conditions:
```sql
SELECT SUM(events)
FROM table_name_66
WHERE CAST(cuts_made AS INTEGER) > 12
AND CAST(top_5 AS INTEGER) > 2
AND CAST(top_10 AS INTEGER) > 11;
``` | 48,547 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR, top_5 VARCHAR)\n\n Question: How many total events have cuts mad... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (wins INTEGER, top_10 VARCHAR)
Question: How many total wins are associated with events with 1 top-10?
Here is the SQLite query to answer to the question: ... | It looks like there is a minor mistake in the query you provided. The `top_10` field is defined as `VARCHAR`, so comparing it directly with an integer (like `1`) may not yield expected results. You might want to compare it with a string instead. Here is the corrected query to count the total wins associated with events... | 48,548 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (wins INTEGER, top_10 VARCHAR)\n\n Question: How many total wins are associated with events with 1 top-10?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR)
Question: What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s?
... | The SQLite query you've provided has a small issue regarding the condition for the `top_10` column, which is defined as a `VARCHAR`. You need to match it correctly against the string representation of 11. Here is the corrected version of the query:
```sql
SELECT AVG(cuts_made)
FROM table_name_93
WHERE top_10 = '11' ... | 48,549 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR)\n\n Question: What is the average number of cuts made in events wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR)
Question: What week did they have a bye?
Here is the SQLite query to answer to the question: What week did they have a bye?:
`... | Your provided query correctly retrieves the week where the date is marked as "bye". However, since the schema indicates that the date is a string, it would be good to make sure that "bye" is indeed the way bye weeks are indicated in your dataset. Assuming "bye" is the correct value stored in the date column, here is yo... | 48,550 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR)\n\n Question: What week did they have a bye?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (tournament VARCHAR)
Question: What tournament in 2006 had a score of 0-0?
Here is the SQLite query to answer to the question: What tournament in 2006 had a... | The provided query contains a syntax error and does not properly reference the conditions needed to find the tournament with a score of 0-0 in 2006. Given the schema you've provided, the table only contains a column for tournaments but does not include any columns for scores or years.
Assuming you have a relevant tab... | 48,551 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (tournament VARCHAR)\n\n Question: What tournament in 2006 had a score of 0-0?\n\nHere is the SQLite query to answer ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (extra_points INTEGER, player VARCHAR, points VARCHAR)
Question: What was the highest number of extra points scored by Albert Herrnstein, when he scored mor... | Here is the corrected SQLite query to answer your question:
```sql
SELECT MAX(extra_points)
FROM table_name_38
WHERE player = "Albert Herrnstein" AND CAST(points AS INTEGER) > 15;
```
This query ensures that the points are treated as integers for comparison, since the `points` field is defined as a `VARCHAR` in th... | 48,552 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (extra_points INTEGER, player VARCHAR, points VARCHAR)\n\n Question: What was the highest number of extra points sco... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (touchdowns VARCHAR, player VARCHAR)
Question: How many touchdowns were scored by William Cole?
Here is the SQLite query to answer to the question: How man... | To count the number of touchdowns scored by William Cole, you can use the following SQLite query, which uses the `COUNT` function:
```
SELECT COUNT(touchdowns) AS total_touchdowns FROM table_name_88 WHERE player = "william cole"
```
This query will return the total number of touchdowns scored by William Cole. | 48,553 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (touchdowns VARCHAR, player VARCHAR)\n\n Question: How many touchdowns were scored by William Cole?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (record VARCHAR, attendance VARCHAR)
Question: For the game with 26,236 attendance, what was the record?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question:
```
SELECT record FROM table_name_81 WHERE attendance = "26,236"
``` | 48,554 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (record VARCHAR, attendance VARCHAR)\n\n Question: For the game with 26,236 attendance, what was the record?\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (record VARCHAR, attendance VARCHAR)
Question: What's the record for the game with an attendance of 49,222?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the record for the game with an attendance of 49,222:
```
SELECT record FROM table_name_28 WHERE attendance = '49,222';
``` | 48,555 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (record VARCHAR, attendance VARCHAR)\n\n Question: What's the record for the game with an attendance of 49,222?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (high_rebounds VARCHAR, date VARCHAR)
Question: Who had the most rebounds and how many did he have during the game on June 11?
Here is the SQLite query to ... | Your provided SQL query is almost correct, but it does not include the necessary logic to find the maximum number of rebounds or the corresponding player. Instead, you should aggregate the data to find the maximum number of rebounds for the specified date and return the corresponding player who achieved that.
Here’s t... | 48,556 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (high_rebounds VARCHAR, date VARCHAR)\n\n Question: Who had the most rebounds and how many did he have during the ga... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (high_points VARCHAR, date VARCHAR)
Question: Who was the leading scorer and how many did he score for the game on June 13?
Here is the SQLite query to ans... | The provided query is almost correct, but it does not specifically retrieve the leading scorer and their score. To find out who the leading scorer was and how many points they scored on June 13, you may want to ensure you're accounting for potentially multiple entries or aggregate scoring. An example of a corrected que... | 48,557 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (high_points VARCHAR, date VARCHAR)\n\n Question: Who was the leading scorer and how many did he score for the game ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (college_junior_club_team VARCHAR, round VARCHAR, pick VARCHAR)
Question: What College/Junior/Club Team has Pick 50 before Round 8?
Here is the SQLite quer... | Here is the SQLite query to answer the question about which College/Junior/Club Team has Pick 50 before Round 8:
```
SELECT college_junior_club_team FROM table_name_19 WHERE round < '8' AND pick = '50';
```
Please note that in SQLite, comparison for strings and numbers can behave differently. If `round` and `pick` a... | 48,558 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (college_junior_club_team VARCHAR, round VARCHAR, pick VARCHAR)\n\n Question: What College/Junior/Club Team has Pick... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (overall INTEGER, slalom VARCHAR, season VARCHAR)
Question: What is the highest overall prior to 1996 with a slalom of 39?
Here is the SQLite query to answ... | Your query is almost correct, but there is a small error with the comparison for the `season`. Since `season` is defined as a `VARCHAR`, you need to compare it as a string. The comparison should be done on a string basis, which means you should check that `season` comes before '1996'.
Here is the corrected SQLite quer... | 48,559 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (overall INTEGER, slalom VARCHAR, season VARCHAR)\n\n Question: What is the highest overall prior to 1996 with a sla... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (overall INTEGER, downhill VARCHAR, season VARCHAR)
Question: What is the lowest overall score prior to 1992 with a downhill score of 1?
Here is the SQLite... | Here is the corrected SQLite query to answer the question about the lowest overall score prior to 1992 with a downhill score of 1:
```
SELECT MIN(overall)
FROM table_name_57
WHERE downhill = '1' AND season < '1992';
```
Note that I've used single quotes for string literals, which is the recommended practice in SQL... | 48,560 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (overall INTEGER, downhill VARCHAR, season VARCHAR)\n\n Question: What is the lowest overall score prior to 1992 wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (Giant VARCHAR, overall VARCHAR, super_g VARCHAR)
Question: What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12... | Here is the SQLite query to answer the question about the Giant Slalom score when the Overall score is greater than 3 and the Super G score is 12:
```
SELECT Giant AS slalom FROM table_name_28 WHERE overall > 3 AND super_g = 12;
``` | 48,561 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (Giant VARCHAR, overall VARCHAR, super_g VARCHAR)\n\n Question: What was her Giant Slalom score when her Overall was... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (super_g INTEGER, slalom VARCHAR, overall VARCHAR)
Question: What was her highest Super G score with a Slalom score of 58 and an Overall larger than 2?
Her... | Here is the SQLite query to answer the question you provided:
```
SELECT MAX(super_g) FROM table_name_43 WHERE slalom = '58' AND overall > '2';
``` | 48,562 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (super_g INTEGER, slalom VARCHAR, overall VARCHAR)\n\n Question: What was her highest Super G score with a Slalom sc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (location__all_in_nagano__ VARCHAR, name VARCHAR)
Question: What location has the name of Sakakita BS?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question: What location has the name of Sakakita BS?:
```
SELECT location__all_in_nagano__ FROM table_name_7 WHERE LOWER(name) = "sakakita bs";
```
This query retrieves the location from `table_name_7` where the name matches "Sakakita BS", case insensitively. | 48,563 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (location__all_in_nagano__ VARCHAR, name VARCHAR)\n\n Question: What location has the name of Sakakita BS?\n\nHere is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (location__all_in_nagano__ VARCHAR, name VARCHAR)
Question: Which location includes Sakakita BS?
Here is the SQLite query to answer to the question: Which ... | Here is the SQLite query to answer the question about which location includes Sakakita BS:
```sql
SELECT location__all_in_nagano__ FROM table_name_18 WHERE name = "sakakita bs";
``` | 48,564 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (location__all_in_nagano__ VARCHAR, name VARCHAR)\n\n Question: Which location includes Sakakita BS?\n\nHere is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (dist_from_origin VARCHAR, location__all_in_nagano__ VARCHAR, name VARCHAR)
Question: What is the distance from origin in Azumino including Toyoshina IC?
H... | Here is the SQLite query to answer the question regarding the distance from origin in Azumino including Toyoshina IC:
```
SELECT dist_from_origin FROM table_name_57 WHERE location__all_in_nagano__ = "azumino" AND name = "toyoshina ic"
``` | 48,565 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (dist_from_origin VARCHAR, location__all_in_nagano__ VARCHAR, name VARCHAR)\n\n Question: What is the distance from ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (district VARCHAR, first_elected VARCHAR, towns_represented VARCHAR)
Question: Which district had first elected earlier than 2006 for representation of Broke... | Here is the SQLite query formatted as requested:
```
SELECT district FROM table_name_7 WHERE first_elected < 2006 AND towns_represented = "broken arrow, tulsa"
``` | 48,566 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (district VARCHAR, first_elected VARCHAR, towns_represented VARCHAR)\n\n Question: Which district had first elected e... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (first_elected VARCHAR, district VARCHAR)
Question: How many values of first elected are for district 16?
Here is the SQLite query to answer to the questio... | Your provided SQLite query is correct for counting the number of values of `first_elected` for district 16. Here’s the query wrapped in the requested format:
```
SELECT COUNT(first_elected) FROM table_name_91 WHERE district = "16";
``` | 48,567 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (first_elected VARCHAR, district VARCHAR)\n\n Question: How many values of first elected are for district 16?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (towns_represented VARCHAR, district VARCHAR)
Question: Which towns are represented in district 31?
Here is the SQLite query to answer to the question: Whi... | Here is the SQLite query to answer the question:
```sql
SELECT towns_represented FROM table_name_65 WHERE district = "31";
``` | 48,568 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (towns_represented VARCHAR, district VARCHAR)\n\n Question: Which towns are represented in district 31?\n\nHere is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (deposits VARCHAR, non_interest_income VARCHAR, no_of_branches_offices VARCHAR)
Question: How many deposits had a Non-Interest Income of 0.9500000000000001 ... | Here is the SQLite query to answer the question about deposits with a Non-Interest Income of 0.9500000000000001 and a number of branch/offices less than 17:
```
SELECT COUNT(deposits)
FROM table_name_63
WHERE non_interest_income = '0.9500000000000001'
AND no_of_branches_offices < '17';
``` | 48,569 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (deposits VARCHAR, non_interest_income VARCHAR, no_of_branches_offices VARCHAR)\n\n Question: How many deposits had ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (npl_net VARCHAR, bank VARCHAR)
Question: Which NPL net's bank was citibank?
Here is the SQLite query to answer to the question: Which NPL net's bank was c... | Your SQLite query to find which NPL net's bank was citibank is correctly written. Here it is wrapped in the requested format:
```
SELECT npl_net FROM table_name_30 WHERE bank = "citibank";
``` | 48,570 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (npl_net VARCHAR, bank VARCHAR)\n\n Question: Which NPL net's bank was citibank?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (championship VARCHAR, winning_score VARCHAR)
Question: Which championship has a winning score of (77-76-74-73=300)?
Here is the SQLite query to answer to ... | It looks like there is an issue with the query you provided. The comparison should be made with the actual winning score that equals 300, not the expression itself. The correct query should instead compare `winning_score` with the calculated total.
Here's the corrected SQLite query:
```sql
SELECT championship FROM ta... | 48,571 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (championship VARCHAR, winning_score VARCHAR)\n\n Question: Which championship has a winning score of (77-76-74-73=3... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (championship VARCHAR, margin VARCHAR)
Question: Which championship has a margin of 8 strokes?
Here is the SQLite query to answer to the question: Which ch... | Here is the SQLite query to answer the question: Which championship has a margin of 8 strokes?:
```
SELECT championship FROM table_name_89 WHERE margin = "8 strokes";
``` | 48,572 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (championship VARCHAR, margin VARCHAR)\n\n Question: Which championship has a margin of 8 strokes?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (championship VARCHAR)
Question: What is the 54 holes for The Open Championship (4)?
Here is the SQLite query to answer to the question: What is the 54 hole... | Here is the SQLite query to answer the question regarding the 54 holes for The Open Championship (4):
```
SELECT 54 AS _holes FROM table_name_7 WHERE championship = "The Open Championship (4)"
``` | 48,573 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (championship VARCHAR)\n\n Question: What is the 54 holes for The Open Championship (4)?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (tournament VARCHAR)
Question: Which Tournament has a 2007 of wta premier 5 tournaments?
Here is the SQLite query to answer to the question: Which Tourname... | It looks like there might be a misunderstanding in the query you provided. The WHERE clause is not structured correctly for the intended question. Assuming you meant to check for tournaments in the year 2007 that are categorized as "WTA Premier 5 tournaments," you would typically have a column that indicates the year a... | 48,574 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (tournament VARCHAR)\n\n Question: Which Tournament has a 2007 of wta premier 5 tournaments?\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (tournament VARCHAR)
Question: Which Tournament was played in NH in 2011?
Here is the SQLite query to answer to the question: Which Tournament was played i... | It looks like there is a misunderstanding in the given SQL query. The query should specify the conditions correctly to filter for tournaments that were played in New Hampshire (NH) in the year 2011. However, the current schema only shows a single column (`tournament`) and does not include columns for location or year. ... | 48,575 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (tournament VARCHAR)\n\n Question: Which Tournament was played in NH in 2011?\n\nHere is the SQLite query to answer ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (tournament VARCHAR)
Question: Which Tournament has a 2010 of 2r, and a 2011 of 1r?
Here is the SQLite query to answer to the question: Which Tournament ha... | It seems like the provided query contains some syntax issues. Typically, column names in a table should not use numbers directly as column names without quotation, and the `table_name_21` schema does not indicate that it contains columns for year values. Instead, you might need to create a proper table with the relevan... | 48,576 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (tournament VARCHAR)\n\n Question: Which Tournament has a 2010 of 2r, and a 2011 of 1r?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (first_issued INTEGER, color VARCHAR)
Question: When was Color of green first issued?
Here is the SQLite query to answer to the question: When was Color of... | Here's the SQLite query to answer the question "When was Color of green first issued?" based on the provided schema:
```
SELECT MIN(first_issued) FROM table_name_51 WHERE color = "green";
``` | 48,577 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (first_issued INTEGER, color VARCHAR)\n\n Question: When was Color of green first issued?\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (first_issued INTEGER, color VARCHAR)
Question: When was Color of green last issued?
Here is the SQLite query to answer to the question: When was Color of ... | Your SQLite query is correctly formulated to find the date when the color green was last issued. Here is the query wrapped in code formatting:
```
SELECT MAX(first_issued) FROM table_name_26 WHERE color = "green";
``` | 48,578 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (first_issued INTEGER, color VARCHAR)\n\n Question: When was Color of green last issued?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (reverse VARCHAR, color VARCHAR)
Question: What reverse has a color of green?
Here is the SQLite query to answer to the question: What reverse has a color ... | Here is the SQLite query to answer the question about what reverse has a color of green:
```
SELECT reverse FROM table_name_33 WHERE color = "green";
``` | 48,579 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (reverse VARCHAR, color VARCHAR)\n\n Question: What reverse has a color of green?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (value VARCHAR, first_issued VARCHAR, reverse VARCHAR)
Question: How much was a Reverse of guitar of agustín pío barrios before 1998?
Here is the SQLite que... | Your SQLite query has the correct structure but needs a slight adjustment for clarity. The `reverse` field should likely compare against the actual description of the reverse item rather than containing the phrase "guitar of agustín pío barrios", especially if you're looking for something more specific.
Assuming that ... | 48,580 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (value VARCHAR, first_issued VARCHAR, reverse VARCHAR)\n\n Question: How much was a Reverse of guitar of agustín pío ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (pick__number INTEGER, college VARCHAR)
Question: What is BYU's lowest pick?
Here is the SQLite query to answer to the question: What is BYU's lowest pick?... | Your provided SQLite query looks correct for finding BYU's lowest pick. However, just to ensure clarity and correctness, here’s the query wrapped in code format:
```
SELECT MIN(pick__number) FROM table_name_16 WHERE college = "byu";
```
This query will return the minimum `pick__number` for records where the `college... | 48,581 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (pick__number INTEGER, college VARCHAR)\n\n Question: What is BYU's lowest pick?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR)
Question: Which cornerback round has a pick number lower than 26 and an overall hig... | The query you provided has a small issue. Instead of returning the sum of the rounds, if you want to find the rounds of cornerbacks with a pick number lower than 26 and an overall higher than 41, you should be selecting the rounds specifically. Here is the corrected query:
```sql
SELECT round
FROM table_name_36
WHER... | 48,582 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_36 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR)\n\n Question: Which cornerback round has a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (overall VARCHAR, college VARCHAR)
Question: What is the overall number for the College of Wyoming?
Here is the SQLite query to answer to the question: What... | It looks like you want to retrieve the total count of entries for the College of Wyoming from the specified table. However, if you want to fetch the overall number specifically associated with Wyoming, the query should not use `COUNT(overall)`, as that would just count the number of records. Instead, you should select ... | 48,583 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (overall VARCHAR, college VARCHAR)\n\n Question: What is the overall number for the College of Wyoming?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (round VARCHAR, position VARCHAR, overall VARCHAR)
Question: What is the total round for a wide receiver with an overall of more than 145?
Here is the SQLit... | Here is the SQLite query to answer the question about the total rounds for a wide receiver with an overall of more than 145:
```
SELECT COUNT(round) FROM table_name_4 WHERE position = "wide receiver" AND overall > 145;
``` | 48,584 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (round VARCHAR, position VARCHAR, overall VARCHAR)\n\n Question: What is the total round for a wide receiver with an ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (pick__number VARCHAR, overall VARCHAR, college VARCHAR)
Question: What is College of Ohio State's pick number with an overall lower than 145?
Here is the ... | Here is the SQLite query to answer the question about Ohio State's pick number with an overall lower than 145:
```
SELECT pick__number FROM table_name_42 WHERE overall < '145' AND college = 'Ohio State';
``` | 48,585 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (pick__number VARCHAR, overall VARCHAR, college VARCHAR)\n\n Question: What is College of Ohio State's pick number w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (enrollment VARCHAR, _number___county VARCHAR, mascot VARCHAR)
Question: How many are enrolled at 49 Marion with the Warriors as their mascot?
Here is the ... | Here is the SQLite query to answer the question about how many are enrolled at 49 Marion with the Warriors as their mascot:
```
SELECT COUNT(enrollment) FROM table_name_74 WHERE _number___county = "49 Marion" AND mascot = "Warriors"
``` | 48,586 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (enrollment VARCHAR, _number___county VARCHAR, mascot VARCHAR)\n\n Question: How many are enrolled at 49 Marion with... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (location VARCHAR, school VARCHAR)
Question: Where is Terre Haute North located?
Here is the SQLite query to answer to the question: Where is Terre Haute N... | Here is the SQLite query to answer the question: Where is Terre Haute North located?:
```
SELECT location FROM table_name_35 WHERE school = "Terre Haute North";
``` | 48,587 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (location VARCHAR, school VARCHAR)\n\n Question: Where is Terre Haute North located?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (enrollment INTEGER, _number___county VARCHAR)
Question: What's the enrollment at 41 Johnson?
Here is the SQLite query to answer to the question: What's th... | To retrieve the enrollment at 41 Johnson from the given table, your SQL query should directly select the enrollment value corresponding to that address. Since you are looking for enrollment data, using `AVG()` is not necessary unless you are averaging multiple records. Here is the corrected query:
```sql
SELECT enroll... | 48,588 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (enrollment INTEGER, _number___county VARCHAR)\n\n Question: What's the enrollment at 41 Johnson?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (school VARCHAR, mascot VARCHAR)
Question: What school has the greyhounds as mascots?
Here is the SQLite query to answer to the question: What school has t... | Here is the SQLite query to answer the question: What school has the greyhounds as mascots?:
```
SELECT school FROM table_name_56 WHERE mascot = "greyhounds";
``` | 48,589 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (school VARCHAR, mascot VARCHAR)\n\n Question: What school has the greyhounds as mascots?\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (status VARCHAR, configuration VARCHAR, type VARCHAR)
Question: for type diesel-mechanical and configuration b-b, what is the status?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT status FROM table_name_4 WHERE configuration = "b-b" AND type = "diesel-mechanical";
``` | 48,590 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (status VARCHAR, configuration VARCHAR, type VARCHAR)\n\n Question: for type diesel-mechanical and configuration b-b,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (origin VARCHAR, versions VARCHAR)
Question: Where is the origin of the tth version?
Here is the SQLite query to answer to the question: Where is the origi... | Here is the SQLite query to answer the question "Where is the origin of the tth version?":
```sql
SELECT origin FROM table_name_37 WHERE versions = "tth";
``` | 48,591 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (origin VARCHAR, versions VARCHAR)\n\n Question: Where is the origin of the tth version?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (record VARCHAR, game VARCHAR)
Question: What is the record of game 7?
Here is the SQLite query to answer to the question: What is the record of game 7?:
``... | Your SQLite query is almost correct, but since `game` is typically a VARCHAR, you should wrap the value '7' in single quotes. Here's the corrected version:
```
SELECT record FROM table_name_4 WHERE game = '7'
```
This ensures proper matching against the varchar field. | 48,592 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (record VARCHAR, game VARCHAR)\n\n Question: What is the record of game 7?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (points INTEGER, october VARCHAR, game VARCHAR)
Question: What is the lowest number of points of the game before game 2 before October 10?
Here is the SQLi... | The SQLite query to find the lowest number of points of the game before game 2 and before October 10 is as follows:
```
SELECT MIN(points) FROM table_name_18 WHERE CAST(october AS INTEGER) < 10 AND CAST(game AS INTEGER) < 2
```
Make sure to cast the `october` and `game` fields to integers for proper numerical compar... | 48,593 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (points INTEGER, october VARCHAR, game VARCHAR)\n\n Question: What is the lowest number of points of the game before... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (opponent VARCHAR, date VARCHAR)
Question: what team played on july 9
Here is the SQLite query to answer to the question: what team played on july 9:
```
S... | Here is the SQLite query to answer the question about which team played on July 9:
```
SELECT opponent FROM table_name_72 WHERE date = "july 9";
``` | 48,594 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (opponent VARCHAR, date VARCHAR)\n\n Question: what team played on july 9\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)
Question: What is the party of re-elected, incumbent Charles H. Grosvenor, who was ... | Here's the SQLite query wrapped in the required code block:
```
SELECT party FROM table_name_3 WHERE result = "re-elected" AND first_elected < 1894 AND incumbent = "charles h. grosvenor";
``` | 48,595 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)\n\n Question: What is the party of re-elect... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (incumbent VARCHAR, district VARCHAR)
Question: Who was the incumbent from the Ohio 13 district?
Here is the SQLite query to answer to the question: Who wa... | Here is the SQLite query to answer the question about the incumbent from the Ohio 13 district:
```
SELECT incumbent FROM table_name_50 WHERE district = "Ohio 13";
``` | 48,596 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (incumbent VARCHAR, district VARCHAR)\n\n Question: Who was the incumbent from the Ohio 13 district?\n\nHere is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (party VARCHAR, first_elected VARCHAR, district VARCHAR)
Question: What is the party of the representative first elected in 1894 from the Ohio 16 district?
... | Here is the SQLite query to answer the question about the party of the representative first elected in 1894 from the Ohio 16 district:
```
SELECT party FROM table_name_22 WHERE first_elected = '1894' AND district = 'Ohio 16';
```
Note: Make sure to use quotes around the year and the district for proper string compar... | 48,597 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (party VARCHAR, first_elected VARCHAR, district VARCHAR)\n\n Question: What is the party of the representative first... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (score VARCHAR, opposition VARCHAR, year VARCHAR)
Question: What score has Leicestershire as the opponent after 1906?
Here is the SQLite query to answer to... | Your SQLite query looks good! Here it is wrapped in code format:
```
SELECT score FROM table_name_58 WHERE opposition = "leicestershire" AND year > 1906
```
This query will select the scores from the `table_name_58` where the opponent is "Leicestershire" and the year is greater than 1906. Note that you might want to... | 48,598 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (score VARCHAR, opposition VARCHAR, year VARCHAR)\n\n Question: What score has Leicestershire as the opponent after ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (venue VARCHAR, score VARCHAR, city VARCHAR)
Question: Where in Buxton has 3 runs?
Here is the SQLite query to answer to the question: Where in Buxton has ... | Here is the SQLite query to answer the question: Where in Buxton has 3 runs?:
```
SELECT venue FROM table_name_50 WHERE score = "3 runs" AND city = "buxton"
``` | 48,599 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (venue VARCHAR, score VARCHAR, city VARCHAR)\n\n Question: Where in Buxton has 3 runs?\n\nHere is the SQLite query t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.