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_47 (country VARCHAR, score VARCHAR)
Question: What is the Country of the Player with a Score of 66-72-70-69=277?
Here is the SQLite query to answer to the que... | The provided SQLite query has a syntax error and does not correctly calculate the score. Instead, you need to compare the `score` column to the total score of 277. To do this, the query should look for records where the score matches '277' as a string.
Here is the corrected query:
```sql
SELECT country FROM table_na... | 16,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_47 (country VARCHAR, score VARCHAR)\n\n Question: What is the Country of the Player with a Score of 66-72-70-69=277?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (grid INTEGER, driver VARCHAR, laps VARCHAR)
Question: What is the sum of a grid for driver Patrick Carpentier and less than 103 laps?
Here is the SQLite q... | Here is the SQLite query to answer the question:
```
SELECT SUM(grid) FROM table_name_58 WHERE driver = "Patrick Carpentier" AND laps < 103;
``` | 16,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_58 (grid INTEGER, driver VARCHAR, laps VARCHAR)\n\n Question: What is the sum of a grid for driver Patrick Carpentier a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (team VARCHAR, laps VARCHAR, points VARCHAR, time_retired VARCHAR)
Question: What team has 0 points and a contact tired/retired, and 71 laps?
Here is the S... | Here is the SQLite query to answer the question:
```
SELECT team FROM table_name_80 WHERE points = '0' AND time_retired LIKE '%contact%' AND laps = '71';
``` | 16,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_80 (team VARCHAR, laps VARCHAR, points VARCHAR, time_retired VARCHAR)\n\n Question: What team has 0 points and a contac... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (laps INTEGER, team VARCHAR, points VARCHAR)
Question: What is the sum of lap for the Dale Coyne Racing Team, and 0 points?
Here is the SQLite query to answ... | Here's the corrected SQLite query to sum the laps for the Dale Coyne Racing Team with 0 points, keeping in mind that the points might be stored as a string since it's defined as VARCHAR:
```sql
SELECT SUM(laps) FROM table_name_8 WHERE team = "Dale Coyne Racing" AND points = "0"
``` | 16,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_8 (laps INTEGER, team VARCHAR, points VARCHAR)\n\n Question: What is the sum of lap for the Dale Coyne Racing Team, and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (laps INTEGER, points INTEGER)
Question: What is the lowest number of laps with more than 16 points?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the lowest number of laps with more than 16 points:
```
SELECT MIN(laps) FROM table_name_29 WHERE points > 16
``` | 16,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_29 (laps INTEGER, points INTEGER)\n\n Question: What is the lowest number of laps with more than 16 points?\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_70 (team VARCHAR, laps VARCHAR, grid VARCHAR)
Question: What team has 104 laps and a grid of 10?
Here is the SQLite query to answer to the question: What team... | Here is the SQLite query to answer the question of which team has 104 laps and a grid of 10:
```
SELECT team FROM table_name_70 WHERE laps = '104' AND grid = '10';
``` | 16,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_70 (team VARCHAR, laps VARCHAR, grid VARCHAR)\n\n Question: What team has 104 laps and a grid of 10?\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_81 (year VARCHAR, opening VARCHAR)
Question: Which year had e34 Nimzo-Indian defence is the opening?
Here is the SQLite query to answer to the question: Which... | Your provided SQLite query is almost correct, but it seems like there might be an issue with the string case when comparing the `opening` field. SQLite string comparisons are case-sensitive; thus, you should ensure that the case matches how it is stored in the database, or you can use a function to handle case insensit... | 16,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_81 (year VARCHAR, opening VARCHAR)\n\n Question: Which year had e34 Nimzo-Indian defence is the opening?\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_40 (quantity INTEGER, number_s_ VARCHAR)
Question: What is the average quantity that has 1104 as the number(s)?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question about the average quantity where the number(s) is 1104:
```
SELECT AVG(quantity) FROM table_name_40 WHERE number_s_ = "1104";
``` | 16,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_40 (quantity INTEGER, number_s_ VARCHAR)\n\n Question: What is the average quantity that has 1104 as the number(s)?\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_26 (type VARCHAR, quantity VARCHAR)
Question: What type has 5 as the quantity?
Here is the SQLite query to answer to the question: What type has 5 as the quan... | Here is the SQLite query to answer the question: What type has 5 as the quantity?:
```sql
SELECT type FROM table_name_26 WHERE quantity = '5';
``` | 16,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_26 (type VARCHAR, quantity VARCHAR)\n\n Question: What type has 5 as the quantity?\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_44 (years VARCHAR, player VARCHAR)
Question: What years did Alvin Mitchell play?
Here is the SQLite query to answer to the question: What years did Alvin Mitc... | Here is the SQLite query to answer the question: What years did Alvin Mitchell play?:
```
SELECT years FROM table_name_44 WHERE player = "Alvin Mitchell";
``` | 16,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_44 (years VARCHAR, player VARCHAR)\n\n Question: What years did Alvin Mitchell play?\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_63 (player VARCHAR, team VARCHAR)
Question: Who is the player on a team from the 1970s?
Here is the SQLite query to answer to the question: Who is the player ... | It looks like you want to retrieve players from a specific team associated with the 1970s. However, based on the provided schema, there isn't a field to directly denote a team's era or year range. If you specifically want players from teams that are designated as "1970s", the query you've provided is mostly correct.
I... | 16,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_63 (player VARCHAR, team VARCHAR)\n\n Question: Who is the player on a team from the 1970s?\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_39 (team VARCHAR, player VARCHAR)
Question: What team does Oliver Dobbins play for?
Here is the SQLite query to answer to the question: What team does Oliver ... | Here is the SQLite query to answer the question about which team Oliver Dobbins plays for:
```
SELECT team FROM table_name_39 WHERE player = "Oliver Dobbins"
``` | 16,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_39 (team VARCHAR, player VARCHAR)\n\n Question: What team does Oliver Dobbins play for?\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_54 (opponent VARCHAR, tournament VARCHAR)
Question: Who was the opponent in the mallorca 2, spain tournament?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about who the opponent was in the "mallorca 2, spain" tournament:
```
SELECT opponent FROM table_name_54 WHERE tournament = "mallorca 2, spain";
``` | 16,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_54 (opponent VARCHAR, tournament VARCHAR)\n\n Question: Who was the opponent in the mallorca 2, spain tournament?\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_7 (date VARCHAR, opponent VARCHAR)
Question: When was varvara lepchenko the opponent?
Here is the SQLite query to answer to the question: When was varvara lep... | Here is the SQLite query to answer the question "When was varvara lepchenko the opponent?":
```
SELECT date FROM table_name_7 WHERE opponent = "varvara lepchenko"
``` | 16,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_7 (date VARCHAR, opponent VARCHAR)\n\n Question: When was varvara lepchenko the opponent?\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_71 (to_par VARCHAR, total VARCHAR)
Question: For the total of 288 what was the to par?
Here is the SQLite query to answer to the question: For the total of 28... | Here is the SQLite query to answer the question about the total of 288 and its corresponding to par:
```
SELECT to_par FROM table_name_71 WHERE total = '288'
``` | 16,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 (to_par VARCHAR, total VARCHAR)\n\n Question: For the total of 288 what was the to par?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (year_s__won VARCHAR, country VARCHAR, total VARCHAR)
Question: What year did the United States win with a total of 278?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the year the United States won with a total of 278:
```
SELECT year_s__won FROM table_name_4 WHERE country = "United States" AND total = '278'
```
Note that I corrected the capitalization of "United States" to match proper naming conventions. Additionally, since ... | 16,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_4 (year_s__won VARCHAR, country VARCHAR, total VARCHAR)\n\n Question: What year did the United States win with a total ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (total INTEGER, finish VARCHAR)
Question: What was the lowest total with a finish of t47?
Here is the SQLite query to answer to the question: What was the ... | Here is the SQLite query to answer the question about the lowest total with a finish of t47:
```
SELECT MIN(total) FROM table_name_88 WHERE finish = "t47"
``` | 16,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_88 (total INTEGER, finish VARCHAR)\n\n Question: What was the lowest total with a finish of t47?\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_97 (to_par VARCHAR, total INTEGER)
Question: What is the to par when the total is larger than 288?
Here is the SQLite query to answer to the question: What is... | Your SQLite query is correctly formulated to answer the question regarding the `to_par` values when the `total` is larger than 288. Here it is wrapped in the appropriate formatting:
```
SELECT to_par FROM table_name_97 WHERE total > 288;
```
This will return all values of `to_par` from the `table_name_97` table wher... | 16,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_97 (to_par VARCHAR, total INTEGER)\n\n Question: What is the to par when the total is larger than 288?\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_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)
Question: What is the rank for total less than 5, 1 bronze and less than 1 silver?
Here is th... | The query you've provided contains some minor mistakes, particularly in how conditions are stated for the `bronze` and `silver` columns. Given that `silver` and `bronze` are defined as `VARCHAR` in the schema, you need to compare their values as strings instead of integers. Following the correct logic, here's how the q... | 16,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_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)\n\n Question: What is the rank for total less than 5, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (bronze INTEGER, rank VARCHAR, gold VARCHAR)
Question: What is the most possible bronze medals when rank is more than 11 and there are fewer than 0 gold med... | The provided SQLite query contains a logical error because comparing a string column (`gold`) to an integer (`0`) in the condition `gold < 0` will not produce the desired result. You should be comparing to an appropriate value that reflects the intended meaning of gold medals.
If you want to find records where there a... | 16,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_95 (bronze INTEGER, rank VARCHAR, gold VARCHAR)\n\n Question: What is the most possible bronze medals when rank is more... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (total INTEGER, gold VARCHAR, silver VARCHAR)
Question: What is the least total when there are more than 2 golds and fewer than 0 silver?
Here is the SQLite... | It seems there is a misunderstanding in your SQL query regarding the data types of the `gold` and `silver` columns. Since both columns are defined as `VARCHAR`, you cannot directly compare them to integers (like `2` or `0`). You first need to convert them into integers, assuming they can be converted, before performing... | 16,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_6 (total INTEGER, gold VARCHAR, silver VARCHAR)\n\n Question: What is the least total when there are more than 2 golds ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (visitor VARCHAR, record VARCHAR)
Question: Which visitor has a record of 2-4?
Here is the SQLite query to answer to the question: Which visitor has a reco... | Here is the SQLite query to answer the question: Which visitor has a record of 2-4?:
```
SELECT visitor FROM table_name_39 WHERE record = "2-4";
``` | 16,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_39 (visitor VARCHAR, record VARCHAR)\n\n Question: Which visitor has a record of 2-4?\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_81 (record VARCHAR, date VARCHAR)
Question: What is the record on April 28?
Here is the SQLite query to answer to the question: What is the record on April 28... | Here is the SQLite query to answer to the question: What is the record on April 28?:
```
SELECT record FROM table_name_81 WHERE date = "April 28";
``` | 16,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_81 (record VARCHAR, date VARCHAR)\n\n Question: What is the record on April 28?\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_36 (score VARCHAR, home VARCHAR, record VARCHAR)
Question: What is the score for the Chicago Black Hawks game with a record of 2-1?
Here is the SQLite query t... | Here is the SQLite query to answer the question about the score for the Chicago Black Hawks game with a record of 2-1:
```
SELECT score FROM table_name_36 WHERE home = "chicago black hawks" AND record = "2-1";
``` | 16,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_36 (score VARCHAR, home VARCHAR, record VARCHAR)\n\n Question: What is the score for the Chicago Black Hawks game with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (year INTEGER, hometown VARCHAR)
Question: What's the latest year with a hometown of san carlos, pangasinan?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer to the question: What's the latest year with a hometown of san carlos, pangasinan?:
```
SELECT MAX(year) FROM table_name_50 WHERE hometown = "san carlos, pangasinan"
``` | 16,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_50 (year INTEGER, hometown VARCHAR)\n\n Question: What's the latest year with a hometown of san carlos, pangasinan?\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_77 (other_awards VARCHAR, year VARCHAR)
Question: What are the other awards for 1995?
Here is the SQLite query to answer to the question: What are the other a... | Here is the SQLite query to answer the question about the other awards for 1995:
```
SELECT other_awards FROM table_name_77 WHERE year = '1995'
``` | 16,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_77 (other_awards VARCHAR, year VARCHAR)\n\n Question: What are the other awards for 1995?\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_11 (year INTEGER, placement_in_miss_world VARCHAR, delegate VARCHAR)
Question: What's the latest year that daisy garcia reyes did not place in miss world?
Her... | Here is the SQLite query to answer the question regarding the latest year that Daisy Garcia Reyes did not place in Miss World:
```
SELECT MAX(year) FROM table_name_11 WHERE placement_in_miss_world = "did not place" AND delegate = "daisy garcia reyes"
``` | 16,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_11 (year INTEGER, placement_in_miss_world VARCHAR, delegate VARCHAR)\n\n Question: What's the latest year that daisy ga... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (venue VARCHAR, against INTEGER)
Question: Which venue had an against smaller than 7?
Here is the SQLite query to answer to the question: Which venue had a... | Here is the SQLite query to answer the question: Which venue had an against smaller than 7?:
```
SELECT venue FROM table_name_15 WHERE against < 7;
``` | 16,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_15 (venue VARCHAR, against INTEGER)\n\n Question: Which venue had an against smaller than 7?\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_92 (date VARCHAR, opposing_teams VARCHAR, against VARCHAR)
Question: What day was Australia the opposing team and the against 12?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about what day Australia was the opposing team and the against was 12:
```
SELECT date FROM table_name_92 WHERE opposing_teams = "australia" AND against = 12;
``` | 16,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_92 (date VARCHAR, opposing_teams VARCHAR, against VARCHAR)\n\n Question: What day was Australia the opposing team 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_17 (date VARCHAR, opposing_teams VARCHAR)
Question: What day was Wales the opposing team?
Here is the SQLite query to answer to the question: What day was Wal... | Your SQLite query looks good for fetching the dates when Wales was the opposing team. Here it is wrapped properly:
```
SELECT date FROM table_name_17 WHERE opposing_teams = "wales";
```
This query will select the `date` from the `table_name_17` table where the `opposing_teams` column matches "wales". Make sure that ... | 16,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_17 (date VARCHAR, opposing_teams VARCHAR)\n\n Question: What day was Wales the opposing team?\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_85 (money___ VARCHAR, score VARCHAR)
Question: What is the amount of money with a score of 67-71-70-71=279?
Here is the SQLite query to answer to the question... | The provided SQLite query contains an incorrect calculation within the `WHERE` clause. You need to calculate the sum of the scores correctly and then compare against 279. Here is the corrected SQLite query:
```sql
SELECT money___
FROM table_name_85
WHERE (CAST(score AS INTEGER) + 71 + 70 + 71) = 279;
```
Please not... | 16,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_85 (money___ VARCHAR, score VARCHAR)\n\n Question: What is the amount of money with a score of 67-71-70-71=279?\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_22 (to_par VARCHAR, player VARCHAR)
Question: What is Dave Rummells's to par?
Here is the SQLite query to answer to the question: What is Dave Rummells's to p... | Here is the SQLite query to answer the question about Dave Rummells's to par:
```
SELECT to_par FROM table_name_22 WHERE player = "Dave Rummells";
``` | 16,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_22 (to_par VARCHAR, player VARCHAR)\n\n Question: What is Dave Rummells's to par?\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_51 (to_par VARCHAR, score VARCHAR)
Question: What is the to par number with a score of 67-66-71-71=275?
Here is the SQLite query to answer to the question: Wh... | The SQLite query you've provided contains an incorrect syntax for the comparison as well as some logical issues with how the score is calculated. In SQL, you compare directly with the result of a specific calculation rather than trying to embed a mathematical operation in the WHERE clause in that way.
Since the score ... | 16,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_51 (to_par VARCHAR, score VARCHAR)\n\n Question: What is the to par number with a score of 67-66-71-71=275?\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_55 (country VARCHAR, player VARCHAR)
Question: What country is Steve Jones from?
Here is the SQLite query to answer to the question: What country is Steve Jon... | Here is the SQLite query to answer the question: What country is Steve Jones from?:
```
SELECT country FROM table_name_55 WHERE player = "Steve Jones"
``` | 16,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_55 (country VARCHAR, player VARCHAR)\n\n Question: What country is Steve Jones from?\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_87 (black VARCHAR, opening VARCHAR, white VARCHAR, moves VARCHAR)
Question: Who was the opponent of Anand in the match with 20 moves that opened with E15 Queen... | Here is the SQLite query wrapped in code formatting as requested:
```
SELECT black FROM table_name_87 WHERE white = "anand" AND moves = 20 AND opening = "e15 queen's indian defence";
``` | 16,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_87 (black VARCHAR, opening VARCHAR, white VARCHAR, moves VARCHAR)\n\n Question: Who was the opponent of Anand in the ma... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (points VARCHAR, points_for VARCHAR)
Question: What is Points, when Points For is "points for"?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question: What is Points, when Points For is "points for"?:
```
SELECT points FROM table_name_71 WHERE points_for = "points for"
``` | 16,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_71 (points VARCHAR, points_for VARCHAR)\n\n Question: What is Points, when Points For is \"points for\"?\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_55 (drawn VARCHAR, played VARCHAR, points_against VARCHAR)
Question: What is Drawn, when Played is "18", and when Points Against is "478"?
Here is the SQLite ... | Here is the SQLite query formatted as you requested:
```
SELECT drawn FROM table_name_55 WHERE played = "18" AND points_against = "478"
``` | 16,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_55 (drawn VARCHAR, played VARCHAR, points_against VARCHAR)\n\n Question: What is Drawn, when Played is \"18\", and when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (points_for VARCHAR, club VARCHAR, losing_bonus VARCHAR, lost VARCHAR)
Question: What is Points For, when Losing Bonus is "2", when Lost is "8", and when Cl... | Here is the SQLite query to answer the question:
```
SELECT points_for FROM table_name_88 WHERE losing_bonus = "2" AND lost = "8" AND club = "Rhyl And District RFC"
``` | 16,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_88 (points_for VARCHAR, club VARCHAR, losing_bonus VARCHAR, lost VARCHAR)\n\n Question: What is Points For, when Losing... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (lost VARCHAR, points_for VARCHAR)
Question: What is Lost, when Points For is "205"?
Here is the SQLite query to answer to the question: What is Lost, when... | Here is the SQLite query to answer the question "What is Lost, when Points For is '205'?":
```
SELECT lost FROM table_name_16 WHERE points_for = "205";
``` | 16,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_16 (lost VARCHAR, points_for VARCHAR)\n\n Question: What is Lost, when Points For is \"205\"?\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_81 (played VARCHAR, tries_against VARCHAR)
Question: What is Played, when Tries Against is "63"?
Here is the SQLite query to answer to the question: What is P... | Your provided SQLite query is correct. Here it is wrapped in the requested formatting:
```
SELECT played FROM table_name_81 WHERE tries_against = "63";
``` | 16,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 (played VARCHAR, tries_against VARCHAR)\n\n Question: What is Played, when Tries Against is \"63\"?\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_98 (try_bonus VARCHAR, tries_for VARCHAR)
Question: What is Try Bonus, when Tries For is "39"?
Here is the SQLite query to answer to the question: What is Try... | Here is the SQLite query to answer the question:
```sql
SELECT try_bonus FROM table_name_98 WHERE tries_for = "39";
``` | 16,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_98 (try_bonus VARCHAR, tries_for VARCHAR)\n\n Question: What is Try Bonus, when Tries For is \"39\"?\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_63 (week_2 VARCHAR, week_4 VARCHAR)
Question: What Week 2 has a Week 4 of piret aava?
Here is the SQLite query to answer to the question: What Week 2 has a We... | Here is the SQLite query to answer the question: What Week 2 has a Week 4 of piret aava?:
```
SELECT week_2 FROM table_name_63 WHERE week_4 = "piret aava";
``` | 16,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_63 (week_2 VARCHAR, week_4 VARCHAR)\n\n Question: What Week 2 has a Week 4 of piret aava?\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_16 (week_2 VARCHAR, week_3 VARCHAR)
Question: What Week 2 has a Week 3 of casey mae?
Here is the SQLite query to answer to the question: What Week 2 has a Wee... | Your SQLite query to find the Week 2 values associated with a Week 3 value of "casey mae" is correctly formatted. Here it is wrapped in code formatting:
```
SELECT week_2 FROM table_name_16 WHERE week_3 = "casey mae";
``` | 16,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_16 (week_2 VARCHAR, week_3 VARCHAR)\n\n Question: What Week 2 has a Week 3 of casey mae?\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_66 (week_2 VARCHAR, week_1 VARCHAR)
Question: What Week 2 has a Week 1 of crystal beddows?
Here is the SQLite query to answer to the question: What Week 2 has... | Your SQLite query to find out what Week 2 has a Week 1 of "crystal beddows" is correctly written. Here it is wrapped in code formatting:
```
SELECT week_2 FROM table_name_66 WHERE week_1 = "crystal beddows";
```
This query will return the values from the `week_2` column for any rows where the `week_1` column matches... | 16,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_66 (week_2 VARCHAR, week_1 VARCHAR)\n\n Question: What Week 2 has a Week 1 of crystal beddows?\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_95 (week_3 VARCHAR, week_4 VARCHAR)
Question: What Week 3 has a Week 4 of gina blair?
Here is the SQLite query to answer to the question: What Week 3 has a We... | Your SQLite query looks correct for the question you posed. Here's the formatted SQL code:
```sql
SELECT week_3 FROM table_name_95 WHERE week_4 = "gina blair";
```
This query retrieves all entries from the `week_3` column in the `table_name_95` where the `week_4` column matches "gina blair". | 16,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_95 (week_3 VARCHAR, week_4 VARCHAR)\n\n Question: What Week 3 has a Week 4 of gina blair?\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_10 (week_5 VARCHAR, week_1 VARCHAR)
Question: What Week 5 has a Week 1 of mysti sherwood?
Here is the SQLite query to answer to the question: What Week 5 has ... | Here is the SQLite query to answer the question: What Week 5 has a Week 1 of mysti sherwood?:
```
SELECT week_5 FROM table_name_10 WHERE week_1 = "mysti sherwood";
``` | 16,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_10 (week_5 VARCHAR, week_1 VARCHAR)\n\n Question: What Week 5 has a Week 1 of mysti sherwood?\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_62 (week_4 VARCHAR, week_2 VARCHAR)
Question: What Week 4 has a Week 2 of samantha speer?
Here is the SQLite query to answer to the question: What Week 4 has ... | Your SQLite query is correct to find the Week 4 associated with a Week 2 of "samantha speer". Here it is properly formatted:
```
SELECT week_4 FROM table_name_62 WHERE week_2 = "samantha speer";
``` | 16,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_62 (week_4 VARCHAR, week_2 VARCHAR)\n\n Question: What Week 4 has a Week 2 of samantha speer?\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_14 (election VARCHAR)
Question: Which 2nd Party has a Election of 1857?
Here is the SQLite query to answer to the question: Which 2nd Party has a Election of ... | The query you provided has a small issue; it does not select the name of the 2nd Party but rather just returns the constant value 2 as `nd_party`. Assuming there is supposed to be a column that identifies the party, the schema provided does not seem to include it. However, if you're asking for a 2nd Party associated wi... | 16,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_14 (election VARCHAR)\n\n Question: Which 2nd Party has a Election of 1857?\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_17 (election VARCHAR)
Question: Which 2nd Party has a Election of 1857?
Here is the SQLite query to answer to the question: Which 2nd Party has a Election of ... | Here is the SQLite query to answer the question "Which 2nd Party has a Election of 1857?":
```
SELECT '2nd Party' AS nd_party FROM table_name_17 WHERE election = '1857';
``` | 16,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_17 (election VARCHAR)\n\n Question: Which 2nd Party has a Election of 1857?\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_51 (election VARCHAR)
Question: which 1st Member has a Election of 1832
Here is the SQLite query to answer to the question: which 1st Member has a Election of... | Here is the SQLite query to answer the question of which 1st Member has an Election of 1832:
```sql
SELECT 1 AS st_member FROM table_name_51 WHERE election = "1832";
``` | 16,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_51 (election VARCHAR)\n\n Question: which 1st Member has a Election of 1832\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_42 (name VARCHAR, moving_from VARCHAR, type VARCHAR)
Question: Who is moving from Treviso with a loan return?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question: Who is moving from Treviso with a loan return?:
```
SELECT name FROM table_name_42 WHERE moving_from = "Treviso" AND type = "loan return";
``` | 16,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_42 (name VARCHAR, moving_from VARCHAR, type VARCHAR)\n\n Question: Who is moving from Treviso with a loan return?\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_9 (nat VARCHAR, name VARCHAR)
Question: What is the nationality of Acquafresca?
Here is the SQLite query to answer to the question: What is the nationality of... | Here is the SQLite query wrapped as requested:
```
SELECT nat FROM table_name_9 WHERE name = "Acquafresca";
``` | 16,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_9 (nat VARCHAR, name VARCHAR)\n\n Question: What is the nationality of Acquafresca?\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_89 (type VARCHAR, transfer_window VARCHAR, moving_from VARCHAR)
Question: What is the type if the transfer window is summer and the moving from category is fre... | Here is the SQLite query to answer the question:
```
SELECT type FROM table_name_89 WHERE transfer_window = "summer" AND moving_from = "free agent"
``` | 16,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_89 (type VARCHAR, transfer_window VARCHAR, moving_from VARCHAR)\n\n Question: What is the type if the transfer window i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (transfer_window VARCHAR, moving_from VARCHAR)
Question: What is the transfer window for the moving from of São Paulo?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the transfer window for the moving from of São Paulo:
```
SELECT transfer_window FROM table_name_46 WHERE moving_from = "São Paulo";
``` | 16,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_46 (transfer_window VARCHAR, moving_from VARCHAR)\n\n Question: What is the transfer window for the moving from of São ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR)
Question: What is the moving from with a transfer and the nationality of Bra?
Here is the SQLite query to ... | Your SQLite query looks correct and is well-structured based on the given schema and question. Here it is wrapped in the appropriate code formatting:
```
SELECT moving_from FROM table_name_22 WHERE type = "transfer" AND nat = "bra";
```
This query will return the values in the `moving_from` column where the `type` i... | 16,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_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR)\n\n Question: What is the moving from with a transfer and the natio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (ends VARCHAR, name VARCHAR)
Question: What is the end date for Maaroufi?
Here is the SQLite query to answer to the question: What is the end date for Maar... | Here is the SQLite query to answer the question regarding the end date for Maaroufi:
```
SELECT ends FROM table_name_59 WHERE name = "Maaroufi"
``` | 16,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_59 (ends VARCHAR, name VARCHAR)\n\n Question: What is the end date for Maaroufi?\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_40 (result VARCHAR, date VARCHAR)
Question: The game played on October 2, 1966 had what result?
Here is the SQLite query to answer to the question: The game p... | Here is the SQLite query to answer the question:
```
SELECT result FROM table_name_40 WHERE date = "October 2, 1966";
``` | 16,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_40 (result VARCHAR, date VARCHAR)\n\n Question: The game played on October 2, 1966 had what result?\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 (opponent VARCHAR, date VARCHAR)
Question: Who was the game played against on October 9, 1966?
Here is the SQLite query to answer to the question: Who was ... | Here is the SQLite query to answer the question of who the game was played against on October 9, 1966:
```
SELECT opponent FROM table_name_18 WHERE date = "October 9, 1966"
``` | 16,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_18 (opponent VARCHAR, date VARCHAR)\n\n Question: Who was the game played against on October 9, 1966?\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_13 (week INTEGER, attendance VARCHAR)
Question: What is the maximum week that 69,372 people attended the game?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to find the maximum week that 69,372 people attended the game:
```
SELECT MAX(week) FROM table_name_13 WHERE attendance = '69,372';
``` | 16,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_13 (week INTEGER, attendance VARCHAR)\n\n Question: What is the maximum week that 69,372 people attended the game?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (date VARCHAR, week VARCHAR, attendance VARCHAR)
Question: What is the date of the game played after week 4 with 60,658 people in attendance?
Here is the S... | Here is the SQLite query to answer the question about the date of the game played after week 4 with 60,658 people in attendance:
```
SELECT date FROM table_name_28 WHERE week > '4' AND attendance = '60,658';
``` | 16,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_28 (date VARCHAR, week VARCHAR, attendance VARCHAR)\n\n Question: What is the date of the game played after week 4 with... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (capacity INTEGER, city VARCHAR)
Question: What is the total capacity for the city of Trogir?
Here is the SQLite query to answer to the question: What is t... | Your SQL query is correct for calculating the total capacity for the city of Trogir. Here's the formatted code:
```
SELECT SUM(capacity) FROM table_name_21 WHERE city = "trogir";
``` | 16,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_21 (capacity INTEGER, city VARCHAR)\n\n Question: What is the total capacity for the city of Trogir?\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_17 (party VARCHAR, established VARCHAR, election VARCHAR)
Question: What party established in 1797 won an election in 2007?
Here is the SQLite query to answer... | The provided query has a small mistake in the condition for the establishment year. It should check for parties established specifically in 1797, not greater than. Here is the corrected query:
```
SELECT party FROM table_name_17 WHERE established = '1797' AND election = '2007'
``` | 16,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_17 (party VARCHAR, established VARCHAR, election VARCHAR)\n\n Question: What party established in 1797 won an election ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (played INTEGER, lost VARCHAR, drawn VARCHAR)
Question: What Played has a Lost smaller than 3, and a Drawn smaller than 0?
Here is the SQLite query to answ... | The query you provided is almost correct in terms of syntax, but there is a misconception regarding the data types of the columns `lost` and `drawn`. Since `lost` and `drawn` are defined as `VARCHAR`, you should be careful about the comparisons. If you indeed have numeric values stored as text, you may need to convert ... | 16,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_13 (played INTEGER, lost VARCHAR, drawn VARCHAR)\n\n Question: What Played has a Lost smaller than 3, and a Drawn small... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (_percentage_won INTEGER, lost INTEGER)
Question: What is the largest % Won with a Lost smaller than 0?
Here is the SQLite query to answer to the question:... | Your SQLite query is correct. Here it is wrapped properly:
```
SELECT MAX(_percentage_won) FROM table_name_89 WHERE lost < 0
```
This query retrieves the maximum value of `_percentage_won` from `table_name_89` where the `lost` column has values less than 0. | 16,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_89 (_percentage_won INTEGER, lost INTEGER)\n\n Question: What is the largest % Won with a Lost smaller than 0?\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_76 (against INTEGER, _percentage_won INTEGER)
Question: What is the total of Against with % Won larger than 100?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the total of `against` with `% Won` larger than 100:
```
SELECT SUM(against) FROM table_name_76 WHERE _percentage_won > 100
``` | 16,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_76 (against INTEGER, _percentage_won INTEGER)\n\n Question: What is the total of Against with % Won larger than 100?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (against INTEGER, played VARCHAR, lost VARCHAR, _percentage_won VARCHAR)
Question: What is the smallest Against with Lost larger than 0, % Won larger than 5... | Here is the corrected SQLite query to answer your question:
```sql
SELECT MIN(against)
FROM table_name_48
WHERE lost > 0 AND _percentage_won > '50' AND played < '5';
```
Note: In the provided fields 'lost', '_percentage_won', and 'played' are stored as VARCHAR, so comparisons should be made as strings. Make sure yo... | 16,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_48 (against INTEGER, played VARCHAR, lost VARCHAR, _percentage_won VARCHAR)\n\n Question: What is the smallest Against ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (lost INTEGER, against VARCHAR, played VARCHAR)
Question: What is the Lost with Against smaller than 25, and Played smaller than 1?
Here is the SQLite quer... | Your provided SQL query captures the essence of the question. However, it seems the intention might be to directly fetch the values rather than the average. Given your question, if you want to select the `lost` values based on the conditions, you would typically write:
```sql
SELECT lost FROM table_name_93 WHERE again... | 16,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_93 (lost INTEGER, against VARCHAR, played VARCHAR)\n\n Question: What is the Lost with Against smaller than 25, and Pla... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (height__m_ INTEGER, prominence__m_ VARCHAR)
Question: What is the largest height when the prominence is 3,118?
Here is the SQLite query to answer to the q... | It looks like there is an issue in your SQL query syntax. The `OFFSET` clause is incorrectly used, and it seems you intended to filter based on the value of `prominence__m_` being `'3,118'`. Additionally, the prominence value should be treated as a string since it is defined as VARCHAR. Here's the corrected query:
```... | 16,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_98 (height__m_ INTEGER, prominence__m_ VARCHAR)\n\n Question: What is the largest height when the prominence is 3,118?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (tie_no VARCHAR, away_team VARCHAR)
Question: What is the Tie number of when Wigan Athletic was the away team?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding the Tie number when Wigan Athletic was the away team:
```
SELECT tie_no FROM table_name_34 WHERE away_team = "Wigan Athletic";
``` | 16,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_34 (tie_no VARCHAR, away_team VARCHAR)\n\n Question: What is the Tie number of when Wigan Athletic was the away team?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (date VARCHAR, tie_no VARCHAR)
Question: Name the team with a tie number of 6.
Here is the SQLite query to answer to the question: Name the team with a tie... | To answer the question and name the team with a tie number of 6, you can use the following SQLite query:
```
SELECT date FROM table_name_51 WHERE tie_no = '6';
```
This query will retrieve the `date` associated with the tie number "6" from the `table_name_51` table. | 16,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_51 (date VARCHAR, tie_no VARCHAR)\n\n Question: Name the team with a tie number of 6.\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (ship VARCHAR, country VARCHAR, builder VARCHAR)
Question: What ship was built by Palmers Shipbuilding and Iron Company for the Royal Navy?
Here is the SQL... | Here is the SQLite query to answer the question about which ship was built by Palmers Shipbuilding and Iron Company for the Royal Navy:
```
SELECT ship FROM table_name_81 WHERE country = "Royal Navy" AND builder = "Palmers Shipbuilding and Iron Company";
``` | 16,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_81 (ship VARCHAR, country VARCHAR, builder VARCHAR)\n\n Question: What ship was built by Palmers Shipbuilding and Iron ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (class___type VARCHAR, location VARCHAR)
Question: What is the class/type at Trieste?
Here is the SQLite query to answer to the question: What is the class... | Sure! Here is the SQLite query wrapped in the specified format:
```
SELECT class___type FROM table_name_32 WHERE location = "trieste";
``` | 16,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_32 (class___type VARCHAR, location VARCHAR)\n\n Question: What is the class/type at Trieste?\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_96 (country VARCHAR, builder VARCHAR)
Question: What is the country of Palmers Shipbuilding and Iron Company?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the country of Palmers Shipbuilding and Iron Company:
```
SELECT country FROM table_name_96 WHERE builder = "Palmers Shipbuilding and Iron Company";
``` | 16,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_96 (country VARCHAR, builder VARCHAR)\n\n Question: What is the country of Palmers Shipbuilding and Iron Company?\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_96 (country VARCHAR, location VARCHAR)
Question: In what country is Aberdeen?
Here is the SQLite query to answer to the question: In what country is Aberdeen?... | Here is the SQLite query to answer the question: In what country is Aberdeen?:
```
SELECT country FROM table_name_96 WHERE location = "Aberdeen";
``` | 16,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_96 (country VARCHAR, location VARCHAR)\n\n Question: In what country is Aberdeen?\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_1 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)
Question: Which Number of households has a Median household income of $32... | It seems there are a couple of issues in your SQL query based on the context of the question and the database schema provided. Specifically, the use of quotes in the income value and improper use of the `OFFSET` clause. Here’s the corrected SQL query:
```sql
SELECT number_of_households
FROM table_name_1
WHERE median... | 16,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_1 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)\n\n Question: Which Number of hou... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (county VARCHAR, median_household_income VARCHAR)
Question: Which County has a Median household income of $37,230?
Here is the SQLite query to answer to th... | Your query is almost correct, but when referencing a string in SQLite, it's recommended to use single quotes instead of double quotes. Here’s the corrected query:
```
SELECT county FROM table_name_96 WHERE median_household_income = '$37,230';
``` | 16,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_96 (county VARCHAR, median_household_income VARCHAR)\n\n Question: Which County has a Median household income of $37,23... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR)
Question: Which Population has a County of mississippi, and a Number of households smalle... | There seems to be a minor mistake in your SQL query. The condition should check if the `number_of_households` is less than 17,741, but you have an unusual `OFFSET` clause which appears to be used incorrectly here. Additionally, `number_of_households` is of type `VARCHAR`, so you will need to convert it to an integer be... | 16,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_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR)\n\n Question: Which Population has a County of mi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (height INTEGER, position VARCHAR, year_born__age_ VARCHAR)
Question: Count the average Height which has a Position of pf, and a Year born (Age) on april 1,... | Here is the SQLite query to count the average height for records with a position of "pf" and a year born on April 1, 1981 (age 32):
```
SELECT AVG(height) FROM table_name_27 WHERE position = 'pf' AND year_born__age_ = 'april 1, 1981 (age32)';
``` | 16,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 (height INTEGER, position VARCHAR, year_born__age_ VARCHAR)\n\n Question: Count the average Height which has a Posit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (height INTEGER, position VARCHAR, player VARCHAR)
Question: Which Height has a Position of c, and a Player of yiannis bourousis?
Here is the SQLite query ... | Your query is on the right track, but if you are looking for the specific height rather than the sum of heights, you should use a different aggregate function. Assuming you want to retrieve the height directly, here is the corrected query:
```
SELECT height FROM table_name_50 WHERE position = "c" AND player = "yiannis... | 16,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_50 (height INTEGER, position VARCHAR, player VARCHAR)\n\n Question: Which Height has a Position of c, and a Player of y... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (outcome VARCHAR, score_in_the_final VARCHAR)
Question: Which Outcome has a Score in the final of 1–6, 6–4, 7–5?
Here is the SQLite query to answer to the ... | To find the outcomes with scores in the final of "1–6", "6–4", or "7–5", you can use the `IN` clause in your SQL query. Here’s the corrected query:
```sql
SELECT outcome
FROM table_name_61
WHERE score_in_the_final IN ("1–6", "6–4", "7–5");
```
This query will return all outcomes where the `score_in_the_final` matc... | 16,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_61 (outcome VARCHAR, score_in_the_final VARCHAR)\n\n Question: Which Outcome has a Score in the final of 1–6, 6–4, 7–5?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (outcome VARCHAR, score_in_the_final VARCHAR)
Question: Which Outcome has a Score in the final of 4–6, 5–7?
Here is the SQLite query to answer to the quest... | To retrieve the outcomes that have a score in the final of either "4–6" or "5–7", you can use the SQL `IN` clause or `OR` conditions. However, since you are interested in scores that match either of those values separately, your query should reflect that. Here is the corrected SQLite query:
```
SELECT outcome FROM tab... | 16,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_96 (outcome VARCHAR, score_in_the_final VARCHAR)\n\n Question: Which Outcome has a Score in the final of 4–6, 5–7?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (opponents_in_the_final VARCHAR, partner VARCHAR)
Question: Which Opponents in the final has a Partner of olga lugina?
Here is the SQLite query to answer t... | Your SQLite query looks correct for the given question. Here it is formatted as requested:
```
SELECT opponents_in_the_final FROM table_name_79 WHERE partner = "olga lugina"
```
This query will select the `opponents_in_the_final` where the `partner` is "olga lugina". | 16,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_79 (opponents_in_the_final VARCHAR, partner VARCHAR)\n\n Question: Which Opponents in the final has a Partner of olga l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (outcome VARCHAR, score_in_the_final VARCHAR)
Question: Which Outcome has a Score in the final of 3–6, 1–6?
Here is the SQLite query to answer to the quest... | Your provided query is almost correct, but it seems you want to select outcomes based on multiple score values. If you are looking for outcomes that have either score "3–6" or "1–6", you would typically use the `IN` operator or an `OR` clause. Here’s how you can structure the query:
```sql
SELECT outcome FROM table_na... | 16,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_57 (outcome VARCHAR, score_in_the_final VARCHAR)\n\n Question: Which Outcome has a Score in the final of 3–6, 1–6?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (rank INTEGER, name VARCHAR, birth VARCHAR)
Question: What rank is He Yingqin who was born before 1890?
Here is the SQLite query to answer to the question:... | It looks like you're trying to find the rank of He Yingqin who was born before 1890. However, using `AVG(rank)` is not appropriate if you are looking for a specific rank. Instead, you should directly select the rank. Here’s the corrected SQLite query:
```
SELECT rank FROM table_name_75 WHERE name = "He Yingqin" AND bi... | 16,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_75 (rank INTEGER, name VARCHAR, birth VARCHAR)\n\n Question: What rank is He Yingqin who was born before 1890?\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_74 (death VARCHAR, birth VARCHAR, rank VARCHAR)
Question: What year is the death for a birth of 1873 and higher than rank 28?
Here is the SQLite query to answ... | The provided query has a minor issue. It uses `birth = 1873`, which means it will only find deaths for the exact year of 1873. Instead, it should be looking for birth years "greater than or equal to" 1873. Here is the corrected query:
```sql
SELECT death FROM table_name_74 WHERE birth >= 1873 AND rank > 28;
``` | 16,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_74 (death VARCHAR, birth VARCHAR, rank VARCHAR)\n\n Question: What year is the death for a birth of 1873 and higher tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (name VARCHAR, death VARCHAR)
Question: What is the name with a death in 2001?
Here is the SQLite query to answer to the question: What is the name with a d... | Here is the SQLite query to answer the question: What is the name with a death in 2001?:
```sql
SELECT name FROM table_name_6 WHERE death = '2001';
``` | 16,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_6 (name VARCHAR, death VARCHAR)\n\n Question: What is the name with a death in 2001?\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_91 (team_1 VARCHAR)
Question: What is the 1st round result for ECAC Chaumont (D2) as team 1?
Here is the SQLite query to answer to the question: What is the 1... | Here is the SQLite query wrapped in the appropriate code format to find the 1st round result for ECAC Chaumont (D2) as team 1:
```
SELECT 1 AS st_round FROM table_name_91 WHERE team_1 = "ecac chaumont (d2)";
``` | 16,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_91 (team_1 VARCHAR)\n\n Question: What is the 1st round result for ECAC Chaumont (D2) as team 1?\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_21 (team_1 VARCHAR, team_2 VARCHAR)
Question: Which team 1 played against team 2 of Tours FC (D2)?
Here is the SQLite query to answer to the question: Which t... | Your SQLite query to find which team 1 played against team 2 of Tours FC (D2) is correctly structured. Here it is wrapped in the specified code format:
```
SELECT team_1 FROM table_name_21 WHERE team_2 = "tours fc (d2)"
``` | 16,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_21 (team_1 VARCHAR, team_2 VARCHAR)\n\n Question: Which team 1 played against team 2 of Tours FC (D2)?\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_45 (team_2 VARCHAR, team_1 VARCHAR)
Question: Which is team 2 when team 1 is ECAC Chaumont (d2)?
Here is the SQLite query to answer to the question: Which is ... | Here is the SQLite query to answer the question regarding team 2 when team 1 is ECAC Chaumont (d2):
```
SELECT team_2 FROM table_name_45 WHERE team_1 = "ECAC Chaumont (d2)";
``` | 16,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_45 (team_2 VARCHAR, team_1 VARCHAR)\n\n Question: Which is team 2 when team 1 is ECAC Chaumont (d2)?\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_57 (written_by VARCHAR, code VARCHAR)
Question: Which Written by has a Code of 1.2 1.3?
Here is the SQLite query to answer to the question: Which Written by h... | The query you provided will correctly retrieve the `written_by` entries that correspond to the specified `code`. However, if you are interested in finding entries that have either code `1.2` or `1.3`, you might want to use the `IN` clause or the `OR` condition.
Here is the SQLite query to answer the question, conside... | 16,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_57 (written_by VARCHAR, code VARCHAR)\n\n Question: Which Written by has a Code of 1.2 1.3?\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_16 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, average_population__x_1000_ VARCHAR)
Question: What is the highest crude death rate when deaths are 3 ... | Here is the SQLite query to answer the question about the highest crude death rate when deaths are 3 433 and the average population is greater than 298:
```
SELECT MAX(crude_death_rate__per_1000_)
FROM table_name_16
WHERE deaths = "3 433"
AND average_population__x_1000_ > 298;
``` | 16,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_16 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, average_population__x_1000_ VARCHAR)\n\n Question: What 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_79 (live_births VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, average_population__x_1000_ VARCHAR)
Question: How many live births where the cru... | It looks like there are a few issues with the SQL query you provided, particularly with the formatting and the intended logic of the query.
Here’s a corrected version of your SQL query, using the appropriate comparisons and ensuring the formatting of the deaths value is correctly interpreted as a number:
```sql
SELE... | 16,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_79 (live_births VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, average_population__x_1000_ VARCHAR)\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_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)
Question: What is the national change whe... | Here is the SQLite query to answer the question about the national change where the crude birth rate is less than 11.4, the crude death rate is more than 12.1, and the deaths are equal to 4,376:
```
SELECT natural_change
FROM table_name_96
WHERE crude_birth_rate__per_1000_ < 11.4
AND crude_death_rate__per_1000_ >... | 16,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_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)\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_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR)
Question: What is the average population when deaths are 3 557 an... | Here is the SQLite query to answer the question regarding the average population when deaths are 3,557 and the crude death rate is less than 11.9:
```
SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = "3 557" AND crude_death_rate__per_1000_ < 11.9;
``` | 16,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_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR)\n\n Question: What 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_99 (week INTEGER, opponent VARCHAR)
Question: In what week(s) did the Broncos go up against the Cleveland Browns?
Here is the SQLite query to answer to the qu... | The provided query attempts to sum the weeks, but it does not directly answer the question regarding the specific weeks in which the Broncos faced the Cleveland Browns. Instead, you would likely want to select the weeks where the opponent is the Cleveland Browns. Here is an updated query that correctly retrieves that i... | 16,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_99 (week INTEGER, opponent VARCHAR)\n\n Question: In what week(s) did the Broncos go up against the Cleveland Browns?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (week INTEGER, date VARCHAR)
Question: What week was the December 24, 1994 game?
Here is the SQLite query to answer to the question: What week was the Dece... | The query you've provided is almost correct, but to get the week for the specific date, you should select the week directly, not sum it. Here's the corrected query:
```
SELECT week FROM table_name_78 WHERE date = "December 24, 1994";
``` | 16,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_78 (week INTEGER, date VARCHAR)\n\n Question: What week was the December 24, 1994 game?\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_98 (nationality VARCHAR, round INTEGER)
Question: Which Nationality has a Round smaller than 3?
Here is the SQLite query to answer to the question: Which Nati... | Your SQL query is correct for retrieving the nationalities with a round value smaller than 3. Here it is wrapped in the appropriate code block:
```
SELECT nationality FROM table_name_98 WHERE round < 3;
``` | 16,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_98 (nationality VARCHAR, round INTEGER)\n\n Question: Which Nationality has a Round smaller than 3?\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_45 (position VARCHAR, round VARCHAR, player VARCHAR)
Question: Which Position has a Round larger than 4, and a Player of patrick johnson?
Here is the SQLite q... | Here is the SQLite query to answer the question:
```
SELECT position FROM table_name_45 WHERE round > 4 AND player = "patrick johnson";
``` | 16,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_45 (position VARCHAR, round VARCHAR, player VARCHAR)\n\n Question: Which Position has a Round larger than 4, and a Play... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (nationality VARCHAR, round VARCHAR)
Question: Which Nationality has a Round of 4?
Here is the SQLite query to answer to the question: Which Nationality ha... | Here is the SQLite query to answer the question: Which nationality has a round of 4?:
```
SELECT nationality FROM table_name_17 WHERE round = '4';
``` | 16,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_17 (nationality VARCHAR, round VARCHAR)\n\n Question: Which Nationality has a Round of 4?\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 (player VARCHAR, round VARCHAR, college_junior_club_team__league_ VARCHAR)
Question: Which Player has a Round smaller than 4, and a College/junior/club team... | Here is the SQLite query to answer the question about which player has a round smaller than 4 and a college/junior/club team (league) of "usa u-18":
```
SELECT player FROM table_name_48 WHERE round < 4 AND college_junior_club_team__league_ = "usa u-18";
``` | 16,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_48 (player VARCHAR, round VARCHAR, college_junior_club_team__league_ VARCHAR)\n\n Question: Which Player has a Round sm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.