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_32 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)
Question: What is the highest Top-5 when the Tournament is the open championship, with a Top-25 less tha... | ```sql
SELECT MAX(top_5) FROM table_name_32 WHERE tournament = "the open championship" AND top_25 < 9
``` | 48,700 | [
{
"from": "human",
"value": " 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 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)\n\n Question: What is the highest Top-5 when the Tournament is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (top_25 INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)
Question: What is the average Top-25 that has a Top-10 less than 7, and the Tournament i... | Here is the SQLite query that answers your question:
```
SELECT AVG(top_25)
FROM table_name_58
WHERE top_10 < 7
AND tournament = 'the open championship'
AND top_5 > 1;
``` | 48,701 | [
{
"from": "human",
"value": " 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 (top_25 INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)\n\n Question: What is the average Top-25 that ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (top_5 VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)
Question: What is the total number of Top-5 when the Top-25 is 6, and a Cuts made are less than 12?
Here... | Here is the SQLite query to answer the question:
```
SELECT COUNT(top_5) FROM table_name_40 WHERE top_25 = '6' AND cuts_made < '12'
``` | 48,702 | [
{
"from": "human",
"value": " 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 (top_5 VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)\n\n Question: What is the total number of Top-5 when the Top-25 i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (date VARCHAR, home VARCHAR)
Question: Which date had a home team of the Wizards?
Here is the SQLite query to answer to the question: Which date had a home... | Here is the SQLite query to answer the question about which date had a home team of the Wizards:
```
SELECT date FROM table_name_15 WHERE home = "Wizards";
``` | 48,703 | [
{
"from": "human",
"value": " 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 (date VARCHAR, home VARCHAR)\n\n Question: Which date had a home team of the Wizards?\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_60 (week INTEGER, date VARCHAR, attendance VARCHAR)
Question: What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance?
He... | The provided SQLite query contains a syntax error in the condition for attendance. Instead of using `attendance < 34 OFFSET 761`, it should directly compare the attendance value to 34,761.
Here is the corrected query to find the latest week with a date of November 12, 1967, and less than 34,761 in attendance:
```sql
... | 48,704 | [
{
"from": "human",
"value": " 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 (week INTEGER, date VARCHAR, attendance VARCHAR)\n\n Question: What was the latest week with a date of November 12, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (date VARCHAR, week VARCHAR, opponent VARCHAR)
Question: What is the date for the game with an opponent of the Houston Oilers from before week 3?
Here is t... | Here is the SQLite query to answer the question:
```
SELECT date FROM table_name_11 WHERE week < '3' AND opponent = 'Houston Oilers';
```
Note: I standardized the opponent's name to "Houston Oilers" with proper capitalization, as the database usually considers string comparisons to be case-sensitive unless otherwise... | 48,705 | [
{
"from": "human",
"value": " 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 (date VARCHAR, week VARCHAR, opponent VARCHAR)\n\n Question: What is the date for the game with an opponent of the H... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (game INTEGER, team VARCHAR)
Question: What is the total for New York's game?
Here is the SQLite query to answer to the question: What is the total for New... | The SQLite query you provided is almost correct, but you should ensure consistent casing for the team name based on the data in your database. SQLite is case-sensitive when dealing with string comparisons unless it is set to be case-insensitive. If you want to count all entries for "New York," you might want to account... | 48,706 | [
{
"from": "human",
"value": " 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 (game INTEGER, team VARCHAR)\n\n Question: What is the total for New York's game?\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_71 (round VARCHAR, college VARCHAR)
Question: What round was a player from Indiana picked?
Here is the SQLite query to answer to the question: What round was ... | Your SQLite query to find out what round a player from Indiana was picked is correctly written. Here’s the code wrapped in triple backticks:
```
SELECT round FROM table_name_71 WHERE college = "indiana";
``` | 48,707 | [
{
"from": "human",
"value": " 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 (round VARCHAR, college VARCHAR)\n\n Question: What round was a player from Indiana picked?\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_94 (losses VARCHAR, total VARCHAR, wins VARCHAR)
Question: How many losses had a total of 17 and more than 10 wins?
Here is the SQLite query to answer to the ... | Your SQLite query looks almost correct, but you need to ensure that the conditions are properly set for the `total` and `wins` fields. Here’s the corrected version with additional considerations for the data types:
1. Since losses, total, and wins are VARCHAR, you should convert them to integers before comparing.
2. M... | 48,708 | [
{
"from": "human",
"value": " 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 (losses VARCHAR, total VARCHAR, wins VARCHAR)\n\n Question: How many losses had a total of 17 and more than 10 wins?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (_percentage_win VARCHAR, total VARCHAR, losses VARCHAR)
Question: What is the win percentage when there's more than 16 totals and less than 7 losses?
Here... | Your query is almost correct, but since the columns `total` and `losses` are defined as `VARCHAR`, you need to cast them to a numeric type for the comparisons to work properly. Here’s the corrected SQLite query:
```sql
SELECT _percentage_win
FROM table_name_98
WHERE CAST(total AS INTEGER) > 16 AND CAST(losses AS INT... | 48,709 | [
{
"from": "human",
"value": " 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 (_percentage_win VARCHAR, total VARCHAR, losses VARCHAR)\n\n Question: What is the win percentage when there's more ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (no_result INTEGER, year VARCHAR, wins VARCHAR)
Question: What is the smallest no result when the year was 2012 and there were more than 10 wins?
Here is t... | The SQLite query you provided is almost correct, but you should convert the `wins` column to an integer for the comparison to work properly, since it is defined as a VARCHAR in your schema. Here is the corrected version of your query:
```
SELECT MIN(no_result)
FROM table_name_57
WHERE year = '2012' AND CAST(wins AS ... | 48,710 | [
{
"from": "human",
"value": " 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 (no_result INTEGER, year VARCHAR, wins VARCHAR)\n\n Question: What is the smallest no result when the year was 2012 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (socialist_ticket VARCHAR, democratic_ticket VARCHAR)
Question: What is the name on the Socialist ticket when the Democratic ticket is george k. shuler?
Her... | Here is the SQLite query to answer the question:
```
SELECT socialist_ticket FROM table_name_6 WHERE democratic_ticket = "george k. shuler";
``` | 48,711 | [
{
"from": "human",
"value": " 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 (socialist_ticket VARCHAR, democratic_ticket VARCHAR)\n\n Question: What is the name on the Socialist ticket when the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (democratic_ticket VARCHAR, workers_ticket VARCHAR)
Question: What is the name on the Democratic ticket when the Workers ticket is franklin p. brill?
Here ... | Here is the SQLite query to answer the question:
```
SELECT democratic_ticket FROM table_name_76 WHERE workers_ticket = "franklin p. brill"
``` | 48,712 | [
{
"from": "human",
"value": " 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 (democratic_ticket VARCHAR, workers_ticket VARCHAR)\n\n Question: What is the name on the Democratic ticket when the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (democratic_ticket VARCHAR, workers_ticket VARCHAR)
Question: What is the name on the Democratic ticket when the Workers ticket is james p. cannon?
Here is... | Here is the SQLite query to answer the question regarding the name on the Democratic ticket when the Workers ticket is "james p. cannon":
```
SELECT democratic_ticket FROM table_name_32 WHERE workers_ticket = "james p. cannon"
``` | 48,713 | [
{
"from": "human",
"value": " 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 (democratic_ticket VARCHAR, workers_ticket VARCHAR)\n\n Question: What is the name on the Democratic ticket when the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (office VARCHAR, republican_ticket VARCHAR)
Question: What is the Office when the Republican ticket shows seymour lowman?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question:
```
SELECT office FROM table_name_63 WHERE republican_ticket = "seymour lowman"
``` | 48,714 | [
{
"from": "human",
"value": " 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 (office VARCHAR, republican_ticket VARCHAR)\n\n Question: What is the Office when the Republican ticket shows seymou... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (republican_ticket VARCHAR, socialist_ticket VARCHAR)
Question: What is the name on the Republican ticket when the Socialist ticket was louis waldman?
Here... | Your SQLite query to find the name on the Republican ticket when the Socialist ticket was "louis waldman" is correct. Here it is wrapped in code formatting:
```
SELECT republican_ticket FROM table_name_17 WHERE socialist_ticket = "louis waldman"
``` | 48,715 | [
{
"from": "human",
"value": " 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 (republican_ticket VARCHAR, socialist_ticket VARCHAR)\n\n Question: What is the name on the Republican ticket when t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (republican_ticket VARCHAR, workers_ticket VARCHAR)
Question: What is the name on the Republican ticket when the Workers ticket is edward lindgren?
Here is... | Here is the SQLite query to answer the question:
```
SELECT republican_ticket FROM table_name_63 WHERE workers_ticket = "edward lindgren"
``` | 48,716 | [
{
"from": "human",
"value": " 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 (republican_ticket VARCHAR, workers_ticket VARCHAR)\n\n Question: What is the name on the Republican ticket when the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (democratic_ticket VARCHAR, socialist_labor_ticket VARCHAR)
Question: Who's the Democratic ticket with a Socialist Labor ticket of belle j. rosen?
Here is ... | Here is the SQLite query to answer the question about the Democratic ticket with a Socialist Labor ticket of "belle j. rosen":
```
SELECT democratic_ticket FROM table_name_38 WHERE socialist_labor_ticket = "belle j. rosen"
``` | 48,717 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (democratic_ticket VARCHAR, socialist_labor_ticket VARCHAR)\n\n Question: Who's the Democratic ticket with a Sociali... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (socialist_labor_ticket VARCHAR, republican_ticket VARCHAR)
Question: Who's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound?
Here ... | Your SQLite query is correctly formulated to answer the question. It will retrieve the Socialist Labor ticket associated with the Republican ticket of "Cuthbert W. Pound". Here it is wrapped in code format:
```
SELECT socialist_labor_ticket FROM table_name_49 WHERE republican_ticket = 'cuthbert w. pound';
``` | 48,718 | [
{
"from": "human",
"value": " 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 (socialist_labor_ticket VARCHAR, republican_ticket VARCHAR)\n\n Question: Who's the Socialist Labor ticket with a Re... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (office VARCHAR, republican_ticket VARCHAR)
Question: Which Office has a Republican ticket of daniel h. conway?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about which Office has a Republican ticket of "daniel h. conway":
```
SELECT office FROM table_name_63 WHERE republican_ticket = "daniel h. conway"
``` | 48,719 | [
{
"from": "human",
"value": " 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 (office VARCHAR, republican_ticket VARCHAR)\n\n Question: Which Office has a Republican ticket of daniel h. conway?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (socialist_ticket VARCHAR, law_preservation_ticket VARCHAR, socialist_labor_ticket VARCHAR)
Question: Who's the Socialist ticket with a Law Preservation tic... | Here is the SQLite query to answer the question regarding the Socialist ticket with a Law Preservation ticket of (none) and a Socialist Labor ticket of belle j. rosen:
```
SELECT socialist_ticket FROM table_name_74 WHERE law_preservation_ticket = "(none)" AND socialist_labor_ticket = "belle j. rosen"
``` | 48,720 | [
{
"from": "human",
"value": " 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 (socialist_ticket VARCHAR, law_preservation_ticket VARCHAR, socialist_labor_ticket VARCHAR)\n\n Question: Who's the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (office VARCHAR, democratic_ticket VARCHAR)
Question: Which Office has a Democratic ticket of herbert h. lehman?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question: Which Office has a Democratic ticket of herbert h. lehman?:
```
SELECT office FROM table_name_88 WHERE democratic_ticket = "herbert h. lehman"
``` | 48,721 | [
{
"from": "human",
"value": " 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 (office VARCHAR, democratic_ticket VARCHAR)\n\n Question: Which Office has a Democratic ticket of herbert h. lehman?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (socialist_ticket VARCHAR, socialist_labor_ticket VARCHAR)
Question: Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?
Here i... | Here is the SQLite query to answer the question:
```
SELECT socialist_ticket FROM table_name_89 WHERE socialist_labor_ticket = "charles m. carlson"
``` | 48,722 | [
{
"from": "human",
"value": " 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 (socialist_ticket VARCHAR, socialist_labor_ticket VARCHAR)\n\n Question: Who's the Socialist ticket with a Socialist... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (bowl_game VARCHAR, season VARCHAR, location VARCHAR)
Question: Which bowl game has a season greater than 2008, with new orleans, Louisiana as the location?... | Here's the SQLite query that answers your question:
```
SELECT bowl_game FROM table_name_47 WHERE season > 2008 AND location = "new orleans, louisiana"
``` | 48,723 | [
{
"from": "human",
"value": " 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 (bowl_game VARCHAR, season VARCHAR, location VARCHAR)\n\n Question: Which bowl game has a season greater than 2008, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (result VARCHAR, bowl_game VARCHAR)
Question: What result has 1947 sun bowl as the bowl game?
Here is the SQLite query to answer to the question: What resu... | Here is the SQLite query to answer the question about the result for the 1947 Sun Bowl:
```sql
SELECT result FROM table_name_81 WHERE bowl_game = "1947 sun bowl";
``` | 48,724 | [
{
"from": "human",
"value": " 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 (result VARCHAR, bowl_game VARCHAR)\n\n Question: What result has 1947 sun bowl as the bowl game?\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_47 (result VARCHAR, opponent VARCHAR)
Question: What result has texas longhorns as the opponent?
Here is the SQLite query to answer to the question: What resu... | Here is the SQLite query to answer the question regarding the result against the Texas Longhorns:
```
SELECT result FROM table_name_47 WHERE opponent = "texas longhorns"
``` | 48,725 | [
{
"from": "human",
"value": " 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 (result VARCHAR, opponent VARCHAR)\n\n Question: What result has texas longhorns as the opponent?\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_60 (location VARCHAR, attendance VARCHAR)
Question: What location has 51,212 as the attendance?
Here is the SQLite query to answer to the question: What locat... | Here is the SQLite query to answer the question about what location has 51,212 as the attendance:
```
SELECT location FROM table_name_60 WHERE attendance = "51,212";
``` | 48,726 | [
{
"from": "human",
"value": " 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 (location VARCHAR, attendance VARCHAR)\n\n Question: What location has 51,212 as the attendance?\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_40 (pictorials VARCHAR, date VARCHAR)
Question: Which Pictorials is on 5-01?
Here is the SQLite query to answer to the question: Which Pictorials is on 5-01?:... | Here is the SQLite query to answer the question "Which Pictorials is on 5-01?":
```
SELECT pictorials FROM table_name_40 WHERE date = "5-01"
``` | 48,727 | [
{
"from": "human",
"value": " 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 (pictorials VARCHAR, date VARCHAR)\n\n Question: Which Pictorials is on 5-01?\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_56 (cover_model VARCHAR, pictorials VARCHAR)
Question: Which Cover model has a Pictorials of brande roderick-pmoy, naked news?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question about which cover model has a pictorials of "brande roderick-pmoy, naked news":
```
SELECT cover_model FROM table_name_56 WHERE pictorials = "brande roderick-pmoy, naked news";
``` | 48,728 | [
{
"from": "human",
"value": " 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 (cover_model VARCHAR, pictorials VARCHAR)\n\n Question: Which Cover model has a Pictorials of brande roderick-pmoy, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (cover_model VARCHAR, centerfold_model VARCHAR)
Question: which Cover model has a Centerfold model of jennifer walcott?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding which Cover model has a Centerfold model of Jennifer Walcott:
```
SELECT cover_model FROM table_name_77 WHERE centerfold_model = "jennifer walcott"
``` | 48,729 | [
{
"from": "human",
"value": " 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 (cover_model VARCHAR, centerfold_model VARCHAR)\n\n Question: which Cover model has a Centerfold model of jennifer w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (centerfold_model VARCHAR, cover_model VARCHAR)
Question: Which Centerfold model has a Cover model of irina voronina?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding which Centerfold model has a Cover model of Irina Voronina:
```
SELECT centerfold_model FROM table_name_81 WHERE cover_model = "irina voronina"
``` | 48,730 | [
{
"from": "human",
"value": " 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 (centerfold_model VARCHAR, cover_model VARCHAR)\n\n Question: Which Centerfold model has a Cover model of irina voro... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (centerfold_model VARCHAR, date VARCHAR)
Question: Which Centerfold model has a Date of 3-01?
Here is the SQLite query to answer to the question: Which Cen... | Here is the SQLite query to answer the question about which Centerfold model has a Date of 3-01:
```sql
SELECT centerfold_model FROM table_name_54 WHERE date = "3-01";
``` | 48,731 | [
{
"from": "human",
"value": " 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 (centerfold_model VARCHAR, date VARCHAR)\n\n Question: Which Centerfold model has a Date of 3-01?\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_66 (score VARCHAR, date VARCHAR, time VARCHAR)
Question: What is the score on 15 Aug with a 17:30 time?
Here is the SQLite query to answer to the question: Wh... | Here's the SQLite query wrapped in code formatting:
```
SELECT score FROM table_name_66 WHERE date = "15 aug" AND time = "17:30";
``` | 48,732 | [
{
"from": "human",
"value": " 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 (score VARCHAR, date VARCHAR, time VARCHAR)\n\n Question: What is the score on 15 Aug with a 17:30 time?\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_93 (round VARCHAR, opponent VARCHAR)
Question: What is the total number of round values that had opponents named Paul Sutherland?
Here is the SQLite query to ... | Here is the SQLite query to answer the question regarding the total number of round values that had opponents named Paul Sutherland:
```
SELECT COUNT(round) FROM table_name_93 WHERE opponent = 'Paul Sutherland';
``` | 48,733 | [
{
"from": "human",
"value": " 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 (round VARCHAR, opponent VARCHAR)\n\n Question: What is the total number of round values that had opponents named Pa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)
Question: Which opponent led to a record of 10-6?
Here is the SQLite query to answer to the question: Which opponent led... | ```sql
SELECT opponent FROM table_name_94 WHERE record = "10-6";
``` | 48,734 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, record VARCHAR)\n\n Question: Which opponent led to a record of 10-6?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (method VARCHAR, record VARCHAR)
Question: Which method led to a record of 9-4?
Here is the SQLite query to answer to the question: Which method led to a r... | Here is the SQLite query to answer the question: Which method led to a record of 9-4?:
```
SELECT method FROM table_name_61 WHERE record = "9-4";
``` | 48,735 | [
{
"from": "human",
"value": " 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 (method VARCHAR, record VARCHAR)\n\n Question: Which method led to a record of 9-4?\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_68 (song VARCHAR, index VARCHAR)
Question: What song had an index of m6?
Here is the SQLite query to answer to the question: What song had an index of m6?:
``... | Here is the SQLite query to answer the question: What song had an index of m6?:
```
SELECT song FROM table_name_68 WHERE index = "m6";
``` | 48,736 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (song VARCHAR, index VARCHAR)\n\n Question: What song had an index of m6?\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_25 (song VARCHAR, score VARCHAR)
Question: For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?
Here is the SQLite query to answer to the question: For ... | The provided query has a syntax issue. You need to calculate the total score first and then compare it with the score stored in the database. Here's the corrected SQLite query:
```sql
SELECT song
FROM table_name_25
WHERE score = '24.0';
```
This assumes that the scores in the database are stored as strings (given t... | 48,737 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (song VARCHAR, score VARCHAR)\n\n Question: For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?\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_76 (points INTEGER, against VARCHAR, played VARCHAR)
Question: When the played number is less than 8 and against is 23, what is the least amount of points?
He... | Your SQLite query looks correct. Here is the formatted code encapsulated in triple backticks:
```
SELECT MIN(points) FROM table_name_76 WHERE against = 23 AND played < 8;
``` | 48,738 | [
{
"from": "human",
"value": " 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 (points INTEGER, against VARCHAR, played VARCHAR)\n\n Question: When the played number is less than 8 and against is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (against INTEGER, position VARCHAR, team VARCHAR)
Question: When the corinthians have a position of less than 5, what is the average against?
Here is the S... | Your SQLite query is almost correct, but there is a small adjustment needed for the `position` field since it is a VARCHAR type. When comparing a numeric value, you should first convert the `position` to an integer. Here’s the corrected version of the query wrapped in the appropriate code block:
```
SELECT AVG(against... | 48,739 | [
{
"from": "human",
"value": " 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 (against INTEGER, position VARCHAR, team VARCHAR)\n\n Question: When the corinthians have a position of 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_63 (position VARCHAR, points INTEGER)
Question: What position has less than 6 Points?
Here is the SQLite query to answer to the question: What position has le... | The provided query counts the number of positions that have less than 6 points, but if you're looking for the actual positions themselves that meet that criterion, the query should instead select the positions. Here's how you could write the SQLite query to get the positions with less than 6 points:
```
SELECT positio... | 48,740 | [
{
"from": "human",
"value": " 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 (position VARCHAR, points INTEGER)\n\n Question: What position has less than 6 Points?\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_3 (against VARCHAR, difference VARCHAR, played VARCHAR)
Question: What is the number of against when the difference is 10 and played is greater than 8?
Here i... | Your SQLite query to find the number of `against` where the `difference` is 10 and `played` is greater than 8 looks almost correct, but you need to ensure that the `played` column is treated as an integer for comparison. Here’s the corrected query:
```sql
SELECT COUNT(against) FROM table_name_3 WHERE difference = "10"... | 48,741 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (against VARCHAR, difference VARCHAR, played VARCHAR)\n\n Question: What is the number of against when the difference... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (stake VARCHAR, organized VARCHAR)
Question: What was the stake president when the organized date is April 18, 1965?
Here is the SQLite query to answer to ... | Here's the SQLite query wrapped as requested:
```
SELECT stake AS President FROM table_name_77 WHERE organized = "April 18, 1965";
``` | 48,742 | [
{
"from": "human",
"value": " 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 (stake VARCHAR, organized VARCHAR)\n\n Question: What was the stake president when the organized date is April 18, 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (award VARCHAR, category VARCHAR)
Question: What is the name of the award given for the category Mercury Prize?
Here is the SQLite query to answer to the q... | Here is the SQLite query to find the name of the award given for the category Mercury Prize:
```
SELECT award FROM table_name_58 WHERE category = "Mercury Prize";
``` | 48,743 | [
{
"from": "human",
"value": " 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 (award VARCHAR, category VARCHAR)\n\n Question: What is the name of the award given for the category Mercury Prize?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (year VARCHAR, award VARCHAR)
Question: How many years has the Mercury Prize award been given?
Here is the SQLite query to answer to the question: How many... | Here's the SQLite query to find out how many years the Mercury Prize award has been given:
```
SELECT COUNT(year) FROM table_name_47 WHERE award = "mercury prize";
``` | 48,744 | [
{
"from": "human",
"value": " 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 (year VARCHAR, award VARCHAR)\n\n Question: How many years has the Mercury Prize award been given?\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_71 (year VARCHAR, award VARCHAR)
Question: For how many years has the Mercury Prize been awarded?
Here is the SQLite query to answer to the question: For how ... | Here is the SQLite query to answer the question about how many years the Mercury Prize has been awarded:
```
SELECT COUNT(DISTINCT year) FROM table_name_71 WHERE award = "mercury prize";
``` | 48,745 | [
{
"from": "human",
"value": " 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 VARCHAR, award VARCHAR)\n\n Question: For how many years has the Mercury Prize been awarded?\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_50 (result VARCHAR, year VARCHAR, award VARCHAR)
Question: In what year, prior to 2009, was the Mercury Prize awarded?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding the year prior to 2009 when the Mercury Prize was awarded:
```sql
SELECT year FROM table_name_50 WHERE year < '2009' AND award = 'mercury prize';
``` | 48,746 | [
{
"from": "human",
"value": " 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 (result VARCHAR, year VARCHAR, award VARCHAR)\n\n Question: In what year, prior to 2009, was the Mercury Prize award... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (points INTEGER, against VARCHAR, played VARCHAR)
Question: What is the lowest Points when against is 50, and there are less than 20 played?
Here is the SQ... | Here is the SQLite query to answer the question about the lowest points when against is 50 and there are less than 20 played:
```
SELECT MIN(points) FROM table_name_80 WHERE against = '50' AND played < '20'
```
Please note that since `against` is of type `VARCHAR`, I have enclosed `50` in quotes. Similarly, I have t... | 48,747 | [
{
"from": "human",
"value": " 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 (points INTEGER, against VARCHAR, played VARCHAR)\n\n Question: What is the lowest Points when against is 50, and th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (position INTEGER, against VARCHAR, team VARCHAR)
Question: What is the average Position with less than 57 against and the team is Juventus?
Here is the SQ... | Your SQLite query is almost correct, but there is a small adjustment needed for the "against" condition, as it should be treated as a numeric comparison. Assuming "against" is a numeric value, here’s the corrected SQL query wrapped as requested:
```sql
SELECT AVG(position) FROM table_name_19 WHERE against < 57 AND tea... | 48,748 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (position INTEGER, against VARCHAR, team VARCHAR)\n\n Question: What is the average Position with less than 57 again... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (position INTEGER, against VARCHAR, lost VARCHAR)
Question: What is the highest Position when the against is less than 41, and lost is more than 7?
Here is... | Your query correctly retrieves the highest position under the specified conditions. Here it is wrapped as requested:
```
SELECT MAX(position) FROM table_name_23 WHERE against < 41 AND lost > 7;
``` | 48,749 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (position INTEGER, against VARCHAR, lost VARCHAR)\n\n Question: What is the highest Position when the against is les... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (lost INTEGER, against VARCHAR)
Question: What is the average Lost when there are 57 against?
Here is the SQLite query to answer to the question: What is t... | The provided SQLite query has a small issue, as the `against` column is a `VARCHAR`, so we need to compare it with a string rather than an integer. Here’s the corrected query:
```
SELECT AVG(lost) FROM table_name_42 WHERE against = '57'
```
This query calculates the average of the `lost` column for entries where the... | 48,750 | [
{
"from": "human",
"value": " 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 (lost INTEGER, against VARCHAR)\n\n Question: What is the average Lost when there are 57 against?\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_46 (lost INTEGER, team VARCHAR, points VARCHAR)
Question: What is the lowest Lost for são paulo railway, Points more than 21?
Here is the SQLite query to answ... | Here is the correct SQLite query to find the lowest "lost" for the "são paulo railway" team with points greater than 21:
```
SELECT MIN(lost) FROM table_name_46 WHERE team = "são paulo railway" AND points > 21
``` | 48,751 | [
{
"from": "human",
"value": " 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 (lost INTEGER, team VARCHAR, points VARCHAR)\n\n Question: What is the lowest Lost for são paulo railway, Points mor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (unit VARCHAR, location VARCHAR)
Question: What unit is in Mongolia?
Here is the SQLite query to answer to the question: What unit is in Mongolia?:
```
SEL... | Here is the SQLite query to answer the question: What unit is in Mongolia?:
```
SELECT unit FROM table_name_29 WHERE location = "Mongolia";
``` | 48,752 | [
{
"from": "human",
"value": " 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 (unit VARCHAR, location VARCHAR)\n\n Question: What unit is in Mongolia?\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_94 (unit VARCHAR, location VARCHAR)
Question: What unit is in Argentina?
Here is the SQLite query to answer to the question: What unit is in Argentina?:
```
S... | Here is the SQLite query to answer the question: What unit is in Argentina?:
```
SELECT unit FROM table_name_94 WHERE location = "Argentina";
``` | 48,753 | [
{
"from": "human",
"value": " 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 (unit VARCHAR, location VARCHAR)\n\n Question: What unit is in Argentina?\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_8 (name VARCHAR, location VARCHAR)
Question: What name is located in China?
Here is the SQLite query to answer to the question: What name is located in China?... | Here is the SQLite query to answer the question: What name is located in China?:
```
SELECT name FROM table_name_8 WHERE location = "China";
``` | 48,754 | [
{
"from": "human",
"value": " 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 (name VARCHAR, location VARCHAR)\n\n Question: What name is located in China?\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_53 (unit VARCHAR, location VARCHAR, authors VARCHAR)
Question: What unit is located in China and has Zhou Zhang as an author?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about what unit is located in China and has Zhou Zhang as an author:
```sql
SELECT unit FROM table_name_53 WHERE location = "China" AND authors = "Zhou Zhang";
``` | 48,755 | [
{
"from": "human",
"value": " 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 (unit VARCHAR, location VARCHAR, authors VARCHAR)\n\n Question: What unit is located in China and has Zhou Zhang as ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)
Question: What kind of Manufacturer has a Laps smaller than 20 and a Grid of 21
Here is the SQLite quer... | Here is the SQLite query to answer the question about manufacturers with laps smaller than 20 and a grid of 21:
```
SELECT manufacturer FROM table_name_54 WHERE laps < 20 AND grid = 21;
``` | 48,756 | [
{
"from": "human",
"value": " 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 (manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)\n\n Question: What kind of Manufacturer has a Laps smaller than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (airline VARCHAR, fleet_size VARCHAR, iata VARCHAR)
Question: Which Airline has a Fleet size larger than 17, and a IATA of pr?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about which Airline has a Fleet size larger than 17 and an IATA of 'pr':
```
SELECT airline FROM table_name_98 WHERE fleet_size > 17 AND iata = 'pr';
``` | 48,757 | [
{
"from": "human",
"value": " 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 (airline VARCHAR, fleet_size VARCHAR, iata VARCHAR)\n\n Question: Which Airline has a Fleet size larger than 17, and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (icao VARCHAR, fleet_size VARCHAR)
Question: Which ICAO has a Fleet size of 2?
Here is the SQLite query to answer to the question: Which ICAO has a Fleet s... | Here is the SQLite query to answer the question: Which ICAO has a Fleet size of 2?:
```
SELECT icao FROM table_name_96 WHERE fleet_size = '2'
``` | 48,758 | [
{
"from": "human",
"value": " 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 (icao VARCHAR, fleet_size VARCHAR)\n\n Question: Which ICAO has a Fleet size of 2?\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_4 (fleet_size INTEGER, iata VARCHAR, commenced_operations VARCHAR)
Question: What is the of Fleet size with a IATA of pr, and a Commenced operations smaller th... | Here's the corrected SQLite query to answer the question regarding the fleet size where the IATA code is "pr" and commenced operations are smaller than 1941:
```sql
SELECT SUM(fleet_size) FROM table_name_4 WHERE iata = 'pr' AND CAST(commenced_operations AS INTEGER) < 1941;
```
This version ensures that `commenced_op... | 48,759 | [
{
"from": "human",
"value": " 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 (fleet_size INTEGER, iata VARCHAR, commenced_operations VARCHAR)\n\n Question: What is the of Fleet size with a IATA ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (icao VARCHAR, commenced_operations INTEGER)
Question: Which ICAO has a Commenced operations larger than 2011?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding ICAO codes with a Commenced operations year larger than 2011:
```
SELECT icao FROM table_name_72 WHERE commenced_operations > 2011
``` | 48,760 | [
{
"from": "human",
"value": " 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 (icao VARCHAR, commenced_operations INTEGER)\n\n Question: Which ICAO has a Commenced operations larger than 2011?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (status VARCHAR, authors VARCHAR)
Question: What is the Status with an Author that is woodruff?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question: What is the Status with an Author that is woodruff?:
```
SELECT status FROM table_name_31 WHERE authors = 'woodruff';
``` | 48,761 | [
{
"from": "human",
"value": " 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 (status VARCHAR, authors VARCHAR)\n\n Question: What is the Status with an Author that is woodruff?\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_95 (pick__number INTEGER, cfl_team VARCHAR)
Question: What is the highest Pick # when the CFL Team is the Toronto Argonauts?
Here is the SQLite query to answe... | Your SQLite query is mostly correct, but it's important to ensure that the team name is matched correctly, including case sensitivity and potential variations in the name. Here’s the query wrapped in the appropriate code block:
```
SELECT MAX(pick__number) FROM table_name_95 WHERE cfl_team = "Toronto Argonauts";
```
... | 48,762 | [
{
"from": "human",
"value": " 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 (pick__number INTEGER, cfl_team VARCHAR)\n\n Question: What is the highest Pick # when the CFL Team is the Toronto A... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (cfl_team VARCHAR, pick__number VARCHAR)
Question: What is the CFL Team with #48 as the pick number?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question regarding the CFL Team with #48 as the pick number:
```
SELECT cfl_team FROM table_name_98 WHERE pick__number = '48'
``` | 48,763 | [
{
"from": "human",
"value": " 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 (cfl_team VARCHAR, pick__number VARCHAR)\n\n Question: What is the CFL Team with #48 as the pick number?\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_59 (college VARCHAR, position VARCHAR, cfl_team VARCHAR)
Question: What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers?
Here... | Here is the SQLite query to answer the question:
```
SELECT college FROM table_name_59 WHERE position = "db" AND cfl_team = "Winnipeg Blue Bombers"
``` | 48,764 | [
{
"from": "human",
"value": " 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 (college VARCHAR, position VARCHAR, cfl_team VARCHAR)\n\n Question: What is the College with a Position of db, 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_32 (cfl_team VARCHAR, player VARCHAR)
Question: What is the CFL Team with Will Grant?
Here is the SQLite query to answer to the question: What is the CFL Team... | Here is the SQLite query to answer the question: What is the CFL Team with Will Grant?:
```
SELECT cfl_team FROM table_name_32 WHERE player = "Will Grant";
``` | 48,765 | [
{
"from": "human",
"value": " 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 (cfl_team VARCHAR, player VARCHAR)\n\n Question: What is the CFL Team with Will Grant?\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_60 (year INTEGER, number_in_entourage VARCHAR, mission_type VARCHAR)
Question: What is the latest year of a gratitude type mission with 99 in the entourage?
H... | Here is the SQLite query to answer the question regarding the latest year of a gratitude type mission with 99 in the entourage:
```
SELECT MAX(year) FROM table_name_60 WHERE number_in_entourage = "99" AND mission_type = "gratitude"
``` | 48,766 | [
{
"from": "human",
"value": " 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 (year INTEGER, number_in_entourage VARCHAR, mission_type VARCHAR)\n\n Question: What is the latest year of a gratitu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)
Question: Who was the lead envoy of the mission with the Ryūkyūan King shō eki?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the lead envoy of the mission with the Ryūkyūan King shō eki:
```
SELECT lead_envoy FROM table_name_62 WHERE ryūkyūan_king = "shō eki"
``` | 48,767 | [
{
"from": "human",
"value": " 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 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)\n\n Question: Who was the lead envoy of the mission with the Ryūkyūan Ki... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR)
Question: Who was the lead envoy of the congratulation mission in 1718 with ... | Here is the SQLite query to answer the question regarding the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei:
```
SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = "1718"
``` | 48,768 | [
{
"from": "human",
"value": " 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 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR)\n\n Question: Who was the lead envoy... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)
Question: Who was the lead envoy with the Ryūkyūan King shō kō?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the lead envoy with the Ryūkyūan King shō kō:
```
SELECT lead_envoy FROM table_name_44 WHERE ryūkyūan_king = "shō kō"
``` | 48,769 | [
{
"from": "human",
"value": " 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 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)\n\n Question: Who was the lead envoy with the Ryūkyūan King shō kō?\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_59 (opponent VARCHAR, date VARCHAR)
Question: On 10/20/1979*, who was the Opponent?
Here is the SQLite query to answer to the question: On 10/20/1979*, who wa... | It looks like you want to retrieve the opponent for a specific date, but the date format you specified has a wildcard character (`*`). If you're looking for exact matches for a date that may be formatted differently, you might not need the wildcard at the end. However, if the wildcard is intended to match any additiona... | 48,770 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, date VARCHAR)\n\n Question: On 10/20/1979*, who was the Opponent?\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_16 (attendance INTEGER, result VARCHAR)
Question: What is the average Attendance at a game with a Result of w 30-23?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question regarding the average attendance for games with a result of "w 30-23":
```
SELECT AVG(attendance) FROM table_name_16 WHERE result = "w 30-23";
``` | 48,771 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, result VARCHAR)\n\n Question: What is the average Attendance at a game with a Result of w 30-23... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (attendance INTEGER, result VARCHAR)
Question: What is the lowest Attendance at a game with the Result of w 25-17?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question regarding the lowest attendance at a game with the result of "w 25-17":
```
SELECT MIN(attendance) FROM table_name_58 WHERE result = 'w 25-17';
``` | 48,772 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, result VARCHAR)\n\n Question: What is the lowest Attendance at a game with the Result of w 25-1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (score VARCHAR, leading_scorer VARCHAR)
Question: What is Score, when Leading Scorer is Tyrone Hill , 20 Points?
Here is the SQLite query to answer to the q... | It looks like there is a minor correction needed in your query. In your question, you are looking for the leading scorer as "Tyrone Hill" with a score of "20 Points". However, you seem to be comparing against a single string of "tyrone hill , 20 points".
Instead, you'll want to check if the `leading_scorer` is "Tyron... | 48,773 | [
{
"from": "human",
"value": " 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 (score VARCHAR, leading_scorer VARCHAR)\n\n Question: What is Score, when Leading Scorer is Tyrone Hill , 20 Points?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR)
Question: What is Home, when Score is 103-93?
Here is the SQLite query to answer to the question: What is Home, when Score is... | Here is the SQLite query to answer the question "What is Home, when Score is 103-93?":
```
SELECT home FROM table_name_95 WHERE score = '103-93';
``` | 48,774 | [
{
"from": "human",
"value": " 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 (home VARCHAR, score VARCHAR)\n\n Question: What is Home, when Score is 103-93?\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_74 (attendance VARCHAR, home VARCHAR, date VARCHAR)
Question: What is Attendance, when Home is Cleveland, and when Date is January 30?
Here is the SQLite quer... | Here is the SQLite query to answer the question about Attendance, when Home is Cleveland and when Date is January 30:
```
SELECT attendance FROM table_name_74 WHERE home = "Cleveland" AND date = "January 30";
``` | 48,775 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, home VARCHAR, date VARCHAR)\n\n Question: What is Attendance, when Home is Cleveland, 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_65 (leading_scorer VARCHAR, attendance VARCHAR, record VARCHAR)
Question: What is Leading Scorer, when Attendance is Gund Arena 20,562, and when Record is 20-1... | Here is the SQLite query to answer the question:
```
SELECT leading_scorer FROM table_name_65 WHERE attendance = "Gund Arena 20,562" AND record = "20-10"
``` | 48,776 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (leading_scorer VARCHAR, attendance VARCHAR, record VARCHAR)\n\n Question: What is Leading Scorer, when Attendance i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
Question: What is Score, when Date is January 12?
Here is the SQLite query to answer to the question: What is Score, when Dat... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_37 WHERE date = "January 12";
``` | 48,777 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)\n\n Question: What is Score, when Date is January 12?\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_33 (score VARCHAR, attendance VARCHAR, date VARCHAR)
Question: What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?
Here is the S... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_33 WHERE attendance = "Gund Arena 20,562" AND date = "January 27"
``` | 48,778 | [
{
"from": "human",
"value": " 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 (score VARCHAR, attendance VARCHAR, date VARCHAR)\n\n Question: What is Score, when Attendance is Gund Arena 20,562,... | |
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_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR)
Question: What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?
H... | Here is the SQLite query to answer the question regarding the sum of Top-10 values given the specified conditions:
```
SELECT SUM(top_10) FROM table_name_95 WHERE cuts_made < 10 AND top_5 < 0
``` | 48,779 | [
{
"from": "human",
"value": " 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_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR)\n\n Question: What is the sum of Top-10(s), when Cuts made is les... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (top_25 INTEGER, events VARCHAR, wins VARCHAR)
Question: What is the lowest Top-25, when Events is 10, and when Wins is greater than 0?
Here is the SQLite ... | Here is the SQLite query wrapped in code format:
```
SELECT MIN(top_25) FROM table_name_31 WHERE events = 10 AND wins > 0;
``` | 48,780 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (top_25 INTEGER, events VARCHAR, wins VARCHAR)\n\n Question: What is the lowest Top-25, when Events is 10, 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_33 (top_5 INTEGER, top_25 VARCHAR, cuts_made VARCHAR)
Question: What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7?
Here ... | Here is the correct SQLite query to answer the question based on the provided schema:
```
SELECT MIN(top_5) FROM table_name_33 WHERE CAST(top_25 AS INTEGER) < 4 AND CAST(cuts_made AS INTEGER) < 7;
```
This query will retrieve the lowest value of `top_5` where `top_25` is less than 4 and `cuts_made` is less than 7, a... | 48,781 | [
{
"from": "human",
"value": " 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 (top_5 INTEGER, top_25 VARCHAR, cuts_made VARCHAR)\n\n Question: What is the lowest Top-5, when Top-25 is less than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (height VARCHAR, year VARCHAR, name VARCHAR)
Question: What is the Height of Junior Meghan Austin?
Here is the SQLite query to answer to the question: What... | Here's the SQLite query to retrieve the height of Junior Meghan Austin:
```
SELECT height FROM table_name_59 WHERE year = "junior" AND name = "meghan austin";
``` | 48,782 | [
{
"from": "human",
"value": " 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 (height VARCHAR, year VARCHAR, name VARCHAR)\n\n Question: What is the Height of Junior Meghan Austin?\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_46 (position VARCHAR, name VARCHAR)
Question: What is Martina Wood's Position?
Here is the SQLite query to answer to the question: What is Martina Wood's Posi... | Here is the SQLite query to answer the question regarding Martina Wood's position:
```
SELECT position FROM table_name_46 WHERE name = "Martina Wood";
``` | 48,783 | [
{
"from": "human",
"value": " 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 (position VARCHAR, name VARCHAR)\n\n Question: What is Martina Wood's Position?\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_91 (name VARCHAR, home_town VARCHAR)
Question: What is the Name of the Player from Charlotte, NC?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question about the name of the player from Charlotte, NC:
```
SELECT name FROM table_name_91 WHERE home_town = "Charlotte, NC"
``` | 48,784 | [
{
"from": "human",
"value": " 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 (name VARCHAR, home_town VARCHAR)\n\n Question: What is the Name of the Player from Charlotte, NC?\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_52 (position VARCHAR, height VARCHAR, name VARCHAR)
Question: What is 6-2 Martina Wood's Position?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question "What is 6-2 Martina Wood's Position?":
```
SELECT position FROM table_name_52 WHERE height = "6-2" AND name = "Martina Wood"
``` | 48,785 | [
{
"from": "human",
"value": " 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 (position VARCHAR, height VARCHAR, name VARCHAR)\n\n Question: What is 6-2 Martina Wood's Position?\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_86 (position VARCHAR, home_town VARCHAR)
Question: What is the Position of the Player from Temple Hills, MD?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about the position of the player from Temple Hills, MD:
```
SELECT position FROM table_name_86 WHERE home_town = "Temple Hills, MD";
``` | 48,786 | [
{
"from": "human",
"value": " 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 (position VARCHAR, home_town VARCHAR)\n\n Question: What is the Position of the Player from Temple Hills, MD?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (name VARCHAR, year VARCHAR, home_town VARCHAR)
Question: What is the Name of the Junior from Fayetteville, NC?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding the name of the Junior from Fayetteville, NC:
```
SELECT name FROM table_name_69 WHERE year = "junior" AND home_town = "fayetteville, nc"
``` | 48,787 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (name VARCHAR, year VARCHAR, home_town VARCHAR)\n\n Question: What is the Name of the Junior from Fayetteville, NC?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR)
Question: What rank has jo angel (wa) as the player?
Here is the SQLite query to answer to the question: What rank has jo an... | Here is the SQLite query to answer the question about the rank of "jo angel (wa)":
```
SELECT rank FROM table_name_47 WHERE player = 'jo angel (wa)';
``` | 48,788 | [
{
"from": "human",
"value": " 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 (rank VARCHAR, player VARCHAR)\n\n Question: What rank has jo angel (wa) as the player?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (average VARCHAR, rank VARCHAR)
Question: What average has 1 as rhe rank?
Here is the SQLite query to answer to the question: What average has 1 as rhe ran... | Your SQLite query to find the average that has a rank of 1 is correct. Here it is wrapped in code formatting:
```
SELECT average FROM table_name_61 WHERE rank = "1";
``` | 48,789 | [
{
"from": "human",
"value": " 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 (average VARCHAR, rank VARCHAR)\n\n Question: What average has 1 as rhe rank?\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_80 (rank VARCHAR, player VARCHAR)
Question: What rank has andy bichel (qld) as the player?
Here is the SQLite query to answer to the question: What rank has a... | Here is the SQLite query to answer the question about the rank of "andy bichel (qld)":
```
SELECT rank FROM table_name_80 WHERE player = "andy bichel (qld)"
``` | 48,790 | [
{
"from": "human",
"value": " 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 (rank VARCHAR, player VARCHAR)\n\n Question: What rank has andy bichel (qld) as the player?\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_3 (average VARCHAR, rank VARCHAR)
Question: What is the average that has 2 for the rank?
Here is the SQLite query to answer to the question: What is the avera... | Here is the SQLite query to answer the question about the average that has 2 for the rank:
```
SELECT average FROM table_name_3 WHERE rank = "2";
``` | 48,791 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (average VARCHAR, rank VARCHAR)\n\n Question: What is the average that has 2 for the rank?\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_46 (player VARCHAR, average VARCHAR)
Question: What playee has 24.21 as the average?
Here is the SQLite query to answer to the question: What playee has 24.21... | Here is the SQLite query to answer the question: What player has 24.21 as the average?:
```
SELECT player FROM table_name_46 WHERE average = "24.21"
``` | 48,792 | [
{
"from": "human",
"value": " 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 (player VARCHAR, average VARCHAR)\n\n Question: What playee has 24.21 as the average?\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_31 (average VARCHAR, s_wicket VARCHAR)
Question: What is the average that has 441 as wicket?
Here is the SQLite query to answer to the question: What is the a... | Here is the SQLite query to answer the question about the average that has 441 as a wicket:
```
SELECT average FROM table_name_31 WHERE s_wicket = '441';
``` | 48,793 | [
{
"from": "human",
"value": " 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 (average VARCHAR, s_wicket VARCHAR)\n\n Question: What is the average that has 441 as wicket?\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_31 (elected VARCHAR, party VARCHAR, incumbent VARCHAR)
Question: What was the year Elected of Republican Incumbent Dave Reichert?
Here is the SQLite query to ... | Here's the correct SQLite query to find the year Elected of Republican Incumbent Dave Reichert:
```
SELECT elected FROM table_name_31 WHERE party = "republican" AND incumbent = "Dave Reichert";
``` | 48,794 | [
{
"from": "human",
"value": " 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 (elected VARCHAR, party VARCHAR, incumbent VARCHAR)\n\n Question: What was the year Elected of Republican Incumbent ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (results VARCHAR, district VARCHAR)
Question: What were the Results in the Washington 2 District?
Here is the SQLite query to answer to the question: What ... | Here's the SQLite query you can use to find the results in the Washington 2 District:
```
SELECT results FROM table_name_73 WHERE district = "washington 2";
``` | 48,795 | [
{
"from": "human",
"value": " 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 (results VARCHAR, district VARCHAR)\n\n Question: What were the Results in the Washington 2 District?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (elected VARCHAR, incumbent VARCHAR)
Question: What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?
Here is the SQLite query to an... | It seems there are a few issues in the SQL query provided to match the requirements of the question asked. First, the structure of the query needs adjustment because you are trying to select a year as a column name while also checking the conditions related to the candidates' election years. Here’s a corrected version ... | 48,796 | [
{
"from": "human",
"value": " 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 (elected VARCHAR, incumbent VARCHAR)\n\n Question: What is the 2008 Candidates Elected before 1994 with Incumbent Ji... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (incumbent VARCHAR, results VARCHAR)
Question: Who is the Incumbent with Results of 68% 32%?
Here is the SQLite query to answer to the question: Who is the ... | Here is the SQLite query to answer the question: Who is the Incumbent with Results of 68% 32%?:
```
SELECT incumbent FROM table_name_1 WHERE results = "68% 32%"
``` | 48,797 | [
{
"from": "human",
"value": " 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 (incumbent VARCHAR, results VARCHAR)\n\n Question: Who is the Incumbent with Results of 68% 32%?\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_75 (district VARCHAR, party VARCHAR, incumbent VARCHAR)
Question: What District had Republican Incumbent Cathy McMorris?
Here is the SQLite query to answer to... | Here is the SQLite query that answers the question:
```
SELECT district FROM table_name_75 WHERE party = "republican" AND incumbent = "cathy mcmorris";
``` | 48,798 | [
{
"from": "human",
"value": " 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 (district VARCHAR, party VARCHAR, incumbent VARCHAR)\n\n Question: What District had Republican Incumbent Cathy McMo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (total INTEGER, nation VARCHAR, bronze VARCHAR, gold VARCHAR)
Question: What was Italy's highest total when there were less than 4 bronze and 1 gold?
Here ... | Your SQLite query is almost correct, but there is a small issue with the data type of the `bronze` and `gold` columns. Since they are defined as `VARCHAR`, you need to convert them to integers for comparison. Here's the corrected version of your query:
```sql
SELECT MAX(total)
FROM table_name_29
WHERE CAST(bronze AS... | 48,799 | [
{
"from": "human",
"value": " 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 (total INTEGER, nation VARCHAR, bronze VARCHAR, gold VARCHAR)\n\n Question: What was Italy's highest total when ther... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.