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_16 (gerb VARCHAR, attack VARCHAR)
Question: What GERB has an 11% Attack?
Here is the SQLite query to answer to the question: What GERB has an 11% Attack?:
```... | The SQL query you've provided has a small issue with the comparison operator for the percentage value. In SQLite, you should be using the `=` operator without the percentage symbol for exact matches. If you're looking for an attack value of exactly 11 (without any additional symbols), the query should look like this:
... | 10,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_16 (gerb VARCHAR, attack VARCHAR)\n\n Question: What GERB has an 11% Attack?\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_39 (tie_no VARCHAR, score VARCHAR, home_team VARCHAR)
Question: Which Tie # has a Score of 3–0, and a Home team of bristol rovers?
Here is the SQLite query to... | Here is the SQLite query to answer the question:
```sql
SELECT tie_no FROM table_name_39 WHERE score = "3–0" AND home_team = "bristol rovers"
``` | 10,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_39 (tie_no VARCHAR, score VARCHAR, home_team VARCHAR)\n\n Question: Which Tie # has a Score of 3–0, and a Home team of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (score VARCHAR, home_team VARCHAR)
Question: Which Score has a Home team of yeovil town won 5–3 on penalties?
Here is the SQLite query to answer to the que... | It looks like there is a misunderstanding in the WHERE clause of your SQLite query. You should be checking the home team as "yeovil town" and looking for the specific score of "5–3" rather than including the details about penalties in the home team condition. Here is the corrected query:
```sql
SELECT score
FROM tabl... | 10,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_82 (score VARCHAR, home_team VARCHAR)\n\n Question: Which Score has a Home team of yeovil town won 5–3 on penalties?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (tie_no VARCHAR, away_team VARCHAR)
Question: Which Tie # has an Away team of slough town?
Here is the SQLite query to answer to the question: Which Tie # ... | Here is the SQLite query to answer the question: Which Tie # has an Away team of slough town?:
```
SELECT tie_no FROM table_name_66 WHERE away_team = "slough town"
``` | 10,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_66 (tie_no VARCHAR, away_team VARCHAR)\n\n Question: Which Tie # has an Away team of slough town?\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_13 (attendance VARCHAR, tie_no VARCHAR)
Question: Which Attendance has a Tie # of 32?
Here is the SQLite query to answer to the question: Which Attendance has... | Here is the SQLite query to answer the question: Which Attendance has a Tie # of 32?:
```
SELECT attendance FROM table_name_13 WHERE tie_no = "32";
``` | 10,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_13 (attendance VARCHAR, tie_no VARCHAR)\n\n Question: Which Attendance has a Tie # of 32?\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_51 (away_team VARCHAR, home_team VARCHAR, tie_no VARCHAR, attendance VARCHAR)
Question: Which Away team has a Tie # of replay, and an Attendance of 24 november... | Here is the SQLite query that answers your question:
```
SELECT away_team FROM table_name_51 WHERE tie_no = "replay" AND attendance = "24 november 1998" AND home_team = "rotherham united";
``` | 10,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_51 (away_team VARCHAR, home_team VARCHAR, tie_no VARCHAR, attendance VARCHAR)\n\n Question: Which Away team has a Tie #... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (tie_no VARCHAR, attendance VARCHAR, away_team VARCHAR)
Question: Which Tie # that has an Attendance of 14 november 1998, and an Away team of hayes?
Here i... | Here is the SQLite query to answer the question about which Tie # has an Attendance of 14 November 1998 and an Away team of Hayes:
```
SELECT tie_no FROM table_name_62 WHERE attendance = "14 november 1998" AND away_team = "hayes"
``` | 10,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_62 (tie_no VARCHAR, attendance VARCHAR, away_team VARCHAR)\n\n Question: Which Tie # that has an Attendance of 14 novem... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (date VARCHAR, outcome VARCHAR, opponent VARCHAR)
Question: Name the date with winner outcome and opponent of noppawan lertcheewakarn jessica moore
Here is... | Here is the corrected SQLite query to answer the question about the date with a winner outcome and the opponent being Noppawan Lertcheewakarn vs. Jessica Moore:
```sql
SELECT date
FROM table_name_82
WHERE outcome = "winner" AND (opponent = "noppawan lertcheewakarn" OR opponent = "jessica moore");
```
This query wil... | 10,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_82 (date VARCHAR, outcome VARCHAR, opponent VARCHAR)\n\n Question: Name the date with winner outcome and opponent of no... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR)
Question: Name the score for 21 may 2011
Here is the SQLite query to answer to the question: Name the score for 21 may 2011:
... | Here is the SQLite query to answer the question of naming the score for 21 May 2011:
```
SELECT score FROM table_name_35 WHERE date = "21 may 2011";
``` | 10,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_35 (score VARCHAR, date VARCHAR)\n\n Question: Name the score for 21 may 2011\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_20 (partner VARCHAR, opponent VARCHAR)
Question: Name the partner with opponent of michaëlla krajicek eleni daniilidou
Here is the SQLite query to answer to t... | Sure! Here is the SQLite query wrapped as requested:
```
SELECT partner FROM table_name_20 WHERE opponent = "michaëlla krajicek eleni daniilidou"
``` | 10,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_20 (partner VARCHAR, opponent VARCHAR)\n\n Question: Name the partner with opponent of michaëlla krajicek eleni daniili... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (outcome VARCHAR, opponent VARCHAR)
Question: Name the outcome for opponent of michaëlla krajicek eleni daniilidou
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the outcome for the opponent of Michaëlla Krajicek and Eleni Daniilidou:
```
SELECT outcome FROM table_name_98 WHERE opponent = "michaëlla krajicek eleni daniilidou"
``` | 10,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_98 (outcome VARCHAR, opponent VARCHAR)\n\n Question: Name the outcome for opponent of michaëlla krajicek eleni daniilid... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (wins INTEGER, matches INTEGER)
Question: How many wins had Matches greater than 5?
Here is the SQLite query to answer to the question: How many wins had M... | Here is the SQLite query to answer the question about how many wins had matches greater than 5:
```sql
SELECT SUM(wins) FROM table_name_82 WHERE matches > 5;
``` | 10,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_82 (wins INTEGER, matches INTEGER)\n\n Question: How many wins had Matches greater than 5?\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_27 (round VARCHAR, player VARCHAR)
Question: What was the round number when Michael Hjalm played?
Here is the SQLite query to answer to the question: What was... | Here is the SQLite query to answer the question about the round number when Michael Hjalm played:
```
SELECT round FROM table_name_27 WHERE player = "Michael Hjalm";
```
Note that the player's name is case-sensitive depending on how the data is stored. Adjust the casing in the query if necessary to match the data. | 10,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_27 (round VARCHAR, player VARCHAR)\n\n Question: What was the round number when Michael Hjalm played?\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_22 (position VARCHAR, round VARCHAR, player VARCHAR)
Question: What is the position Bill Campbell played before round 6?
Here is the SQLite query to answer to... | Your query is almost correct, but note that the proper comparison of rounds in SQL would generally involve using a numeric comparison, ensuring that the `round` column is stored as a number. Assuming that `round` contains numeric values as strings (like "1", "2", "3", ..., "6"), the query should work fine. Here's the w... | 10,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_22 (position VARCHAR, round VARCHAR, player VARCHAR)\n\n Question: What is the position Bill Campbell played before rou... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (date VARCHAR, catalogue_number VARCHAR)
Question: What is the date for the release with a catalogue number of WARPCDD333?
Here is the SQLite query to answ... | Your query is almost correct, but it needs to handle the case sensitivity of the catalogue number properly, as SQLite is case-sensitive by default when comparing strings. Here's the revised query that uses a case-insensitive comparison:
```sql
SELECT date FROM table_name_73 WHERE catalogue_number = "WARPCDD333"
```
I... | 10,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_73 (date VARCHAR, catalogue_number VARCHAR)\n\n Question: What is the date for the release with a catalogue number of W... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (country_region VARCHAR, label VARCHAR)
Question: What is the country/region for the releases from Beat Records?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding the country/region for the releases from Beat Records:
```sql
SELECT country_region FROM table_name_9 WHERE label = "Beat Records";
``` | 10,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_9 (country_region VARCHAR, label VARCHAR)\n\n Question: What is the country/region for the releases from Beat Records?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (total VARCHAR, player VARCHAR)
Question: What is the Total with a Player named robbie winters?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question regarding the total for a player named "robbie winters":
```
SELECT total FROM table_name_95 WHERE player = "robbie winters";
``` | 10,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_95 (total VARCHAR, player VARCHAR)\n\n Question: What is the Total with a Player named robbie winters?\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_47 (position VARCHAR, player VARCHAR)
Question: What Position has a Player named kenneth udjus?
Here is the SQLite query to answer to the question: What Posit... | Here is the SQLite query to answer the question: What Position has a Player named kenneth udjus?:
```sql
SELECT position FROM table_name_47 WHERE player = "kenneth udjus";
``` | 10,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_47 (position VARCHAR, player VARCHAR)\n\n Question: What Position has a Player named kenneth udjus?\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_60 (november INTEGER, record VARCHAR)
Question: What is the latest day in November of the game with a 15-5-2 record?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question regarding the latest day in November for the game with a 15-5-2 record:
```
SELECT MAX(november) FROM table_name_60 WHERE record = "15-5-2";
``` | 10,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_60 (november INTEGER, record VARCHAR)\n\n Question: What is the latest day in November of the game with a 15-5-2 record... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (november INTEGER, game VARCHAR)
Question: What is the latest day in November with a game 15?
Here is the SQLite query to answer to the question: What is t... | Your SQLite query is almost correct, but the value for the `game` column should likely be treated as a string since it's defined as `VARCHAR`. Therefore, you would need to compare it as a string. Here's the corrected query:
```
SELECT MAX(november) FROM table_name_31 WHERE game = '15'
```
This will ensure you're accu... | 10,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_31 (november INTEGER, game VARCHAR)\n\n Question: What is the latest day in November with a game 15?\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_55 (wins INTEGER, points VARCHAR, rank VARCHAR)
Question: What is the lowest wins with points larger than 46, and a rank of 10th?
Here is the SQLite query to ... | Here is the SQLite query you provided, correctly formatted:
```
SELECT MIN(wins) FROM table_name_55 WHERE points > 46 AND rank = "10th";
``` | 10,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_55 (wins INTEGER, points VARCHAR, rank VARCHAR)\n\n Question: What is the lowest wins with points larger than 46, 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_60 (points INTEGER, year VARCHAR, rank VARCHAR)
Question: What is the average points with a year higher than 1989, and a rank of 7th?
Here is the SQLite query... | Here is the SQLite query to answer the question about the average points with a year higher than 1989 and a rank of 7th:
```sql
SELECT AVG(points) FROM table_name_60 WHERE year > '1989' AND rank = '7th';
``` | 10,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_60 (points INTEGER, year VARCHAR, rank VARCHAR)\n\n Question: What is the average points with a year higher than 1989, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (year VARCHAR, points INTEGER)
Question: What is the year that has points larger than 20?
Here is the SQLite query to answer to the question: What is the y... | The provided query counts the number of years with points larger than 20, but it does not directly return the year(s) themselves. If you want to retrieve the actual years that have points larger than 20, you should use a query that selects the year. Here’s how you can write it:
```sql
SELECT year FROM table_name_84 WH... | 10,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_84 (year VARCHAR, points INTEGER)\n\n Question: What is the year that has points larger than 20?\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_45 (year INTEGER, points VARCHAR, rank VARCHAR)
Question: What is year that has points larger than 46, and a rank of 6th?
Here is the SQLite query to answer t... | The provided SQL query attempts to sum the years that meet the criteria. However, to retrieve the specific year(s) that have points larger than 46 and a rank of 6th, you should select the year directly rather than summing it. Here's the corrected query:
```sql
SELECT year FROM table_name_45 WHERE points > 46 AND rank ... | 10,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_45 (year INTEGER, points VARCHAR, rank VARCHAR)\n\n Question: What is year that has points larger than 46, and a rank o... | |
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 INTEGER, points VARCHAR, rank VARCHAR)
Question: What earliest year with points larger than 68 and a rank of 7th?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the earliest year with points larger than 68 and a rank of 7th:
```
SELECT MIN(year) FROM table_name_71 WHERE points > 68 AND rank = '7th';
``` | 10,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_71 (year INTEGER, points VARCHAR, rank VARCHAR)\n\n Question: What earliest year with points larger than 68 and a rank ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (player VARCHAR, school VARCHAR)
Question: what player went to ul-monroe
Here is the SQLite query to answer to the question: what player went to ul-monroe:
... | ```sql
SELECT player FROM table_name_7 WHERE school = "ul-monroe";
``` | 10,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_7 (player VARCHAR, school VARCHAR)\n\n Question: what player went to ul-monroe\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_86 (drawn INTEGER, points INTEGER)
Question: How many drawn having more than 9 points?
Here is the SQLite query to answer to the question: How many drawn havi... | The correct query to count the number of drawn entries that have more than 9 points should be using `COUNT` instead of `SUM`. This is because we want to count the number of occurrences of drawn that meet the condition rather than summing the drawn values. Here’s the corrected query:
```sql
SELECT COUNT(drawn) FROM tab... | 10,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_86 (drawn INTEGER, points INTEGER)\n\n Question: How many drawn having more than 9 points?\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_26 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR)
Question: Which Number stayed in Southeast has over 4,000 emigrated... | The provided SQLite query has a small logical issue in the WHERE clause. Instead of checking if the total number is equal to the string "over 4,000", we should check if it is greater than 4000. Since the column `total_number_emigrated_or_forcibly_removed` is defined as VARCHAR, we will need to cast it to an integer for... | 10,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_26 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR)\n\n Question: Which Number ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (deaths_from_warfare VARCHAR, nation VARCHAR)
Question: How many warfare deaths befell the choctaw nation?
Here is the SQLite query to answer to the questi... | To answer the question of how many warfare deaths befell the Choctaw nation, you should use the SUM function to aggregate the deaths, assuming that the `deaths_from_warfare` field contains numeric values represented as strings. You would also need to convert those values into integers. Here's the correct SQLite query:
... | 10,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_33 (deaths_from_warfare VARCHAR, nation VARCHAR)\n\n Question: How many warfare deaths befell the choctaw nation?\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_58 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR)
Question: How many of those who stayed in the southeast had 19,600 ... | The provided query is a good starting point, but to properly count the records that meet the criteria you specified, you need to use the `COUNT()` function and adjust the syntax accordingly to retrieve the count of records rather than the actual values. Here's the corrected SQLite query:
```
SELECT COUNT(number_stayed... | 10,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_58 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR)\n\n Question: How many of t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (removal_treaty__year_signed_ VARCHAR, nation VARCHAR)
Question: Which removal treaty covered the chickasaw nation?
Here is the SQLite query to answer to t... | Your SQLite query is correct for retrieving the year signed of the removal treaty that covered the Chickasaw nation. Here it is properly formatted:
```
SELECT removal_treaty__year_signed_ FROM table_name_32 WHERE nation = "chickasaw";
``` | 10,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_32 (removal_treaty__year_signed_ VARCHAR, nation VARCHAR)\n\n Question: Which removal treaty covered the chickasaw nati... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (date VARCHAR, stage VARCHAR)
Question: When did stage 5 occur?
Here is the SQLite query to answer to the question: When did stage 5 occur?:
```
SELECT dat... | Your SQL query is almost correct, but it needs a slight modification. The `stage` value is being compared to an integer (5), but in the schema `stage` is defined as a VARCHAR. Therefore, you need to compare it to the string `'5'`.
Here is the corrected SQLite query:
```
SELECT date FROM table_name_53 WHERE stage = '5... | 10,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_53 (date VARCHAR, stage VARCHAR)\n\n Question: When did stage 5 occur?\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (opponent VARCHAR, week VARCHAR)
Question: Who were the opponents during week 14?
Here is the SQLite query to answer to the question: Who were the opponent... | Here is the corrected SQLite query to answer the question: Who were the opponents during week 14?:
```
SELECT opponent FROM table_name_53 WHERE week = '14'
``` | 10,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_53 (opponent VARCHAR, week VARCHAR)\n\n Question: Who were the opponents during week 14?\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_45 (attendance INTEGER, date VARCHAR, week VARCHAR)
Question: What is the highest attendance for the game before week 13 on December 9, 1973?
Here is the SQLi... | The correct SQLite query to find the highest attendance for the game before week 13 on December 9, 1973, should focus on selecting data that is prior to week 13 and considering the attendance for all relevant games leading up to that date, rather than filtering for a specific date as in your original query. Here’s the ... | 10,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_45 (attendance INTEGER, date VARCHAR, week VARCHAR)\n\n Question: What is the highest attendance for the game before we... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (attendance INTEGER, date VARCHAR, week VARCHAR)
Question: What is the average attendance for the games after week 2 on September 23, 1973?
Here is the SQL... | Your query needs a slight adjustment because you want to find the average attendance for all records after week 2, regardless of a specific date. The date condition should be applied in a way that encompasses all weeks after week 2 in the context of the game dates. Here's the corrected SQLite query:
```sql
SELECT AVG(... | 10,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_31 (attendance INTEGER, date VARCHAR, week VARCHAR)\n\n Question: What is the average attendance for the games after we... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (week VARCHAR, date VARCHAR, attendance VARCHAR)
Question: What is the total number of weeks where games were on November 5, 1973 and the attendance was lar... | It appears there is a small syntax issue in your query. Specifically, the comparison for attendance should refer to a numeric value, and the `OFFSET` keyword is not used correctly in this context. Here's the corrected version of the SQLite query:
```sql
SELECT COUNT(week)
FROM table_name_81
WHERE date = "November 5,... | 10,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_81 (week VARCHAR, date VARCHAR, attendance VARCHAR)\n\n Question: What is the total number of weeks where games were on... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (game_site VARCHAR, record VARCHAR)
Question: Record of 9–1 had what game site?
Here is the SQLite query to answer to the question: Record of 9–1 had what ... | Here is the SQLite query to answer the question about the game site with a record of 9–1:
```
SELECT game_site FROM table_name_70 WHERE record = "9–1";
``` | 10,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_70 (game_site VARCHAR, record VARCHAR)\n\n Question: Record of 9–1 had what game site?\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_18 (attendance INTEGER, record VARCHAR, week VARCHAR)
Question: Record of 8–1, and a Week larger than 9 had what highest attendance?
Here is the SQLite query ... | Here is the SQLite query wrapped in code formatting:
```
SELECT MAX(attendance) FROM table_name_18 WHERE record = "8–1" AND week > 9
``` | 10,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_18 (attendance INTEGER, record VARCHAR, week VARCHAR)\n\n Question: Record of 8–1, and a Week larger than 9 had what hi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (attendance INTEGER, result VARCHAR, week VARCHAR)
Question: Result of w 24–21, and a Week smaller than 6 had what sum of attendance?
Here is the SQLite que... | Here is the SQLite query that answers your question:
```
SELECT SUM(attendance) FROM table_name_9 WHERE result = "w 24–21" AND week < 6
``` | 10,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_9 (attendance INTEGER, result VARCHAR, week VARCHAR)\n\n Question: Result of w 24–21, and a Week smaller than 6 had wha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)
Question: Date of October 25, 1964 involves what record?
Here is the SQLite query to answer to the question: Date of October ... | Here is the SQLite query to answer the question regarding the record associated with the date of October 25, 1964:
```
SELECT record FROM table_name_1 WHERE date = "October 25, 1964"
``` | 10,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_1 (record VARCHAR, date VARCHAR)\n\n Question: Date of October 25, 1964 involves what record?\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_82 (total INTEGER, nation VARCHAR, bronze VARCHAR)
Question: What is the high total for algeria with over 2 bronzes?
Here is the SQLite query to answer to the... | The SQLite query to find the high total for Algeria with over 2 bronzes is as follows:
```
SELECT MAX(total) FROM table_name_82 WHERE nation = 'algeria' AND bronze > 2
``` | 10,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_82 (total INTEGER, nation VARCHAR, bronze VARCHAR)\n\n Question: What is the high total for algeria with over 2 bronzes... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (silver INTEGER, bronze VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR)
Question: What is the highest number of silvers for qatar with under 8 total, 0... | There seems to be a small issue in your query concerning the data type for the `gold` and `bronze` columns. Since `gold` appears to be a VARCHAR, comparing it to 0 will not work correctly. Also, `bronze` should also be cast or properly operated on to ensure we are comparing its value correctly.
Assuming the `bronze` ... | 10,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_9 (silver INTEGER, bronze VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR)\n\n Question: What is the highest numbe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (bronze VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR)
Question: How many bronzes for the nation with over 20 total, under 26 golds, and over 0 silve... | Here is the SQLite query to answer the question about the number of bronzes for the nation with over 20 total, under 26 golds, and over 0 silvers:
```
SELECT COUNT(bronze)
FROM table_name_81
WHERE silver > 0 AND total > 20 AND gold < 26;
``` | 10,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_81 (bronze VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR)\n\n Question: How many bronzes for the nation with ove... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (bronze VARCHAR, gold VARCHAR, silver VARCHAR)
Question: Who one bronze in the event where Choi Jun-Sang won gold, and Suh Jung-Kyun won silver?
Here is th... | Here is the SQLite query formatted as requested:
```
SELECT bronze FROM table_name_27 WHERE gold = "Choi Jun-Sang" AND silver = "Suh Jung-Kyun";
``` | 10,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_27 (bronze VARCHAR, gold VARCHAR, silver VARCHAR)\n\n Question: Who one bronze in the event where Choi Jun-Sang won gol... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (bronze VARCHAR, location VARCHAR)
Question: Who won bronze in Seoul?
Here is the SQLite query to answer to the question: Who won bronze in Seoul?:
```
SEL... | Here is the SQLite query to answer the question: Who won bronze in Seoul?:
```
SELECT bronze FROM table_name_20 WHERE location = "seoul";
``` | 10,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_20 (bronze VARCHAR, location VARCHAR)\n\n Question: Who won bronze in Seoul?\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_7 (bronze VARCHAR, year VARCHAR)
Question: Who won bronze is 2006?
Here is the SQLite query to answer to the question: Who won bronze is 2006?:
```
SELECT bro... | Here is the SQLite query to answer the question: Who won bronze in 2006?:
```
SELECT bronze FROM table_name_7 WHERE year = '2006'
``` | 10,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_7 (bronze VARCHAR, year VARCHAR)\n\n Question: Who won bronze is 2006?\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (year VARCHAR, location VARCHAR)
Question: What year did the event in Hiroshima take place?
Here is the SQLite query to answer to the question: What year d... | The provided query counts the number of records for Hiroshima but does not directly answer the question of what year the event took place. Instead, you should select the year(s) directly. Here's the corrected query:
```
SELECT year FROM table_name_70 WHERE location = "hiroshima"
```
This will return the year(s) asso... | 10,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_70 (year VARCHAR, location VARCHAR)\n\n Question: What year did the event in Hiroshima take place?\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_35 (bronze VARCHAR, year VARCHAR)
Question: Who won bronze in 2002?
Here is the SQLite query to answer to the question: Who won bronze in 2002?:
```
SELECT br... | Here is the SQLite query to answer the question: Who won bronze in 2002?:
```
SELECT bronze FROM table_name_35 WHERE year = '2002'
``` | 10,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_35 (bronze VARCHAR, year VARCHAR)\n\n Question: Who won bronze in 2002?\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_74 (game VARCHAR, opponent VARCHAR, february VARCHAR)
Question: What is the game number of the game with the Edmonton Oilers as the opponent after February 12?... | The SQLite query to find the game number of the game with the Edmonton Oilers as the opponent after February 12 is as follows:
```
SELECT game FROM table_name_74 WHERE opponent = "edmonton oilers" AND february > 12
``` | 10,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_74 (game VARCHAR, opponent VARCHAR, february VARCHAR)\n\n Question: What is the game number of the game with the Edmont... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (seasons VARCHAR, years VARCHAR)
Question: How many Seasons that has Years of 1976–1977?
Here is the SQLite query to answer to the question: How many Season... | Your SQLite query is almost correct, but it may need to consider potential variations in how the years might be stored (e.g., leading/trailing spaces or variations in the dash characters). However, based on the information provided, here’s the query formatted correctly:
```
SELECT COUNT(seasons) FROM table_name_1 WHER... | 10,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_1 (seasons VARCHAR, years VARCHAR)\n\n Question: How many Seasons that has Years of 1976–1977?\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_24 (week INTEGER, date VARCHAR)
Question: What week of the season had a date of october 5, 1975?
Here is the SQLite query to answer to the question: What week... | Your provided SQLite query looks good for retrieving the week associated with the specific date of October 5, 1975. However, since the goal is to find which week corresponds to that date, you don't need to use `MIN(week)`. You can simply select the `week` directly. Here is the adjusted query:
```sql
SELECT week FROM t... | 10,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_24 (week INTEGER, date VARCHAR)\n\n Question: What week of the season had a date of october 5, 1975?\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_80 (events VARCHAR, top_10 VARCHAR, top_5 VARCHAR)
Question: How many Events have a Top-10 larger than 6, and a Top-5 smaller than 8?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding the conditions for Top-10 and Top-5 values:
```
SELECT COUNT(events) FROM table_name_80 WHERE CAST(top_10 AS INTEGER) > 6 AND CAST(top_5 AS INTEGER) < 8
``` | 10,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_80 (events VARCHAR, top_10 VARCHAR, top_5 VARCHAR)\n\n Question: How many Events have a Top-10 larger than 6, and a Top... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (wins VARCHAR, top_5 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)
Question: How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a To... | Here is the SQLite query to answer the question regarding the specified conditions:
```
SELECT COUNT(wins)
FROM table_name_57
WHERE top_10 < 6 AND cuts_made > 7 AND top_5 = '0';
```
Note: Assuming that the numeric comparisons in the WHERE clause require the appropriate types. If the columns are stored as strings (... | 10,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_57 (wins VARCHAR, top_5 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)\n\n Question: How many Wins have a Top-10 smaller 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 (result VARCHAR, date VARCHAR)
Question: What is the result of the game on May 14?
Here is the SQLite query to answer to the question: What is the result o... | Here is the SQLite query to answer the question about the result of the game on May 14:
```
SELECT result FROM table_name_49 WHERE date = "May 14";
``` | 10,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_49 (result VARCHAR, date VARCHAR)\n\n Question: What is the result of the game on May 14?\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_48 (result VARCHAR, road_team VARCHAR, date VARCHAR)
Question: What is the result of the game on May 14 with Philadelphia as the road team?
Here is the SQLite... | Here is the SQLite query to answer the question regarding the result of the game on May 14 with Philadelphia as the road team:
```sql
SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 14";
``` | 10,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_48 (result VARCHAR, road_team VARCHAR, date VARCHAR)\n\n Question: What is the result of the game on May 14 with Philad... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR)
Question: What is the result of the game on May 4 with Philadelphia as the road team?
Here is the SQLite ... | Here is the SQLite query to answer the question regarding the result of the game on May 4 with Philadelphia as the road team:
```
SELECT result FROM table_name_48 WHERE road_team = 'philadelphia' AND date = 'may 4';
``` | 10,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_48 (result VARCHAR, road_team VARCHAR, date VARCHAR)\n\n Question: What is the result of the game on May 4 with Philade... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (road_team VARCHAR, home_team VARCHAR, game VARCHAR)
Question: What is the road team of game 6 with Philadelphia as the home team?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding the road team of game 6 with Philadelphia as the home team:
```
SELECT road_team FROM table_name_56 WHERE home_team = "Philadelphia" AND game = "game 6";
``` | 10,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_56 (road_team VARCHAR, home_team VARCHAR, game VARCHAR)\n\n Question: What is the road team of game 6 with Philadelphia... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (result VARCHAR, home_team VARCHAR, game VARCHAR)
Question: What is the result of game 5 with Los Angeles as the home team?
Here is the SQLite query to ans... | Here is the SQLite query to answer your question:
```
SELECT result FROM table_name_26 WHERE home_team = "Los Angeles" AND game = "game 5"
``` | 10,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_26 (result VARCHAR, home_team VARCHAR, game VARCHAR)\n\n Question: What is the result of game 5 with Los Angeles as the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)
Question: What is the road team of the game with Philadelphia as the home team with a result of 105-1... | Here is the SQLite query to answer the question:
```
SELECT road_team FROM table_name_53 WHERE home_team = "philadelphia" AND result = "105-102"
``` | 10,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_53 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)\n\n Question: What is the road team of the game with Philadel... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (result VARCHAR, party VARCHAR, first_elected VARCHAR)
Question: Which Result has a Party of republican, and a First elected smaller than 1856?
Here is the... | ```sql
SELECT result FROM table_name_26 WHERE party = "republican" AND first_elected < 1856;
``` | 10,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_26 (result VARCHAR, party VARCHAR, first_elected VARCHAR)\n\n Question: Which Result has a Party of republican, and a F... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
Question: Which District has a First elected of 1856, and an Incumbent of william kellogg?
Her... | Here is the SQLite query to answer the question about which District has a First elected of 1856 and an Incumbent of william kellogg:
```sql
SELECT district FROM table_name_20 WHERE first_elected = '1856' AND incumbent = 'william kellogg';
``` | 10,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_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)\n\n Question: Which District has a First elected of 185... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (first_elected INTEGER, district VARCHAR)
Question: Which First elected has a District of illinois 3?
Here is the SQLite query to answer to the question: W... | Your SQLite query looks correct for fetching the maximum `first_elected` for the district "illinois 3". Here is the code wrapped in the requested format:
```
SELECT MAX(first_elected) FROM table_name_52 WHERE district = "illinois 3";
```
This query will return the highest value of `first_elected` for rows where the ... | 10,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_52 (first_elected INTEGER, district VARCHAR)\n\n Question: Which First elected has a District of illinois 3?\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_76 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR)
Question: How much First elected has a Result of re-elected, and a Party of republi... | Here is the SQLite query to answer the question:
```
SELECT COUNT(first_elected) FROM table_name_76 WHERE result = "re-elected" AND party = "republican" AND district = "illinois 4"
``` | 10,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_76 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR)\n\n Question: How much First elected 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_33 (home VARCHAR, date VARCHAR)
Question: on january 7 what is home?
Here is the SQLite query to answer to the question: on january 7 what is home?:
```
SELEC... | Here is the SQLite query to answer the question: on January 7 what is home?:
```
SELECT home FROM table_name_33 WHERE date = "january 7"
``` | 10,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_33 (home VARCHAR, date VARCHAR)\n\n Question: on january 7 what is home?\n\nHere is the SQLite query to answer to the 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 (visitor VARCHAR, date VARCHAR)
Question: on january 12 who was the visitor?
Here is the SQLite query to answer to the question: on january 12 who was the ... | Your SQLite query to find out who was the visitor on January 12 is correctly structured. Here it is wrapped as requested:
```
SELECT visitor FROM table_name_16 WHERE date = "january 12";
``` | 10,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_16 (visitor VARCHAR, date VARCHAR)\n\n Question: on january 12 who was the visitor?\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_63 (record VARCHAR, date VARCHAR)
Question: on january 7 what is the record?
Here is the SQLite query to answer to the question: on january 7 what is the reco... | Here is the SQLite query to answer the question about the record on January 7:
```
SELECT record FROM table_name_63 WHERE date = "january 7";
``` | 10,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_63 (record VARCHAR, date VARCHAR)\n\n Question: on january 7 what is the record?\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_13 (silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
Question: What is the total number of silver medals of the team with less than 2 gold, 1 bronz... | Here is the corrected SQLite query. The columns `gold`, `bronze`, and `total` should be treated as integers to apply the comparison operators correctly. You can convert them using `CAST` or by ensuring they are stored as integers in the database. Assuming they are stored as text but represent numbers, we can convert th... | 10,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_13 (silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)\n\n Question: What is the total number of silver medal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (silver INTEGER, bronze INTEGER)
Question: What is the highest number of silver medals of the team with less than 0 bronzes?
Here is the SQLite query to an... | Here is the SQLite query to answer the question regarding the highest number of silver medals of the team with less than 0 bronzes:
```sql
SELECT MAX(silver) FROM table_name_85 WHERE bronze < 0;
``` | 10,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_85 (silver INTEGER, bronze INTEGER)\n\n Question: What is the highest number of silver medals of the team with less tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (silver VARCHAR, rank VARCHAR, total VARCHAR)
Question: What is the total number of silver medals of the team ranked 7 with more than 1 total medal?
Here i... | Here is the SQLite query to answer the question regarding the total number of silver medals for the team ranked 7 with more than 1 total medal:
```
SELECT COUNT(silver)
FROM table_name_59
WHERE rank = "7" AND total > 1;
``` | 10,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_59 (silver VARCHAR, rank VARCHAR, total VARCHAR)\n\n Question: What is the total number of silver medals of the team ra... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (bronze INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR)
Question: What is the average number of bronze medals of the team with 0 silvers, ranked 3, an... | Here's the corrected SQLite query to answer your question, considering the proper data types and the condition for silvers, total medals, and rank:
```sql
SELECT AVG(bronze)
FROM table_name_52
WHERE silver = '0' AND rank = '3' AND total < '1';
```
Make sure the values for `silver` and `total` are handled correctly ... | 10,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_52 (bronze INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR)\n\n Question: What is the average number of bronze med... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
Question: What is the number of silver medals of the team with 0 gold, ranked 5, and more than ... | The SQLite query you provided has a couple of issues. Specifically, the query is trying to compare the `gold` column with an integer (0), whereas `gold` is defined as a `VARCHAR`. Additionally, the condition for `bronze` must compare against a string since it is also defined as `VARCHAR`.
Here's the corrected query t... | 10,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_84 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)\n\n Question: What is the number of silver medals of th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR)
Question: What was the sum for a top-10 U.S. open that had a top-25 bigger than 0?
Here is the SQLite ... | Here is the SQLite query to answer the question regarding the sum for a top-10 U.S. Open that had a top-25 value greater than 0:
```sql
SELECT SUM(top_10) FROM table_name_83 WHERE tournament = "u.s. open" AND top_25 > 0
``` | 10,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_83 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR)\n\n Question: What was the sum for a top-10 U.S. open that had ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (cuts_made VARCHAR, events VARCHAR, top_10 VARCHAR)
Question: What were the total number of cuts made in an event larger than 4 and a top-10 smaller than 4?... | Here is the SQLite query to answer the question about the total number of cuts made in events larger than 4 and top-10 smaller than 4:
```
SELECT SUM(cuts_made) FROM table_name_17 WHERE events > 4 AND top_10 < 4
```
Please note that I changed `COUNT(cuts_made)` to `SUM(cuts_made)`, assuming that the `cuts_made` colu... | 10,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_17 (cuts_made VARCHAR, events VARCHAR, top_10 VARCHAR)\n\n Question: What were the total number of cuts made in an even... | |
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, cuts_made VARCHAR)
Question: What is the total number of top-25 that has a top-10 smaller than 4 with 0 cuts?
Here is the ... | It looks like there is a slight error in the query concerning the condition for cuts made. The requirement specifies "0 cuts", which means the condition should check for equal to zero rather than greater than zero. Here is the corrected SQLite query:
```
SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 < 4 AND cut... | 10,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_95 (top_25 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)\n\n Question: What is the total number of top-25 that has a top-... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR)
Question: What was the cuts average in tournament totals in an event larger than 24?
Here is the SQ... | Your SQL query is close, but it currently does not correctly target the condition "event larger than 24." Instead, it should target the `events` column, ensuring that the comparison is based on integer values. Here’s the correct version of the query to find the average cuts made in tournaments where the number of event... | 10,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_62 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR)\n\n Question: What was the cuts average in tournament totals... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (top_10 VARCHAR, tournament VARCHAR, events VARCHAR)
Question: What is the total for a top-10 in a masters tournament in an event smaller than 4?
Here is t... | Here is the SQLite query to answer the question regarding the total for a top-10 in a masters tournament in an event smaller than 4, formatted correctly:
```sql
SELECT COUNT(top_10)
FROM table_name_52
WHERE tournament = 'masters tournament' AND events < 4;
``` | 10,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_52 (top_10 VARCHAR, tournament VARCHAR, events VARCHAR)\n\n Question: What is the total for a top-10 in a masters tourn... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (against INTEGER, team VARCHAR, lost VARCHAR)
Question: Which Against is the highest one that has a Team of flamengo, and a Lost smaller than 1?
Here is th... | Your SQLite query is almost correct, but there's a small issue you should address. The column "lost" should be treated as a numerical value if you are comparing it with a number. Make sure that the values in the "lost" column can be compared numerically. If "lost" is stored as text, you may need to cast it to a numeric... | 10,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_95 (against INTEGER, team VARCHAR, lost VARCHAR)\n\n Question: Which Against is the highest one that has a Team of flam... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (lost VARCHAR, team VARCHAR, against VARCHAR)
Question: How many Lost have a Team of flamengo, and an Against smaller than 5?
Here is the SQLite query to a... | Here is the corrected SQLite query to answer the question about how many "Lost" entries exist for a team named "flamengo", with an "Against" value smaller than 5:
```sql
SELECT COUNT(lost) FROM table_name_92 WHERE team = 'flamengo' AND CAST(against AS INTEGER) < 5;
```
Please note that I used `CAST(against AS INTEGE... | 10,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_92 (lost VARCHAR, team VARCHAR, against VARCHAR)\n\n Question: How many Lost have a Team of flamengo, and an Against sm... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (played INTEGER, points VARCHAR, drawn VARCHAR)
Question: Which Played is the highest one that has Points of 5, and a Drawn smaller than 1?
Here is the SQL... | Your SQLite query is almost correct, but you should ensure that the `points` column is compared as an integer, given it is defined as `VARCHAR`. You may also need to specify how the `drawn` column is handled since it is also a `VARCHAR`.
Here's a refined version of your query:
```sql
SELECT MAX(played)
FROM table_na... | 10,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_94 (played INTEGER, points VARCHAR, drawn VARCHAR)\n\n Question: Which Played is the highest one that has Points of 5, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR)
Question: What was the nationality for the player in Round 1?
Here is the SQLite query to answer to the question: What... | Here is the corrected SQLite query to answer the question about the nationality for the player in Round 1:
```
SELECT nationality FROM table_name_11 WHERE round = '1'
```
Note: The value for `round` is treated as a string in this case, since it's a VARCHAR type in the schema. Adjustments may be necessary depending o... | 10,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_11 (nationality VARCHAR, round VARCHAR)\n\n Question: What was the nationality for the player in Round 1?\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_66 (player VARCHAR, position VARCHAR)
Question: Who plays the right wing position?
Here is the SQLite query to answer to the question: Who plays the right win... | Here is the SQLite query to answer the question: Who plays the right wing position?:
```
SELECT player FROM table_name_66 WHERE position = "right wing";
``` | 10,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_66 (player VARCHAR, position VARCHAR)\n\n Question: Who plays the right wing position?\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_79 (celebrity VARCHAR, finished VARCHAR)
Question: What celebrity finished 6th?
Here is the SQLite query to answer to the question: What celebrity finished 6t... | Here is the SQLite query to answer the question: What celebrity finished 6th?:
```
SELECT celebrity FROM table_name_79 WHERE finished = "6th"
``` | 10,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_79 (celebrity VARCHAR, finished VARCHAR)\n\n Question: What celebrity finished 6th?\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_96 (entered VARCHAR, finished VARCHAR)
Question: What day did the celebrity who finished 4th enter?
Here is the SQLite query to answer to the question: What d... | Your query looks correct for the given question and schema. Here's the query wrapped properly:
```
SELECT entered FROM table_name_96 WHERE finished = "4th";
```
This SQL command retrieves the entry date for the celebrity who finished in 4th place. If you need any further modifications or explanations, feel free to a... | 10,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_96 (entered VARCHAR, finished VARCHAR)\n\n Question: What day did the celebrity who finished 4th enter?\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_53 (celebrity VARCHAR, exited VARCHAR, famous_for VARCHAR)
Question: Which celebrity who was famous for being the ex busted member and TV presenter exited on d... | Here is the SQLite query to answer the question:
```
SELECT celebrity FROM table_name_53 WHERE exited = "day 19" AND famous_for = "ex busted member and tv presenter"
``` | 10,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_53 (celebrity VARCHAR, exited VARCHAR, famous_for VARCHAR)\n\n Question: Which celebrity who was famous for being the e... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (famous_for VARCHAR, finished VARCHAR)
Question: Which celebrity was famous for finishing 9th?
Here is the SQLite query to answer to the question: Which ce... | ```sql
SELECT famous_for FROM table_name_52 WHERE finished = "9th";
``` | 10,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_52 (famous_for VARCHAR, finished VARCHAR)\n\n Question: Which celebrity was famous for finishing 9th?\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_77 (finished VARCHAR, celebrity VARCHAR)
Question: What rank did Myleene Klass finish?
Here is the SQLite query to answer to the question: What rank did Mylee... | Here is the SQLite query to answer the question: What rank did Myleene Klass finish?:
```
SELECT finished FROM table_name_77 WHERE celebrity = "Myleene Klass";
``` | 10,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_77 (finished VARCHAR, celebrity VARCHAR)\n\n Question: What rank did Myleene Klass finish?\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_24 (venue VARCHAR, opponent VARCHAR, result VARCHAR)
Question: Opponent of kilmarnock, and a Result of 1–1 happened in what venue?
Here is the SQLite query to... | Here is the SQLite query to answer the question regarding the opponent of Kilmarnock and a result of 1–1:
```
SELECT venue FROM table_name_24 WHERE opponent = "kilmarnock" AND result = "1–1";
``` | 10,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_24 (venue VARCHAR, opponent VARCHAR, result VARCHAR)\n\n Question: Opponent of kilmarnock, and a Result of 1–1 happened... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (weight_of_shot VARCHAR, designation__bore_ VARCHAR)
Question: what is the weight of a shot that is xx-inch?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question about the weight of a shot that is "xx-inch":
```
SELECT weight_of_shot FROM table_name_51 WHERE designation__bore_ = "xx-inch"
``` | 10,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_51 (weight_of_shot VARCHAR, designation__bore_ VARCHAR)\n\n Question: what is the weight of a shot that is xx-inch?\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_30 (length VARCHAR, character_name VARCHAR)
Question: What is the length of the film with Burleigh Sullivan as the character?
Here is the SQLite query to answ... | Your SQLite query is almost correct, but typically, character names could have different capitalizations. It's a good practice to use the `LOWER` function to ensure a case-insensitive match. Here is the refined query:
```
SELECT length FROM table_name_30 WHERE LOWER(character_name) = "burleigh sullivan";
```
This qu... | 10,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_30 (length VARCHAR, character_name VARCHAR)\n\n Question: What is the length of the film with Burleigh Sullivan as the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (length VARCHAR, character_type VARCHAR)
Question: What is the length of the film with the character type being a milkman turned prizefighter?
Here is the ... | Here is the SQLite query wrapped as you requested:
```
SELECT length FROM table_name_31 WHERE character_type = "milkman turned prizefighter";
``` | 10,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_31 (length VARCHAR, character_type VARCHAR)\n\n Question: What is the length of the film with the character type being ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (character_name VARCHAR, leading_lady VARCHAR)
Question: What is the character name that has phyllis welch as the leading lady?
Here is the SQLite query to... | ```sql
SELECT character_name FROM table_name_97 WHERE leading_lady = "phyllis welch";
``` | 10,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_97 (character_name VARCHAR, leading_lady VARCHAR)\n\n Question: What is the character name that has phyllis welch as th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (director_s_ VARCHAR, leading_lady VARCHAR)
Question: Who directed the film that had phyllis welch as the leading lady?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question: Who directed the film that had phyllis welch as the leading lady?:
```
SELECT director_s_ FROM table_name_74 WHERE leading_lady = "phyllis welch"
``` | 10,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_74 (director_s_ VARCHAR, leading_lady VARCHAR)\n\n Question: Who directed the film that had phyllis welch as the leadin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (character_name VARCHAR, release_date VARCHAR)
Question: What was the character name for the film with a release date of July 29, 1938?
Here is the SQLite ... | Here is the SQLite query to answer the question about the character name for the film with a release date of July 29, 1938:
```sql
SELECT character_name FROM table_name_72 WHERE release_date = "July 29, 1938";
``` | 10,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_72 (character_name VARCHAR, release_date VARCHAR)\n\n Question: What was the character name for the film with a release... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (locomotive VARCHAR, delivered_as VARCHAR)
Question: What Locomotive was Delivered as T414?
Here is the SQLite query to answer to the question: What Locomot... | Here is the SQLite query to answer the question about which locomotive was delivered as T414:
```
SELECT locomotive FROM table_name_2 WHERE delivered_as = "T414";
``` | 10,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_2 (locomotive VARCHAR, delivered_as VARCHAR)\n\n Question: What Locomotive was Delivered as T414?\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_70 (owner VARCHAR, delivered_as VARCHAR)
Question: What Owner Delivered the T415?
Here is the SQLite query to answer to the question: What Owner Delivered the... | Here is the SQLite query to answer the question: What Owner Delivered the T415?:
```
SELECT owner FROM table_name_70 WHERE delivered_as = "t415"
``` | 10,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_70 (owner VARCHAR, delivered_as VARCHAR)\n\n Question: What Owner Delivered the T415?\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_32 (entered_service VARCHAR, delivered_as VARCHAR)
Question: What is the Entered service date of the T413?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question regarding the Entered service date of the T413:
```
SELECT entered_service FROM table_name_32 WHERE delivered_as = "T413";
``` | 10,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_32 (entered_service VARCHAR, delivered_as VARCHAR)\n\n Question: What is the Entered service date of the T413?\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_64 (delivered_as VARCHAR, locomotive VARCHAR)
Question: What is the Delivered as name of the H3 Locomotive?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about the Delivered as name of the H3 Locomotive:
```
SELECT delivered_as FROM table_name_64 WHERE locomotive = "H3";
``` | 10,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_64 (delivered_as VARCHAR, locomotive VARCHAR)\n\n Question: What is the Delivered as name of the H3 Locomotive?\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_54 (entered_service VARCHAR, locomotive VARCHAR)
Question: What is the Entered service date of the H1 Locomotive?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about the Entered service date of the H1 Locomotive:
```sql
SELECT entered_service FROM table_name_54 WHERE locomotive = "H1";
``` | 10,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_54 (entered_service VARCHAR, locomotive VARCHAR)\n\n Question: What is the Entered service date of the H1 Locomotive?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (week INTEGER, result VARCHAR)
Question: What was the highest week with a result of l 16–12?
Here is the SQLite query to answer to the question: What was t... | Here is the SQLite query to answer the question about the highest week with a result of "l 16–12":
```sql
SELECT MAX(week) FROM table_name_53 WHERE result = "l 16–12";
``` | 10,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_53 (week INTEGER, result VARCHAR)\n\n Question: What was the highest week with a result of l 16–12?\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_52 (opponent VARCHAR, result VARCHAR)
Question: Who was the opponent at the game with a result of l 27–3?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: Who was the opponent at the game with a result of l 27–3?:
```
SELECT opponent FROM table_name_52 WHERE result = "l 27–3";
``` | 10,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_52 (opponent VARCHAR, result VARCHAR)\n\n Question: Who was the opponent at the game with a result of l 27–3?\n\nHere i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.