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_92 (opponent VARCHAR, score VARCHAR)
Question: what team had a score of 2-1
Here is the SQLite query to answer to the question: what team had a score of 2-1:
... | Here is the SQLite query to answer the question about which team had a score of 2-1:
```
SELECT opponent FROM table_name_92 WHERE score = "2-1"
``` | 46,400 | [
{
"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_92 (opponent VARCHAR, score VARCHAR)\n\n Question: what team had a score of 2-1\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (opponent VARCHAR, date VARCHAR)
Question: what team played on may 11
Here is the SQLite query to answer to the question: what team played on may 11:
```
SE... | Here is the SQLite query to answer the question: what team played on May 11:
```
SELECT opponent FROM table_name_1 WHERE date = "may 11";
``` | 46,401 | [
{
"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 (opponent VARCHAR, date VARCHAR)\n\n Question: what team played on may 11\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (away VARCHAR, club VARCHAR)
Question: what place has the club of sevilla
Here is the SQLite query to answer to the question: what place has the club of se... | Here is the SQLite query to answer the question "what place has the club of Sevilla":
```
SELECT away FROM table_name_76 WHERE club = "sevilla";
``` | 46,402 | [
{
"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_76 (away VARCHAR, club VARCHAR)\n\n Question: what place has the club of sevilla\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_64 (new_conference VARCHAR, location VARCHAR)
Question: Which new conference is located in Greentown?
Here is the SQLite query to answer to the question: Whic... | Here is the SQLite query to answer the question about which new conference is located in Greentown:
```
SELECT new_conference FROM table_name_64 WHERE location = "Greentown";
``` | 46,403 | [
{
"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 (new_conference VARCHAR, location VARCHAR)\n\n Question: Which new conference is located in Greentown?\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_35 (year_joined INTEGER, previous_conference VARCHAR, location VARCHAR)
Question: What is the most current year with a previous conference of Mid-Indiana in Co... | Here is the SQLite query to answer the question regarding the most current year with a previous conference of Mid-Indiana in Converse:
```
SELECT MAX(year_joined) FROM table_name_35 WHERE previous_conference = "Mid-Indiana" AND location = "Converse";
``` | 46,404 | [
{
"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 (year_joined INTEGER, previous_conference VARCHAR, location VARCHAR)\n\n Question: What is the most current year wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (year_left INTEGER, location VARCHAR)
Question: What year did Culver leave?
Here is the SQLite query to answer to the question: What year did Culver leave?... | The provided SQLite query contains an incorrect aggregation function for the question asked. Since the question is asking for a specific year rather than a sum, we should use the `SELECT` statement directly. Here is the corrected query:
```
SELECT year_left FROM table_name_71 WHERE location = "culver";
``` | 46,405 | [
{
"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_71 (year_left INTEGER, location VARCHAR)\n\n Question: What year did Culver leave?\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_41 (mascot VARCHAR, _number___county VARCHAR)
Question: What is the mascot with a #/County of 34 Howard?
Here is the SQLite query to answer to the question: W... | Your SQLite query looks accurate for the specified question. Just to clarify, it retrieves the mascot associated with the entry for "#/County 34 Howard" in the table. Here it is wrapped in markdown format:
```
SELECT mascot FROM table_name_41 WHERE _number___county = "34 howard";
```
Make sure the casing and formatt... | 46,406 | [
{
"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 (mascot VARCHAR, _number___county VARCHAR)\n\n Question: What is the mascot with a #/County of 34 Howard?\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_87 (date VARCHAR, type_of_game VARCHAR, results¹ VARCHAR)
Question: What day was a friendly game held that had a score of 2:3?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the day a friendly game was held that had a score of 2:3:
```
SELECT date FROM table_name_87 WHERE type_of_game = "friendly" AND results¹ = "2:3"
``` | 46,407 | [
{
"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 (date VARCHAR, type_of_game VARCHAR, results¹ VARCHAR)\n\n Question: What day was a friendly game held that had a sc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (type_of_game VARCHAR, date VARCHAR)
Question: What type of game was held on December 22?
Here is the SQLite query to answer to the question: What type of ... | Here is the SQLite query to answer the question about what type of game was held on December 22:
```
SELECT type_of_game FROM table_name_57 WHERE date = "December 22";
``` | 46,408 | [
{
"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 (type_of_game VARCHAR, date VARCHAR)\n\n Question: What type of game was held on December 22?\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_92 (mixed_doubles VARCHAR, year VARCHAR)
Question: what game had a doubles round in 1979
Here is the SQLite query to answer to the question: what game had a d... | Here is the SQLite query to answer the question of what game had a doubles round in 1979:
```
SELECT mixed_doubles FROM table_name_92 WHERE year = '1979';
``` | 46,409 | [
{
"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_92 (mixed_doubles VARCHAR, year VARCHAR)\n\n Question: what game had a doubles round in 1979\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_74 (venue VARCHAR, goals VARCHAR, assists VARCHAR)
Question: Where were less than 72 goals made and more than 40 assists made?
Here is the SQLite query to ans... | The provided SQLite query is on the right track but requires a little adjustment because the `goals` and `assists` columns are defined as `VARCHAR`. To perform numeric comparisons, the values should be converted to integers. Here’s the corrected query:
```sql
SELECT venue
FROM table_name_74
WHERE CAST(goals AS INTEG... | 46,410 | [
{
"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 (venue VARCHAR, goals VARCHAR, assists VARCHAR)\n\n Question: Where were less than 72 goals made and more than 40 as... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (name VARCHAR, opponent VARCHAR)
Question: Which opponent plays against the Pohang Steelers?
Here is the SQLite query to answer to the question: Which oppo... | Here is the correct SQLite query to answer the question:
```
SELECT opponent FROM table_name_58 WHERE name = "Pohang Steelers";
``` | 46,411 | [
{
"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 (name VARCHAR, opponent VARCHAR)\n\n Question: Which opponent plays against the Pohang Steelers?\n\nHere is the SQLi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (competition VARCHAR, assists INTEGER)
Question: What competition had more than 40 assists?
Here is the SQLite query to answer to the question: What compet... | Your SQLite query is correct for answering the question about which competition had more than 40 assists. Here it is wrapped as you requested:
```
SELECT competition FROM table_name_19 WHERE assists > 40;
``` | 46,412 | [
{
"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 (competition VARCHAR, assists INTEGER)\n\n Question: What competition had more than 40 assists?\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_22 (nation VARCHAR, places VARCHAR)
Question: What Nation Placed 122.5?
Here is the SQLite query to answer to the question: What Nation Placed 122.5?:
```
SEL... | It seems there's a small mistake in your query regarding the type of the `places` column since it is defined as `VARCHAR`. You should compare it as a string. Here's the corrected SQLite query:
```
SELECT nation FROM table_name_22 WHERE places = '122.5'
```
This query will correctly retrieve the nation associated wit... | 46,413 | [
{
"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 (nation VARCHAR, places VARCHAR)\n\n Question: What Nation Placed 122.5?\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (places INTEGER, nation VARCHAR, rank VARCHAR)
Question: What is the Places amount of the United States Ranking 8?
Here is the SQLite query to answer to th... | The query you provided is intended to find the average of the `places` for the United States with a rank of 8, but you actually want the specific amount of places for that rank, not the average. Here's the corrected SQLite query:
```
SELECT places FROM table_name_71 WHERE nation = "united states" AND rank = 8;
```
T... | 46,414 | [
{
"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_71 (places INTEGER, nation VARCHAR, rank VARCHAR)\n\n Question: What is the Places amount of the United States Ranking ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (episode INTEGER, performer_4 VARCHAR)
Question: What is the average episode number where jimmy mulville was the 4th performer?
Here is the SQLite query to... | Here is the SQLite query you requested, wrapped in code formatting:
```
SELECT AVG(episode) FROM table_name_35 WHERE performer_4 = "jimmy mulville";
``` | 46,415 | [
{
"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 (episode INTEGER, performer_4 VARCHAR)\n\n Question: What is the average episode number where jimmy mulville was the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (episode VARCHAR, performer_3 VARCHAR)
Question: What is the total number of episodes where hugh laurie was the 3rd performer?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about the total number of episodes where Hugh Laurie was the 3rd performer:
```
SELECT COUNT(episode) FROM table_name_70 WHERE performer_3 = "hugh laurie";
``` | 46,416 | [
{
"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 (episode VARCHAR, performer_3 VARCHAR)\n\n Question: What is the total number of episodes where hugh laurie was the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (episode INTEGER, performer_4 VARCHAR)
Question: What is the lowest episode number where john bird was the 4th performer?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question about the lowest episode number where "john bird" was the 4th performer:
```
SELECT MIN(episode) FROM table_name_48 WHERE performer_4 = 'john bird';
``` | 46,417 | [
{
"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_48 (episode INTEGER, performer_4 VARCHAR)\n\n Question: What is the lowest episode number where john bird was the 4th p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (performer_3 VARCHAR, performer_4 VARCHAR)
Question: Who was the 3rd performer when Rory Bremner was the 4th performer?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question: Who was the 3rd performer when Rory Bremner was the 4th performer?:
```
SELECT performer_3 FROM table_name_11 WHERE performer_4 = "Rory Bremner";
``` | 46,418 | [
{
"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_11 (performer_3 VARCHAR, performer_4 VARCHAR)\n\n Question: Who was the 3rd performer when Rory Bremner was the 4th per... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (time___et__ VARCHAR, location VARCHAR, opponent VARCHAR)
Question: What time did the game featuring the Detroit Lions at Three Rivers Stadium occur?
Here ... | Here is the SQLite query to answer the question about the time of the game featuring the Detroit Lions at Three Rivers Stadium:
```
SELECT time___et__ FROM table_name_38 WHERE location = "Three Rivers Stadium" AND opponent = "Detroit Lions";
``` | 46,419 | [
{
"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 (time___et__ VARCHAR, location VARCHAR, opponent VARCHAR)\n\n Question: What time did the game featuring the Detroit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (successes INTEGER, launches VARCHAR, failures VARCHAR)
Question: What is the highest number of successful launches associated with over 1 launch and under ... | Your SQLite query looks generally correct, but it's important to note that since `failures` is likely a string type (as per your schema), the condition `failures < 0` may not work as expected since string comparisons differ from numeric comparisons.
To properly filter conditions for launches and failures while ensurin... | 46,420 | [
{
"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 (successes INTEGER, launches VARCHAR, failures VARCHAR)\n\n Question: What is the highest number of successful launc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (locomotive_type VARCHAR, name VARCHAR)
Question: What kind of locomotive is Winston Churchill?
Here is the SQLite query to answer to the question: What ki... | Here is the SQLite query to answer the question about what kind of locomotive Winston Churchill is:
```
SELECT locomotive_type FROM table_name_93 WHERE name = "Winston Churchill"
``` | 46,421 | [
{
"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 (locomotive_type VARCHAR, name VARCHAR)\n\n Question: What kind of locomotive is Winston Churchill?\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_49 (drawn VARCHAR, against VARCHAR, points VARCHAR, lost VARCHAR)
Question: How many draws were there when there were points less than 23, 6 losses, and more t... | Your SQLite query is almost correct, but the condition for "against" should compare it as an integer, since it is likely stored as a VARCHAR. You will need to cast or convert it to an integer for the comparison. Here is the corrected query:
```sql
SELECT COUNT(drawn)
FROM table_name_49
WHERE points < 23 AND lost = '... | 46,422 | [
{
"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 (drawn VARCHAR, against VARCHAR, points VARCHAR, lost VARCHAR)\n\n Question: How many draws were there when there we... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR)
Question: What is the smallest amount of draws when the position is less than 7 and the against is 19?
H... | Here is the SQLite query to find the smallest amount of draws when the position is less than 7 and the against is 19:
```
SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19
``` | 46,423 | [
{
"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 (drawn INTEGER, position VARCHAR, against VARCHAR)\n\n Question: What is the smallest amount of draws when the posit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (played INTEGER, team VARCHAR)
Question: What is the highest amount of plays for fluminense?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question about the highest amount of plays for Fluminense:
```
SELECT MAX(played) FROM table_name_97 WHERE team = "fluminense";
``` | 46,424 | [
{
"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_97 (played INTEGER, team VARCHAR)\n\n Question: What is the highest amount of plays for fluminense?\n\nHere is the SQLi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (points INTEGER, lost VARCHAR, against VARCHAR)
Question: What is the least amount of points when there were less than 4 losses and less than 16 against?
H... | Your SQLite query is well-structured, but it seems to have a confusion regarding the data types of the columns `lost` and `against`. Since `lost` is defined as a VARCHAR, you'll need to convert it to an integer for comparison. Here’s the corrected query:
```sql
SELECT MIN(points)
FROM table_name_43
WHERE CAST(lost A... | 46,425 | [
{
"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 (points INTEGER, lost VARCHAR, against VARCHAR)\n\n Question: What is the least amount of points when there were les... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (developer VARCHAR, publisher VARCHAR)
Question: Who does Rockstar Games use as a developer?
Here is the SQLite query to answer to the question: Who does R... | Here is the SQLite query to answer the question: Who does Rockstar Games use as a developer?:
```
SELECT developer FROM table_name_97 WHERE publisher = "Rockstar Games";
``` | 46,426 | [
{
"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_97 (developer VARCHAR, publisher VARCHAR)\n\n Question: Who does Rockstar Games use as a developer?\n\nHere is the SQLi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (release_date VARCHAR, publisher VARCHAR, title VARCHAR)
Question: When Did Microsoft Game Studios release Amped: Freestyle Snowboarding?
Here is the SQLit... | Here is the SQLite query that answers the question regarding the release date of "Amped: Freestyle Snowboarding" by Microsoft Game Studios:
```
SELECT release_date FROM table_name_18 WHERE publisher = "Microsoft Game Studios" AND title = "Amped: Freestyle Snowboarding";
``` | 46,427 | [
{
"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 (release_date VARCHAR, publisher VARCHAR, title VARCHAR)\n\n Question: When Did Microsoft Game Studios release Amped... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
Question: Which Score has a Home of quebec nordiques, and a Visitor of vancouver blazers on feb... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_52 WHERE home = "quebec nordiques" AND visitor = "vancouver blazers" AND date = "february 28"
``` | 46,428 | [
{
"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 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)\n\n Question: Which Score has a Home of quebec nordique... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR)
Question: When has a Visitor of new england whalers, and a Record of 9–9–1? Question 2
Here is the SQLite qu... | Here is the SQLite query to answer the question about when a visitor of "new england whalers" had a record of "9–9–1":
```sql
SELECT date FROM table_name_5 WHERE visitor = "new england whalers" AND record = "9–9–1";
``` | 46,429 | [
{
"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 (date VARCHAR, visitor VARCHAR, record VARCHAR)\n\n Question: When has a Visitor of new england whalers, and a Record... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (home VARCHAR, record VARCHAR, visitor VARCHAR, score VARCHAR)
Question: Which Home has a Visitor of quebec nordiques, and a Score of 3–4, and a Record of 8... | Here is the SQLite query to answer the question:
```
SELECT home FROM table_name_62 WHERE visitor = "quebec nordiques" AND score = "3–4" AND record = "8–8–1"
``` | 46,430 | [
{
"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_62 (home VARCHAR, record VARCHAR, visitor VARCHAR, score VARCHAR)\n\n Question: Which Home has a Visitor of quebec nord... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (score VARCHAR, record VARCHAR)
Question: WHich Score has a Record of 31–28–3?
Here is the SQLite query to answer to the question: WHich Score has a Record... | Here is the SQLite query to answer the question "Which Score has a Record of 31–28–3?":
```
SELECT score FROM table_name_16 WHERE record = "31–28–3";
``` | 46,431 | [
{
"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 (score VARCHAR, record VARCHAR)\n\n Question: WHich Score has a Record of 31–28–3?\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_94 (date VARCHAR, score VARCHAR, record VARCHAR)
Question: When has Score of 4–5, and a Record of 21–21–3?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question:
```
SELECT date FROM table_name_94 WHERE score = "4–5" AND record = "21–21–3"
``` | 46,432 | [
{
"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 (date VARCHAR, score VARCHAR, record VARCHAR)\n\n Question: When has Score of 4–5, and a Record of 21–21–3?\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_69 (score VARCHAR, record VARCHAR)
Question: What is the Score of a Record 24–23–3?
Here is the SQLite query to answer to the question: What is the Score of a... | Here is the SQLite query to answer the question: What is the Score of a Record 24–23–3?:
```
SELECT score FROM table_name_69 WHERE record = '24–23–3';
``` | 46,433 | [
{
"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_69 (score VARCHAR, record VARCHAR)\n\n Question: What is the Score of a Record 24–23–3?\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 (games VARCHAR, event VARCHAR, medal VARCHAR)
Question: During which games did Tunisia win gold in the men's 5000 m?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding when Tunisia won gold in the men's 5000 m:
```
SELECT games FROM table_name_24 WHERE event = "men's 5000 m" AND medal = "gold" AND games LIKE "%Tunisia%"
```
Make sure to adjust the `WHERE` clause if necessary depending on how the data is represented in the d... | 46,434 | [
{
"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 (games VARCHAR, event VARCHAR, medal VARCHAR)\n\n Question: During which games did Tunisia win gold in the men's 500... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (medal VARCHAR, event VARCHAR, games VARCHAR)
Question: What medal was won in the men's light welterweight event at the 1996 Atlanta games?
Here is the SQL... | Here is the SQLite query to answer the question about what medal was won in the men's light welterweight event at the 1996 Atlanta games:
```
SELECT medal FROM table_name_68 WHERE event = "men's light welterweight" AND games = "1996 atlanta";
``` | 46,435 | [
{
"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 (medal VARCHAR, event VARCHAR, games VARCHAR)\n\n Question: What medal was won in the men's light welterweight event... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (games VARCHAR, medal VARCHAR, event VARCHAR)
Question: At which games did Tunisia win a bronze in the men's 1500 m freestyle?
Here is the SQLite query to ... | Here is the SQLite query to answer your question:
```
SELECT games FROM table_name_59 WHERE medal = 'bronze' AND event = 'men\'s 1500 m freestyle';
``` | 46,436 | [
{
"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 (games VARCHAR, medal VARCHAR, event VARCHAR)\n\n Question: At which games did Tunisia win a bronze in the men's 150... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (medal VARCHAR, event VARCHAR)
Question: What medal was won in the men's 5000 m event?
Here is the SQLite query to answer to the question: What medal was w... | Your SQLite query is correctly formulated to retrieve the medal won in the men's 5000 m event. Here it is formatted as requested:
```
SELECT medal FROM table_name_53 WHERE event = "men's 5000 m";
``` | 46,437 | [
{
"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_53 (medal VARCHAR, event VARCHAR)\n\n Question: What medal was won in the men's 5000 m event?\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_9 (draw VARCHAR, artist VARCHAR, points VARCHAR)
Question: What is the draw with less than 107 points by the artist Jan Johansen?
Here is the SQLite query to ... | The query you provided counts the number of draws by the artist Jan Johansen with less than 107 points. To find the specific draw(s) instead, you would want to select the draw(s) directly. Here's the corrected SQLite query:
```
SELECT draw FROM table_name_9 WHERE artist = "jan johansen" AND points < 107;
```
This qu... | 46,438 | [
{
"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 (draw VARCHAR, artist VARCHAR, points VARCHAR)\n\n Question: What is the draw with less than 107 points by the artist... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (year INTEGER, points VARCHAR, class VARCHAR, team VARCHAR)
Question: In what Year did the Norton Team have 0 Points and 350cc Class?
Here is the SQLite qu... | It seems like there is a small mistake in the provided query, as it checks for points to be less than 0, while the question specifies 0 points. Also, it is not necessary to calculate the average of the years; instead, you should simply select the year or years that meet the criteria. Here is the corrected SQLite query:... | 46,439 | [
{
"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 (year INTEGER, points VARCHAR, class VARCHAR, team VARCHAR)\n\n Question: In what Year did the Norton Team have 0 Po... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (wins INTEGER, year VARCHAR, points VARCHAR)
Question: What is the Wins before 1960 with less than 2 Points?
Here is the SQLite query to answer to the ques... | Here is the corrected SQLite query to answer the question about the total wins before 1960 with less than 2 points:
```sql
SELECT SUM(wins) FROM table_name_47 WHERE year < '1960' AND points < '2'
```
Note that I've enclosed the year and points in single quotes since they are stored as VARCHAR in the schema. | 46,440 | [
{
"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_47 (wins INTEGER, year VARCHAR, points VARCHAR)\n\n Question: What is the Wins before 1960 with less than 2 Points?\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_86 (year INTEGER, points VARCHAR, wins VARCHAR, team VARCHAR)
Question: What was the earliest Year the Linto Team had less than 15 Points with more than 0 Wins... | Here is the SQLite query to answer your question about the earliest year the Linto Team had less than 15 points with more than 0 wins:
```
SELECT MIN(year)
FROM table_name_86
WHERE wins > 0 AND team = "linto" AND points < 15
``` | 46,441 | [
{
"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_86 (year INTEGER, points VARCHAR, wins VARCHAR, team VARCHAR)\n\n Question: What was the earliest Year the Linto Team h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (points_for VARCHAR, points_against VARCHAR)
Question: What were the points for a team that 414 points against?
Here is the SQLite query to answer to the q... | Your SQLite query looks correct for the given question. Here it is wrapped in code format as requested:
```
SELECT points_for FROM table_name_52 WHERE points_against = "414";
``` | 46,442 | [
{
"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 (points_for VARCHAR, points_against VARCHAR)\n\n Question: What were the points for a team that 414 points against?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (played VARCHAR, drawn VARCHAR, tries_for VARCHAR)
Question: Who was the player that had drawn 1 and tried for 20?
Here is the SQLite query to answer to th... | Your SQLite query to find the player who had drawn 1 and tried for 20 is correct. Here's the query wrapped in the specified format:
```
SELECT played FROM table_name_76 WHERE drawn = "1" AND tries_for = "20"
``` | 46,443 | [
{
"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_76 (played VARCHAR, drawn VARCHAR, tries_for VARCHAR)\n\n Question: Who was the player that had drawn 1 and tried for 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (points_for VARCHAR, points_against VARCHAR)
Question: What were the points for that had a game where there was 678 against?
Here is the SQLite query to an... | The SQLite query to answer the question "What were the points for that had a game where there was 678 against?" is as follows:
```
SELECT points_for FROM table_name_78 WHERE points_against = '678';
``` | 46,444 | [
{
"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 (points_for VARCHAR, points_against VARCHAR)\n\n Question: What were the points for that had a game where there was ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (points_against VARCHAR, played VARCHAR)
Question: What were the points against in a game that was played correct as of 2009-05-16?
Here is the SQLite quer... | Here is the SQLite query to answer your question about the points against in a game that was played "correct as of 2009-05-16":
```
SELECT points_against FROM table_name_99 WHERE played = 'correct as of 2009-05-16';
``` | 46,445 | [
{
"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_99 (points_against VARCHAR, played VARCHAR)\n\n Question: What were the points against in a game that was played correc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (tries_against VARCHAR, club VARCHAR)
Question: What was the tries again llanishen rfc?
Here is the SQLite query to answer to the question: What was the tr... | Here is the SQLite query to answer the question about the tries against Llanishen RFC:
```
SELECT tries_against FROM table_name_35 WHERE club = "llanishen rfc"
``` | 46,446 | [
{
"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 (tries_against VARCHAR, club VARCHAR)\n\n Question: What was the tries again llanishen rfc?\n\nHere is the SQLite qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (drawn VARCHAR, club VARCHAR)
Question: What was drawn for llanishen rfc?
Here is the SQLite query to answer to the question: What was drawn for llanishen ... | Here is the SQLite query to answer the question: What was drawn for llanishen rfc?:
```
SELECT drawn FROM table_name_56 WHERE club = "llanishen rfc"
``` | 46,447 | [
{
"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 (drawn VARCHAR, club VARCHAR)\n\n Question: What was drawn for llanishen rfc?\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_25 (district INTEGER, republican VARCHAR)
Question: Which District has a Republican of dan mansell?
Here is the SQLite query to answer to the question: Which ... | The query you provided is attempting to calculate the average of the district numbers for those entries where the republican is "dan mansell." However, the question asks for the district(s) associated with a Republican named "dan mansell," not an average.
Here's the correct SQLite query to find the district(s) where t... | 46,448 | [
{
"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_25 (district INTEGER, republican VARCHAR)\n\n Question: Which District has a Republican of dan mansell?\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_26 (republican VARCHAR, district VARCHAR)
Question: Which Republican has a District of 10?
Here is the SQLite query to answer to the question: Which Republica... | Here is the SQLite query to answer the question: Which Republican has a District of 10?:
```
SELECT republican FROM table_name_26 WHERE district = '10';
``` | 46,449 | [
{
"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 (republican VARCHAR, district VARCHAR)\n\n Question: Which Republican has a District of 10?\n\nHere is the SQLite qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (incumbent VARCHAR, republican VARCHAR)
Question: Which Incumbent has a Republican of dan mansell?
Here is the SQLite query to answer to the question: Whic... | Here is the SQLite query to answer the question:
```
SELECT incumbent FROM table_name_73 WHERE republican = "dan mansell";
``` | 46,450 | [
{
"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_73 (incumbent VARCHAR, republican VARCHAR)\n\n Question: Which Incumbent has a Republican of dan mansell?\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_99 (democratic VARCHAR, district VARCHAR, republican VARCHAR)
Question: Which Democratic has a District smaller than 7, and a Republican of dan mansell?
Here ... | Your SQLite query looks good, but there is a minor adjustment needed regarding the comparison of the "district" field. The "district" column is defined as a `VARCHAR`, so you need to ensure you are comparing it as a number to check if it's smaller than 7. You can achieve this by casting the "district" to an integer. He... | 46,451 | [
{
"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_99 (democratic VARCHAR, district VARCHAR, republican VARCHAR)\n\n Question: Which Democratic has a District smaller tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (record VARCHAR, score VARCHAR)
Question: Which record has a score of 135–134?
Here is the SQLite query to answer to the question: Which record has a score ... | Here's the SQLite query to find which record has a score of 135–134:
```
SELECT record FROM table_name_7 WHERE score = "135–134"
``` | 46,452 | [
{
"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 (record VARCHAR, score VARCHAR)\n\n Question: Which record has a score of 135–134?\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_80 (position VARCHAR, date_of_birth__age_ VARCHAR)
Question: Name the position for the player born 2 november 1987
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question: Name the position for the player born 2 November 1987:
```
SELECT position FROM table_name_80 WHERE date_of_birth__age_ = "2 November 1987"
``` | 46,453 | [
{
"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 (position VARCHAR, date_of_birth__age_ VARCHAR)\n\n Question: Name the position for the player born 2 november 1987\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (club_province VARCHAR, player VARCHAR)
Question: Name the club/province for steve borthwick
Here is the SQLite query to answer to the question: Name the c... | Here is the SQLite query to answer the question: Name the club/province for steve borthwick:
```
SELECT club_province FROM table_name_51 WHERE player = "steve borthwick"
``` | 46,454 | [
{
"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 (club_province VARCHAR, player VARCHAR)\n\n Question: Name the club/province for steve borthwick\n\nHere is the SQLi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (ratio INTEGER, ordinary_value VARCHAR)
Question: What is the largest ration with an ordinary value of 84 zolotnik?
Here is the SQLite query to answer to t... | Your provided SQLite query is correct for retrieving the largest ratio with an ordinary value of "84 zolotnik". Here it is wrapped in the requested format:
```
SELECT MAX(ratio) FROM table_name_85 WHERE ordinary_value = "84 zolotnik";
``` | 46,455 | [
{
"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 (ratio INTEGER, ordinary_value VARCHAR)\n\n Question: What is the largest ration with an ordinary value of 84 zolotn... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (unit VARCHAR, avoirdupois_value VARCHAR)
Question: What unit has an Avoirdupois value of 57.602 gr.?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question regarding which unit has an Avoirdupois value of 57.602 gr.:
```
SELECT unit FROM table_name_9 WHERE avoirdupois_value = "57.602 gr."
``` | 46,456 | [
{
"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 (unit VARCHAR, avoirdupois_value VARCHAR)\n\n Question: What unit has an Avoirdupois value of 57.602 gr.?\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_10 (translation VARCHAR, unit VARCHAR)
Question: Which translation had a unit of Uncia?
Here is the SQLite query to answer to the question: Which translation ... | Here is the SQLite query to answer the question: Which translation had a unit of Uncia?:
```
SELECT translation FROM table_name_10 WHERE unit = "Uncia";
``` | 46,457 | [
{
"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 (translation VARCHAR, unit VARCHAR)\n\n Question: Which translation had a unit of Uncia?\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_56 (ordinary_value VARCHAR, metric_value VARCHAR)
Question: What ordinary value has a metric value of 29.861 g?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question: What ordinary value has a metric value of 29.861 g?:
```
SELECT ordinary_value FROM table_name_56 WHERE metric_value = "29.861 g";
``` | 46,458 | [
{
"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 (ordinary_value VARCHAR, metric_value VARCHAR)\n\n Question: What ordinary value has a metric value of 29.861 g?\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_64 (ordinary_value VARCHAR, russian VARCHAR)
Question: Which ordinary value has a Russian value of унция?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding which ordinary value has a Russian value of унция:
```
SELECT ordinary_value FROM table_name_64 WHERE russian = "унция";
``` | 46,459 | [
{
"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 (ordinary_value VARCHAR, russian VARCHAR)\n\n Question: Which ordinary value has a Russian value of унция?\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_76 (avoirdupois_value VARCHAR, translation VARCHAR)
Question: Which Avoirdupois value is translated to grain?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question regarding which Avoirdupois value is translated to grain:
```
SELECT avoirdupois_value FROM table_name_76 WHERE translation = "grain";
``` | 46,460 | [
{
"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_76 (avoirdupois_value VARCHAR, translation VARCHAR)\n\n Question: Which Avoirdupois value is translated to grain?\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_35 (turns VARCHAR, city VARCHAR)
Question: What is the number of turns for the City of san antonio?
Here is the SQLite query to answer to the question: What i... | To count the number of turns for the City of San Antonio, you can use the following SQLite query:
```
SELECT COUNT(turns) AS number_of_turns FROM table_name_35 WHERE city = "san antonio";
``` | 46,461 | [
{
"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 (turns VARCHAR, city VARCHAR)\n\n Question: What is the number of turns for the City of san antonio?\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_23 (state VARCHAR, major_series VARCHAR, track VARCHAR)
Question: What is the State with the imsa gt as the Major Series and a track in new orleans?
Here is t... | Here is the SQLite query to answer the question regarding the state with "imsa gt" as the Major Series and a track in "new orleans":
```
SELECT state FROM table_name_23 WHERE major_series = "imsa gt" AND track = "new orleans"
``` | 46,462 | [
{
"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_23 (state VARCHAR, major_series VARCHAR, track VARCHAR)\n\n Question: What is the State with the imsa gt as the Major S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (track VARCHAR, turns VARCHAR)
Question: Where is the track located with 18 turns?
Here is the SQLite query to answer to the question: Where is the track l... | Here is the SQLite query to answer the question: Where is the track located with 18 turns?:
```
SELECT track FROM table_name_34 WHERE turns = '18';
``` | 46,463 | [
{
"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_34 (track VARCHAR, turns VARCHAR)\n\n Question: Where is the track located with 18 turns?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (state VARCHAR, major_series VARCHAR, city VARCHAR)
Question: What is the State with the trans-am Major Series in Grand Rapids?
Here is the SQLite query to... | Here is the SQLite query to answer the question about the State with the trans-am Major Series in Grand Rapids:
```
SELECT state FROM table_name_38 WHERE major_series = 'trans-am' AND city = 'Grand Rapids';
``` | 46,464 | [
{
"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 (state VARCHAR, major_series VARCHAR, city VARCHAR)\n\n Question: What is the State with the trans-am Major Series i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (track VARCHAR, opened VARCHAR)
Question: Where is the track located that opened in 1992?
Here is the SQLite query to answer to the question: Where is the ... | Here is the SQLite query to answer the question of where the track is located that opened in 1992:
```sql
SELECT track FROM table_name_34 WHERE opened = "1992";
``` | 46,465 | [
{
"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_34 (track VARCHAR, opened VARCHAR)\n\n Question: Where is the track located that opened in 1992?\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_84 (opened VARCHAR, major_series VARCHAR)
Question: What shows for opened for the Nascar Major Series?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding what shows are opened for the Nascar Major Series:
```
SELECT opened FROM table_name_84 WHERE major_series = "nascar";
``` | 46,466 | [
{
"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 (opened VARCHAR, major_series VARCHAR)\n\n Question: What shows for opened for the Nascar Major Series?\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_69 (fa_cup INTEGER, malaysia_cup INTEGER)
Question: What is the lowest number of FA cups associated with 0 malaysia cups?
Here is the SQLite query to answer t... | The query you provided doesn't correctly address the question of finding the lowest number of FA cups associated with 0 Malaysia cups. The condition should specifically check for `malaysia_cup = 0` instead of `malaysia_cup < 0`.
Here’s the correct SQLite query:
```
SELECT MIN(fa_cup) FROM table_name_69 WHERE malaysi... | 46,467 | [
{
"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_69 (fa_cup INTEGER, malaysia_cup INTEGER)\n\n Question: What is the lowest number of FA cups associated with 0 malaysia... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (league INTEGER, player VARCHAR, total VARCHAR)
Question: How many league cups for m patrick maria with 0 total?
Here is the SQLite query to answer to the ... | The SQLite query you provided has a small error regarding the condition in the WHERE clause. The condition should check for equality with zero instead of checking for less than zero. Here's the corrected query to count the league cups for "m patrick maria" with a total of 0:
```sql
SELECT SUM(league) FROM table_name_9... | 46,468 | [
{
"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_96 (league INTEGER, player VARCHAR, total VARCHAR)\n\n Question: How many league cups for m patrick maria with 0 total?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (malaysia_cup INTEGER, league VARCHAR, fa_cup VARCHAR)
Question: What is the highest number of Malaysia Cups for a player with over 0 leagues and under 0 FA... | Your provided SQLite query looks good and accurately answers the question. Here it is wrapped properly:
```
SELECT MAX(malaysia_cup) FROM table_name_16 WHERE league > 0 AND fa_cup < 0;
```
This query selects the maximum value of `malaysia_cup` from the `table_name_16` table, filtering for rows where the `league` cou... | 46,469 | [
{
"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 (malaysia_cup INTEGER, league VARCHAR, fa_cup VARCHAR)\n\n Question: What is the highest number of Malaysia Cups for... | |
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, host VARCHAR, date VARCHAR)
Question: What is the tournament on July 29 hosted by SK Brann?
Here is the SQLite query to answer to the q... | Here's the SQLite query to answer the question about the tournament on July 29 hosted by SK Brann:
```
SELECT tournament FROM table_name_5 WHERE host = "SK Brann" AND date = "July 29";
``` | 46,470 | [
{
"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, host VARCHAR, date VARCHAR)\n\n Question: What is the tournament on July 29 hosted by SK Brann?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (visitor VARCHAR, date VARCHAR)
Question: Who is the visitor of the match on July 29?
Here is the SQLite query to answer to the question: Who is the visito... | Here's the SQLite query to find the visitor of the match on July 29:
```
SELECT visitor FROM table_name_13 WHERE date = "July 29";
``` | 46,471 | [
{
"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_13 (visitor VARCHAR, date VARCHAR)\n\n Question: Who is the visitor of the match on July 29?\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_72 (result VARCHAR, opponent VARCHAR)
Question: What is the game that has the phoenix suns as the opponent played against?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the game that has the Phoenix Suns as the opponent:
```
SELECT result FROM table_name_72 WHERE opponent = "phoenix suns"
``` | 46,472 | [
{
"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 (result VARCHAR, opponent VARCHAR)\n\n Question: What is the game that has the phoenix suns as the opponent played a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
Question: What is the attendance of the game on 2007-04-07 with the Warriors as the visitor team?
Here i... | Here is the SQLite query to answer the question regarding the attendance of the game on 2007-04-07 with the Warriors as the visitor team:
```
SELECT attendance FROM table_name_4 WHERE visitor = "Warriors" AND date = "2007-04-07"
``` | 46,473 | [
{
"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 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)\n\n Question: What is the attendance of the game on 2007-04-07 wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR)
Question: What day is their record 13-15?
Here is the SQLite query to answer to the question: What day is their record 13-15... | Your SQLite query to find the day for the record "13-15" is correct. Here it is wrapped in the specified format:
```
SELECT date FROM table_name_14 WHERE record = "13-15";
```
This query will return the date associated with the record "13-15" from the `table_name_14` table. | 46,474 | [
{
"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_14 (date VARCHAR, record VARCHAR)\n\n Question: What day is their record 13-15?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (opponent VARCHAR, loss VARCHAR)
Question: Who did they play when dickey (0-1) recorded the loss?
Here is the SQLite query to answer to the question: Who d... | Your SQLite query is correct for retrieving the opponent based on the specified loss record. Here it is properly wrapped:
```
SELECT opponent FROM table_name_83 WHERE loss = "dickey (0-1)"
``` | 46,475 | [
{
"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_83 (opponent VARCHAR, loss VARCHAR)\n\n Question: Who did they play when dickey (0-1) recorded the loss?\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_14 (result VARCHAR, game_site VARCHAR, record VARCHAR)
Question: What is the result of the game of heinz field with a record of 2-5?
Here is the SQLite query ... | Here is the SQLite query to answer the question about the result of the game at Heinz Field with a record of 2-5:
```
SELECT result FROM table_name_14 WHERE game_site = "heinz field" AND record = "2-5";
``` | 46,476 | [
{
"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_14 (result VARCHAR, game_site VARCHAR, record VARCHAR)\n\n Question: What is the result of the game of heinz field with... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (opponent VARCHAR, record VARCHAR)
Question: What opponent has a record of 6-9?
Here is the SQLite query to answer to the question: What opponent has a rec... | Here is the SQLite query to answer the question about which opponent has a record of 6-9:
```
SELECT opponent FROM table_name_27 WHERE record = "6-9";
``` | 46,477 | [
{
"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_27 (opponent VARCHAR, record VARCHAR)\n\n Question: What opponent has a record of 6-9?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (week VARCHAR, record VARCHAR)
Question: What is the week with a record of 2-1?
Here is the SQLite query to answer to the question: What is the week with a... | The provided query calculates the count of weeks with a record of "2-1", but the question specifically asks for the week(s) associated with that record. To retrieve the week(s) instead, you would use the following query:
```
SELECT week FROM table_name_56 WHERE record = "2-1"
```
This query will return the weeks whe... | 46,478 | [
{
"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 (week VARCHAR, record VARCHAR)\n\n Question: What is the week with a record of 2-1?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
Question: What City of license has a Frequency MHz smaller than 95.9 with w223au as the ... | Here is the SQLite query to answer the question regarding the city of license with a frequency in MHz smaller than 95.9 and the call sign "w223au":
```sql
SELECT city_of_license FROM table_name_43 WHERE frequency_mhz < 95.9 AND call_sign = 'w223au';
``` | 46,479 | [
{
"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 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)\n\n Question: What City of license has a Frequen... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (call_sign VARCHAR, erp_w VARCHAR)
Question: What is the Call sign for the ERP W 19?
Here is the SQLite query to answer to the question: What is the Call s... | Here is the corrected SQLite query to answer the question about the Call sign for the ERP W 19:
```sql
SELECT call_sign FROM table_name_75 WHERE erp_w = '19'
```
Please note that `erp_w` might be a string type based on the context of the data, so it's wrapped in single quotes. If it's indeed a numeric type, your ori... | 46,480 | [
{
"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 (call_sign VARCHAR, erp_w VARCHAR)\n\n Question: What is the Call sign for the ERP W 19?\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_96 (fcc_info VARCHAR, erp_w VARCHAR)
Question: What FCC info is listed for the ERP W of 2?
Here is the SQLite query to answer to the question: What FCC info i... | Here is the SQLite query to answer the question about what FCC info is listed for the ERP W of 2:
```
SELECT fcc_info FROM table_name_96 WHERE erp_w = '2'
```
(Note: The value '2' is enclosed in quotes because it is a VARCHAR column in the schema.) | 46,481 | [
{
"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_96 (fcc_info VARCHAR, erp_w VARCHAR)\n\n Question: What FCC info is listed for the ERP W of 2?\n\nHere is the SQLite qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (call_sign VARCHAR, erp_w VARCHAR)
Question: What Call sign shows an ERP W of 80?
Here is the SQLite query to answer to the question: What Call sign shows ... | Here is the SQLite query to answer the question: What Call sign shows an ERP W of 80?:
```
SELECT call_sign FROM table_name_93 WHERE erp_w = 80
``` | 46,482 | [
{
"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 (call_sign VARCHAR, erp_w VARCHAR)\n\n Question: What Call sign shows an ERP W of 80?\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_50 (class VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
Question: What is the Class for the ERP W of more than 2 and the call sign of w223au?
Here is the SQLite ... | Here is the SQLite query to answer the question regarding the Class for the ERP W of more than 2 and the call sign of w223au:
```sql
SELECT class FROM table_name_50 WHERE erp_w > 2 AND call_sign = "w223au";
``` | 46,483 | [
{
"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 (class VARCHAR, erp_w VARCHAR, call_sign VARCHAR)\n\n Question: What is the Class for the ERP W of more than 2 and t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (loss VARCHAR, date VARCHAR)
Question: what team lost on july 30
Here is the SQLite query to answer to the question: what team lost on july 30:
```
SELECT ... | Here's the SQLite query to answer the question about which team lost on July 30:
```sql
SELECT loss FROM table_name_23 WHERE date = "july 30";
``` | 46,484 | [
{
"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_23 (loss VARCHAR, date VARCHAR)\n\n Question: what team lost on july 30\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_21 (sport VARCHAR, date VARCHAR)
Question: What sport was played on February 25, 2011?
Here is the SQLite query to answer to the question: What sport was play... | Here is the SQLite query to answer the question about what sport was played on February 25, 2011:
```
SELECT sport FROM table_name_21 WHERE date = "February 25, 2011";
``` | 46,485 | [
{
"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 (sport VARCHAR, date VARCHAR)\n\n Question: What sport was played on February 25, 2011?\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_55 (site VARCHAR, date VARCHAR)
Question: Where was the sport played on September 10, 2010?
Here is the SQLite query to answer to the question: Where was the ... | Here is the SQLite query to answer the question: Where was the sport played on September 10, 2010?:
```
SELECT site FROM table_name_55 WHERE date = "September 10, 2010";
``` | 46,486 | [
{
"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_55 (site VARCHAR, date VARCHAR)\n\n Question: Where was the sport played on September 10, 2010?\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_88 (surface VARCHAR, partner VARCHAR, date VARCHAR)
Question: What type of surface was played on when julie halard-decugis was the partner on October 8, 2000?
... | Here is the SQLite query to answer the question:
```sql
SELECT surface FROM table_name_88 WHERE partner = "julie halard-decugis" AND date = "october 8, 2000";
``` | 46,487 | [
{
"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 (surface VARCHAR, partner VARCHAR, date VARCHAR)\n\n Question: What type of surface was played on when julie halard-... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (played VARCHAR, wins VARCHAR, _percentage_win VARCHAR, losses VARCHAR)
Question: How many Played has a % Win of 50.00%, and Losses of 1, and Wins smaller t... | Your SQLite query looks mostly correct, but there are a few adjustments needed for optimal performance and accuracy, especially regarding data types and formatting. Here's the refined version of the query:
```
SELECT COUNT(played)
FROM table_name_84
WHERE _percentage_win = '50.00%' AND losses = '1' AND wins < '1'
``... | 46,488 | [
{
"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 (played VARCHAR, wins VARCHAR, _percentage_win VARCHAR, losses VARCHAR)\n\n Question: How many Played has a % Win of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (no_result VARCHAR, wins VARCHAR, losses VARCHAR)
Question: WHAT kind of No Result has Wins smaller than 2, and Losses larger than 1?
Here is the SQLite que... | The SQLite query to answer the question about what kind of "No Result" has Wins smaller than 2 and Losses larger than 1 is as follows:
```
SELECT no_result FROM table_name_2 WHERE CAST(wins AS INTEGER) < 2 AND CAST(losses AS INTEGER) > 1;
``` | 46,489 | [
{
"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_2 (no_result VARCHAR, wins VARCHAR, losses VARCHAR)\n\n Question: WHAT kind of No Result has Wins smaller than 2, and L... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (played INTEGER, losses VARCHAR, wins VARCHAR)
Question: How many Played that has Losses of 6, and Wins larger than 33?
Here is the SQLite query to answer ... | The provided SQL query seems to contain a slight misunderstanding regarding the requirement of the question. The question asks for the count of "Played" entries where "Losses" are 6 and "Wins" are greater than 33, rather than the average of "Played".
To correct it, you would use the `COUNT` function instead. Here is ... | 46,490 | [
{
"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 (played INTEGER, losses VARCHAR, wins VARCHAR)\n\n Question: How many Played that has Losses of 6, and Wins larger t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (no_result INTEGER, year VARCHAR, _percentage_win VARCHAR, played VARCHAR)
Question: What kind of No Result has a % Win of 100.00% and a Played larger tha... | Here is the SQLite query to answer the question you provided:
```
SELECT MIN(no_result) FROM table_name_50 WHERE _percentage_win = "100.00%" AND played > 4 AND year = "2012"
``` | 46,491 | [
{
"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 (no_result INTEGER, year VARCHAR, _percentage_win VARCHAR, played VARCHAR)\n\n Question: What kind of No Result ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (loss VARCHAR, score VARCHAR)
Question: Which Loss has a Score of 6–5?
Here is the SQLite query to answer to the question: Which Loss has a Score of 6–5?:
... | Here's the SQLite query to answer the question "Which Loss has a Score of 6–5?":
```
SELECT loss FROM table_name_20 WHERE score = "6–5";
``` | 46,492 | [
{
"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_20 (loss VARCHAR, score VARCHAR)\n\n Question: Which Loss has a Score of 6–5?\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_1 (game VARCHAR, date VARCHAR)
Question: Date of wed. nov. 13 had how many number of games?
Here is the SQLite query to answer to the question: Date of wed. n... | Here is the SQLite query to answer to the question: Date of wed. nov. 13 had how many number of games?:
```
SELECT COUNT(game) FROM table_name_1 WHERE date = "wed. nov. 13";
``` | 46,493 | [
{
"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 (game VARCHAR, date VARCHAR)\n\n Question: Date of wed. nov. 13 had how many number of games?\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_16 (score VARCHAR, record VARCHAR)
Question: Record of 6–1 had what score?
Here is the SQLite query to answer to the question: Record of 6–1 had what score?:
... | Your SQLite query is correct for retrieving the score associated with the record "6–1". Here is the formatted code:
```
SELECT score FROM table_name_16 WHERE record = "6–1";
``` | 46,494 | [
{
"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 (score VARCHAR, record VARCHAR)\n\n Question: Record of 6–1 had what score?\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_64 (game INTEGER, score VARCHAR, record VARCHAR)
Question: Score of 118–114, and a Record of 8–1 is what lowest game?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question regarding the lowest game with a score of 118–114 and a record of 8–1:
```
SELECT MIN(game) FROM table_name_64 WHERE score = "118–114" AND record = "8–1"
``` | 46,495 | [
{
"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 (game INTEGER, score VARCHAR, record VARCHAR)\n\n Question: Score of 118–114, and a Record of 8–1 is what lowest gam... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (circuit VARCHAR, feature_winner VARCHAR, country VARCHAR)
Question: Which circuit was in Great Britain with Ireland as the winner?
Here is the SQLite quer... | Here is the SQLite query to answer the question about which circuit was in Great Britain with Ireland as the winner:
```sql
SELECT circuit FROM table_name_85 WHERE feature_winner = "Ireland" AND country = "Great Britain";
``` | 46,496 | [
{
"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 (circuit VARCHAR, feature_winner VARCHAR, country VARCHAR)\n\n Question: Which circuit was in Great Britain with Ire... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (attendance VARCHAR, league_position VARCHAR, score_f_a VARCHAR)
Question: How many were in attendance when the league position was 16th and the score was F... | Here is the SQLite query to answer the question about attendance when the league position was 16th and the score was F–A of 0–3:
```
SELECT COUNT(attendance) FROM table_name_43 WHERE league_position = "16th" AND score_f_a = "0–3"
``` | 46,497 | [
{
"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 (attendance VARCHAR, league_position VARCHAR, score_f_a VARCHAR)\n\n Question: How many were in attendance when the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (attendance VARCHAR, opponents VARCHAR, result VARCHAR, venue VARCHAR)
Question: How many were in attendance for a result of D, at H venue, and Arsenal as a... | To count the number of attendees for rows that match the specified criteria, you can modify the query to use the `COUNT` function. Here is the corrected SQLite query:
```
SELECT COUNT(attendance) AS total_attendance
FROM table_name_40
WHERE result = "D" AND venue = "H" AND opponents = "Arsenal"
```
This query will ... | 46,498 | [
{
"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_40 (attendance VARCHAR, opponents VARCHAR, result VARCHAR, venue VARCHAR)\n\n Question: How many were in attendance for... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (attendance INTEGER, opponents VARCHAR, venue VARCHAR, result VARCHAR)
Question: What is the largest number in attendance at H venue opposing Liverpool with... | Your provided SQLite query is almost correct, but there are a couple of minor issues regarding consistent casing for the venue ("H" vs. "h") and for opponents ("Liverpool" vs. "liverpool"). Assuming case sensitivity in string comparisons, the correction would be to ensure the values match according to how they're store... | 46,499 | [
{
"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_40 (attendance INTEGER, opponents VARCHAR, venue VARCHAR, result VARCHAR)\n\n Question: What is the largest number in a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.