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_29 (played INTEGER, position VARCHAR, goals_against VARCHAR, draws VARCHAR, goals_for VARCHAR)
Question: Which Played has Draws smaller than 7, and Goals for s... | Here is the SQLite query based on your specified criteria:
```
SELECT MAX(played) FROM table_name_29 WHERE draws < 7 AND goals_for < 61 AND goals_against < 48 AND position = '5'
```
Note that I included single quotes around `5` for the position, assuming it is a VARCHAR as per the schema you provided. Adjust accordi... | 25,100 | [
{
"from": "human",
"value": " 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 (played INTEGER, position VARCHAR, goals_against VARCHAR, draws VARCHAR, goals_for VARCHAR)\n\n Question: Which Play... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (goals_against VARCHAR, played INTEGER)
Question: How many Goals against have Played more than 34?
Here is the SQLite query to answer to the question: How ... | The SQLite query you provided is correctly structured to count the number of entries in the `goals_against` column where the `played` column is greater than 34. Here it is wrapped in code formatting:
```
SELECT COUNT(goals_against) FROM table_name_97 WHERE played > 34
``` | 25,101 | [
{
"from": "human",
"value": " 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 (goals_against VARCHAR, played INTEGER)\n\n Question: How many Goals against have Played more than 34?\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_83 (losses INTEGER, goal_difference VARCHAR, wins VARCHAR)
Question: Which Losses have a Goal Difference of -16, and less than 8 wins?
Here is the SQLite quer... | Your SQLite query needs a slight correction, as the `goal_difference` field is defined as `VARCHAR` in the schema. This means you have to treat `goal_difference` as a string.
Also, since you're interested in losses with a specific goal difference and a condition on wins, you should use appropriate comparisons. Here's ... | 25,102 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (losses INTEGER, goal_difference VARCHAR, wins VARCHAR)\n\n Question: Which Losses have a Goal Difference of -16, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (wins INTEGER, club VARCHAR, position VARCHAR, goal_difference VARCHAR, goals_against VARCHAR)
Question: Which Wins have a Goal Difference larger than 0, an... | Here is the SQLite query to answer the question regarding the conditions specified:
```sql
SELECT MIN(wins)
FROM table_name_33
WHERE goal_difference > 0
AND goals_against > 40
AND position < '6'
AND club = 'sd indauchu';
```
Note that I enclosed the position comparison value '6' in single quotes, as the p... | 25,103 | [
{
"from": "human",
"value": " 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 (wins INTEGER, club VARCHAR, position VARCHAR, goal_difference VARCHAR, goals_against VARCHAR)\n\n Question: Which W... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR)
Question: What place did player mark brooks take?
Here is the SQLite query to answer to the question: What place did player... | Your SQLite query is correct for finding out what place player "mark brooks" took. Here it is wrapped in code formatting:
```
SELECT place FROM table_name_84 WHERE player = "mark brooks";
``` | 25,104 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR)\n\n Question: What place did player mark brooks take?\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 (to_par VARCHAR, place VARCHAR)
Question: What was the To par of the golfer that placed t5?
Here is the SQLite query to answer to the question: What was th... | Your provided SQLite query is correct for retrieving the "To par" of the golfer that placed t5. Here it is wrapped in the requested format:
```
SELECT to_par FROM table_name_66 WHERE place = "t5";
``` | 25,105 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, place VARCHAR)\n\n Question: What was the To par of the golfer that placed t5?\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_96 (player VARCHAR, score VARCHAR)
Question: Which player had a score of 70?
Here is the SQLite query to answer to the question: Which player had a score of 7... | The correct SQLite query to find which player had a score of 70, given the schema provided, is:
```
SELECT player FROM table_name_96 WHERE score = '70';
```
Note that the score is stored as a VARCHAR, so it should be treated as a string and enclosed in single quotes. | 25,106 | [
{
"from": "human",
"value": " 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 (player VARCHAR, score VARCHAR)\n\n Question: Which player had a score of 70?\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 (score INTEGER, place VARCHAR, player VARCHAR)
Question: What was the highest score of t5 place finisher brandt jobe?
Here is the SQLite query to answer to... | Here's the SQLite query to answer the question about the highest score of the t5 place finisher Brandt Jobe:
```
SELECT MAX(score) FROM table_name_51 WHERE place = "t5" AND player = "brandt jobe"
``` | 25,107 | [
{
"from": "human",
"value": " 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 (score INTEGER, place VARCHAR, player VARCHAR)\n\n Question: What was the highest score of t5 place finisher brandt ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (event VARCHAR, total VARCHAR)
Question: Which event had a total of defending champion?
Here is the SQLite query to answer to the question: Which event had... | Here is the SQLite query that answers the question about which event had a total of defending champion:
```
SELECT event FROM table_name_39 WHERE total = "defending champion";
``` | 25,108 | [
{
"from": "human",
"value": " 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 (event VARCHAR, total VARCHAR)\n\n Question: Which event had a total of defending champion?\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_63 (week INTEGER, attendance VARCHAR)
Question: How many weeks was there an attendance of 74,347?
Here is the SQLite query to answer to the question: How many... | The query you've provided is incorrect in its purpose. To count how many weeks had an attendance of 74,347, you should use the `COUNT` function instead of `SUM`. Here is the corrected SQLite query:
```sql
SELECT COUNT(week) FROM table_name_63 WHERE attendance = '74,347';
```
This query correctly counts the number of... | 25,109 | [
{
"from": "human",
"value": " 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 INTEGER, attendance VARCHAR)\n\n Question: How many weeks was there an attendance of 74,347?\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_72 (week INTEGER, attendance VARCHAR)
Question: What is the latest week with an attendance of 74,162?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query you requested, wrapped in code formatting:
```
SELECT MAX(week) FROM table_name_72 WHERE attendance = "74,162";
``` | 25,110 | [
{
"from": "human",
"value": " 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 (week INTEGER, attendance VARCHAR)\n\n Question: What is the latest week with an attendance of 74,162?\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_41 (opponent VARCHAR, attendance VARCHAR)
Question: Who is the opponent when the attendance is 57,331?
Here is the SQLite query to answer to the question: Who... | Here is the SQLite query to answer the question of who is the opponent when the attendance is 57,331:
```
SELECT opponent FROM table_name_41 WHERE attendance = "57,331"
``` | 25,111 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (opponent VARCHAR, attendance VARCHAR)\n\n Question: Who is the opponent when the attendance is 57,331?\n\nHere is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (date VARCHAR, attendance VARCHAR)
Question: What day was the attendance 74,285?
Here is the SQLite query to answer to the question: What day was the atten... | ```sql
SELECT date FROM table_name_98 WHERE attendance = "74,285";
``` | 25,112 | [
{
"from": "human",
"value": " 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 (date VARCHAR, attendance VARCHAR)\n\n Question: What day was the attendance 74,285?\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_36 (result VARCHAR, week VARCHAR)
Question: What was the result for week 16?
Here is the SQLite query to answer to the question: What was the result for week ... | Here is the SQLite query to answer the question regarding the result for week 16:
```
SELECT result FROM table_name_36 WHERE week = '16'
``` | 25,113 | [
{
"from": "human",
"value": " 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 (result VARCHAR, week VARCHAR)\n\n Question: What was the result for week 16?\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_65 (opponents_in_the_final VARCHAR, date VARCHAR, tournament VARCHAR)
Question: Who are the Opponents in the final prior to 1998 in the Bucharest, Romania Tour... | Here is the SQLite query to answer the question regarding the opponents in the final prior to 1998 in the Bucharest, Romania Tournament:
```sql
SELECT opponents_in_the_final
FROM table_name_65
WHERE date < '1998' AND tournament = 'Bucharest, Romania';
``` | 25,114 | [
{
"from": "human",
"value": " 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 (opponents_in_the_final VARCHAR, date VARCHAR, tournament VARCHAR)\n\n Question: Who are the Opponents in the final ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (official_name VARCHAR, area_km_2 VARCHAR)
Question: Which parish has an area of 750.51?
Here is the SQLite query to answer to the question: Which parish h... | Here's the correct SQLite query to answer the question:
```
SELECT official_name FROM table_name_46 WHERE area_km_2 = '750.51';
```
Note that `area_km_2` is defined as `VARCHAR`, so we need to enclose the value in quotes. | 25,115 | [
{
"from": "human",
"value": " 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 (official_name VARCHAR, area_km_2 VARCHAR)\n\n Question: Which parish has an area of 750.51?\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR)
Question: What is the area of the parish with a population larger than 1,172 and a census ra... | It looks like there are some errors in the provided SQLite query. The COUNT function is not appropriate for retrieving the area, and there seems to be a misunderstanding in the conditions of the query.
To get the area of the parish with a population larger than 1,172 and a specific census ranking, you would want to us... | 25,116 | [
{
"from": "human",
"value": " 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 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR)\n\n Question: What is the area of the parish with a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (appeared_on_album VARCHAR, position INTEGER)
Question: When the position is less than 7, what is the appeared on album?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question:
```
SELECT appeared_on_album FROM table_name_90 WHERE position < 7
``` | 25,117 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (appeared_on_album VARCHAR, position INTEGER)\n\n Question: When the position is less than 7, what is the appeared o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (position INTEGER, year INTEGER)
Question: After 1996, what is the average position?
Here is the SQLite query to answer to the question: After 1996, what i... | Your query is accurate for the given question. Here is the SQLite query wrapped in code formatting:
```
SELECT AVG(position) FROM table_name_96 WHERE year > 1996;
``` | 25,118 | [
{
"from": "human",
"value": " 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 (position INTEGER, year INTEGER)\n\n Question: After 1996, what is the average position?\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_87 (to_par VARCHAR, place VARCHAR, player VARCHAR)
Question: Which To par has a Place of t4, and wayne grady is in?
Here is the SQLite query to answer to the ... | Your SQLite query to answer the question is correctly structured. Here it is wrapped in the appropriate code block:
```
SELECT to_par FROM table_name_87 WHERE place = "t4" AND player = "wayne grady";
``` | 25,119 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: Which To par has a Place of t4, and wayne grady is in?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (place VARCHAR, country VARCHAR, score VARCHAR)
Question: Name the Place of england with a Score larger than 66?
Here is the SQLite query to answer to the q... | Your SQLite query needs a slight modification because the `score` column is defined as `VARCHAR`, which means it stores text values. If the `score` values are numeric strings, you must cast them to integers or decimals for the comparison to work correctly. Here is the corrected query:
```sql
SELECT place FROM table_na... | 25,120 | [
{
"from": "human",
"value": " 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 (place VARCHAR, country VARCHAR, score VARCHAR)\n\n Question: Name the Place of england with a Score larger than 66?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (score VARCHAR, country VARCHAR, player VARCHAR)
Question: Name the Score united states of tom watson in united state?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the score of Tom Watson in the United States:
```
SELECT score FROM table_name_40 WHERE country = "united states" AND player = "tom watson";
``` | 25,121 | [
{
"from": "human",
"value": " 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 (score VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: Name the Score united states of tom watson in united ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (player VARCHAR, to_par VARCHAR, country VARCHAR)
Question: Who has a To par of –2, and a Country of united states?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding players with a To par of –2 and a Country of united states:
```sql
SELECT player FROM table_name_98 WHERE to_par = "-2" AND country = "united states";
``` | 25,122 | [
{
"from": "human",
"value": " 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 (player VARCHAR, to_par VARCHAR, country VARCHAR)\n\n Question: Who has a To par of –2, and a Country of united stat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (time VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR)
Question: What is the time of Max Biaggi with more than 2 grids, 20 laps?
Here is the SQLite quer... | Here is the corrected SQLite query to answer the question you provided:
```sql
SELECT time FROM table_name_40 WHERE grid > 2 AND laps = '20' AND rider = 'Max Biaggi';
```
Make sure that the values for `laps` are treated as strings if they are stored as VARCHAR in the database schema. | 25,123 | [
{
"from": "human",
"value": " 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 (time VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR)\n\n Question: What is the time of Max Biaggi with more tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (time VARCHAR, grid VARCHAR, rider VARCHAR)
Question: What is the time of Troy Bayliss with less than 8 grids?
Here is the SQLite query to answer to the qu... | The SQLite query you've shared has a small error regarding how to interpret the `grid` column. In this schema, `grid` is defined as a VARCHAR type, which means it holds string values. If you want to compare the numeric value, you would need to cast it to an integer or ensure it is stored as a number in the first place.... | 25,124 | [
{
"from": "human",
"value": " 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 (time VARCHAR, grid VARCHAR, rider VARCHAR)\n\n Question: What is the time of Troy Bayliss with less than 8 grids?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (torque VARCHAR, model VARCHAR)
Question: Which Torque has a Model of s63 amg ('01)?
Here is the SQLite query to answer to the question: Which Torque has a... | Here is the SQLite query to answer the question: Which Torque has a Model of s63 amg ('01)?:
```
SELECT torque FROM table_name_91 WHERE model = "s63 amg ('01)";
``` | 25,125 | [
{
"from": "human",
"value": " 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 (torque VARCHAR, model VARCHAR)\n\n Question: Which Torque has a Model of s63 amg ('01)?\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_71 (engine VARCHAR, model VARCHAR)
Question: Which Engine has a Model of s430?
Here is the SQLite query to answer to the question: Which Engine has a Model of... | Here is the SQLite query to answer the question: Which Engine has a Model of s430?:
```
SELECT engine FROM table_name_71 WHERE model = "s430";
``` | 25,126 | [
{
"from": "human",
"value": " 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 (engine VARCHAR, model VARCHAR)\n\n Question: Which Engine has a Model of s430?\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_87 (engine VARCHAR, model VARCHAR)
Question: Which Engine has a Model of s320 cdi?
Here is the SQLite query to answer to the question: Which Engine has a Mode... | Here is the SQLite query to answer the question:
```
SELECT engine FROM table_name_87 WHERE model = "s320 cdi";
``` | 25,127 | [
{
"from": "human",
"value": " 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 (engine VARCHAR, model VARCHAR)\n\n Question: Which Engine has a Model of s320 cdi?\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_4 (division_southwest VARCHAR, division_north VARCHAR)
Question: Who won Division Southwest when Madžari Solidarnost won Division North?
Here is the SQLite qu... | Here is the SQLite query wrapped in the appropriate code block:
```
SELECT division_southwest FROM table_name_4 WHERE division_north = "madžari solidarnost"
``` | 25,128 | [
{
"from": "human",
"value": " 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 (division_southwest VARCHAR, division_north VARCHAR)\n\n Question: Who won Division Southwest when Madžari Solidarnos... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (division_west VARCHAR, division_north VARCHAR)
Question: Who won Division West when Division North was won by Alumina?
Here is the SQLite query to answer ... | Here's the SQLite query to answer the question:
```
SELECT division_west FROM table_name_69 WHERE division_north = "Alumina";
``` | 25,129 | [
{
"from": "human",
"value": " 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 (division_west VARCHAR, division_north VARCHAR)\n\n Question: Who won Division West when Division North was won by A... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (division_north VARCHAR, division_southwest VARCHAR, division_west VARCHAR)
Question: Who won Division North when Division Southwest was won by Novaci and D... | Here is the SQLite query to answer the question regarding the winners of Division North based on the specified conditions:
```
SELECT division_north FROM table_name_75 WHERE division_southwest = "Novaci" AND division_west = "Vrapčište"
``` | 25,130 | [
{
"from": "human",
"value": " 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 (division_north VARCHAR, division_southwest VARCHAR, division_west VARCHAR)\n\n Question: Who won Division North whe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (division_southwest VARCHAR, division_north VARCHAR, division_south VARCHAR)
Question: Who won Division Southwest when the winner of Division North was Lepe... | Your SQLite query looks correct for the given question. Here is the SQL code formatted as requested:
```
SELECT division_southwest FROM table_name_44 WHERE division_north = "lepenec" AND division_south = "11 oktomvri";
``` | 25,131 | [
{
"from": "human",
"value": " 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 (division_southwest VARCHAR, division_north VARCHAR, division_south VARCHAR)\n\n Question: Who won Division Southwes... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (minutes INTEGER, rank VARCHAR, club VARCHAR)
Question: What are the minutes of the Player from Real Madrid Club with a Rank of 7 or larger?
Here is the SQ... | Here is the SQLite query to answer the question regarding the minutes of the Player from the Real Madrid Club with a Rank of 7 or larger:
```
SELECT SUM(minutes) FROM table_name_73 WHERE rank >= '7' AND club = 'real madrid';
``` | 25,132 | [
{
"from": "human",
"value": " 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 (minutes INTEGER, rank VARCHAR, club VARCHAR)\n\n Question: What are the minutes of the Player from Real Madrid Club... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (award VARCHAR, category VARCHAR)
Question: For what award was there a nomination for Best Actress?
Here is the SQLite query to answer to the question: For... | Here is the SQLite query to answer the question regarding nominations for Best Actress:
```
SELECT award FROM table_name_21 WHERE category = "Best Actress";
``` | 25,133 | [
{
"from": "human",
"value": " 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 (award VARCHAR, category VARCHAR)\n\n Question: For what award was there a nomination for Best Actress?\n\nHere is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (year VARCHAR, nominated VARCHAR)
Question: What year was Teen Angels 2 nominated?
Here is the SQLite query to answer to the question: What year was Teen A... | Here is the SQLite query to answer the question: What year was Teen Angels 2 nominated?:
```
SELECT year FROM table_name_19 WHERE nominated = "Teen Angels 2";
``` | 25,134 | [
{
"from": "human",
"value": " 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 (year VARCHAR, nominated VARCHAR)\n\n Question: What year was Teen Angels 2 nominated?\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_73 (year VARCHAR, category VARCHAR)
Question: What year saw an award in the category of Revelation?
Here is the SQLite query to answer to the question: What y... | Here is the SQLite query to answer the question about what year saw an award in the category of Revelation:
```sql
SELECT year FROM table_name_73 WHERE category = "Revelation";
``` | 25,135 | [
{
"from": "human",
"value": " 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 (year VARCHAR, category VARCHAR)\n\n Question: What year saw an award in the category of Revelation?\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_60 (nominated VARCHAR, award VARCHAR)
Question: Name the performance nominated for a Capif Award.
Here is the SQLite query to answer to the question: Name the... | Here is the SQLite query to answer the question regarding the performance nominated for a Capif Award:
```
SELECT nominated FROM table_name_60 WHERE award = "Capif Award";
``` | 25,136 | [
{
"from": "human",
"value": " 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 (nominated VARCHAR, award VARCHAR)\n\n Question: Name the performance nominated for a Capif Award.\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_21 (category VARCHAR, nominated VARCHAR)
Question: In what category was Herself nominated?
Here is the SQLite query to answer to the question: In what categor... | Here is the SQLite query to answer the question about the category in which "Herself" was nominated:
```
SELECT category FROM table_name_21 WHERE nominated = "Herself";
``` | 25,137 | [
{
"from": "human",
"value": " 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 (category VARCHAR, nominated VARCHAR)\n\n Question: In what category was Herself nominated?\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_36 (year VARCHAR, award VARCHAR, category VARCHAR)
Question: What year was there a nomination for Best Actress at the Kids' Choice Awards Argentina?
Here is t... | Here is the SQLite query to answer the question regarding the nomination for Best Actress at the Kids' Choice Awards Argentina:
```
SELECT year FROM table_name_36 WHERE award = "kids' choice awards argentina" AND category = "best actress";
``` | 25,138 | [
{
"from": "human",
"value": " 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 (year VARCHAR, award VARCHAR, category VARCHAR)\n\n Question: What year was there a nomination for Best Actress at t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (draws INTEGER, points VARCHAR, goal_difference VARCHAR, goals_against VARCHAR)
Question: What is the average Draws, when Goal Difference is greater than -3... | Here is the SQLite query that answers the question as specified:
```
SELECT AVG(draws) FROM table_name_97 WHERE goal_difference > -3 AND goals_against = 30 AND points > 45
``` | 25,139 | [
{
"from": "human",
"value": " 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 (draws INTEGER, points VARCHAR, goal_difference VARCHAR, goals_against VARCHAR)\n\n Question: What is the average Dr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (played INTEGER, club VARCHAR, draws VARCHAR)
Question: What is the average Played, when Club is "Burgos CF", and when Draws is less than 7?
Here is the SQ... | Here is the SQLite query to find the average `Played` when `Club` is "Burgos CF" and `Draws` is less than 7:
```
SELECT AVG(played) FROM table_name_32 WHERE club = "Burgos CF" AND draws < 7
``` | 25,140 | [
{
"from": "human",
"value": " 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 (played INTEGER, club VARCHAR, draws VARCHAR)\n\n Question: What is the average Played, when Club is \"Burgos CF\", ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (goals_against INTEGER, club VARCHAR, played VARCHAR)
Question: What is the highest Goals Against, when Club is "Pontevedra CF", and when Played is less tha... | Here is the corrected SQLite query to answer the question:
```
SELECT MAX(goals_against) FROM table_name_74 WHERE club = "Pontevedra CF" AND played < 38
``` | 25,141 | [
{
"from": "human",
"value": " 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 (goals_against INTEGER, club VARCHAR, played VARCHAR)\n\n Question: What is the highest Goals Against, when Club is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (score INTEGER, place VARCHAR, player VARCHAR)
Question: What is T2 Place Player Steve Flesch's Score?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about T2 Place Player Steve Flesch's Score:
```
SELECT MAX(score) FROM table_name_97 WHERE place = "t2" AND player = "steve flesch"
``` | 25,142 | [
{
"from": "human",
"value": " 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 (score INTEGER, place VARCHAR, player VARCHAR)\n\n Question: What is T2 Place Player Steve Flesch's Score?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (place VARCHAR, score VARCHAR)
Question: What is the Place of the Player with a Score of 67?
Here is the SQLite query to answer to the question: What is th... | Your SQLite query has a small issue because `score` is defined as a `VARCHAR`, so you need to treat the value 67 as a string. Here is the corrected query:
```
SELECT place FROM table_name_16 WHERE score = '67'
``` | 25,143 | [
{
"from": "human",
"value": " 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 (place VARCHAR, score VARCHAR)\n\n Question: What is the Place of the Player with a Score of 67?\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_10 (venue VARCHAR, event VARCHAR, competition VARCHAR, year VARCHAR, time VARCHAR)
Question: What Venue has a Year smaller than 1991, Time larger than 10.29, C... | Here is the SQLite query to answer the question regarding the venue with the specified criteria:
```
SELECT venue FROM table_name_10 WHERE year < '1991' AND time > '10.29' AND competition = 'mediterranean games' AND event = '4x100 m relay';
``` | 25,144 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, event VARCHAR, competition VARCHAR, year VARCHAR, time VARCHAR)\n\n Question: What Venue has a Year ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (event VARCHAR, venue VARCHAR, position VARCHAR, year VARCHAR)
Question: What Event has a Position of 1st, a Year of 1983, and a Venue of budapest?
Here is... | Here is the SQLite query to answer the question:
```
SELECT event FROM table_name_34 WHERE position = "1st" AND year = "1983" AND venue = "budapest";
``` | 25,145 | [
{
"from": "human",
"value": " 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 (event VARCHAR, venue VARCHAR, position VARCHAR, year VARCHAR)\n\n Question: What Event has a Position of 1st, a Yea... | |
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, time VARCHAR)
Question: What Position has a Time of 20.66?
Here is the SQLite query to answer to the question: What Position has a Time ... | Here is the SQLite query to answer the question: What Position has a Time of 20.66?:
```
SELECT position FROM table_name_52 WHERE time = '20.66'
``` | 25,146 | [
{
"from": "human",
"value": " 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, time VARCHAR)\n\n Question: What Position has a Time of 20.66?\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_89 (time INTEGER, year VARCHAR, event VARCHAR)
Question: What is the greatest Time with a Year of 1991, and Event of 4x100 m relay?
Here is the SQLite query t... | Your SQLite query is almost correct, but there is a minor issue with the comparison for the year since it is defined as a `VARCHAR`. When comparing strings in SQL, you should use quotes around the value. Here is the corrected version of your query:
```sql
SELECT MAX(time) FROM table_name_89 WHERE year = '1991' AND eve... | 25,147 | [
{
"from": "human",
"value": " 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 (time INTEGER, year VARCHAR, event VARCHAR)\n\n Question: What is the greatest Time with a Year of 1991, and Event o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (date VARCHAR, runner_up VARCHAR)
Question: When was the match that had Shaun Murphy as runner-up?
Here is the SQLite query to answer to the question: When... | Here is the SQLite query to answer the question about when Shaun Murphy was the runner-up:
```sql
SELECT date FROM table_name_31 WHERE runner_up = "Shaun Murphy";
``` | 25,148 | [
{
"from": "human",
"value": " 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 (date VARCHAR, runner_up VARCHAR)\n\n Question: When was the match that had Shaun Murphy as runner-up?\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_63 (winner VARCHAR, runner_up VARCHAR)
Question: Who was the winner in the match that had John Higgins as runner-up?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question:
```
SELECT winner FROM table_name_63 WHERE runner_up = "John Higgins"
``` | 25,149 | [
{
"from": "human",
"value": " 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 (winner VARCHAR, runner_up VARCHAR)\n\n Question: Who was the winner in the match that had John Higgins as runner-up... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)
Question: What is Pronunciation Spelled Free, when Pronunciation Spelled Checked ... | ```sql
SELECT pronunciation_spelled_free FROM table_name_8 WHERE pronunciation_spelled_checked = "ʏ";
``` | 25,150 | [
{
"from": "human",
"value": " 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 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)\n\n Question: What is Pronunciation Spell... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)
Question: What is Pronunciation Spelled Free, when Pronunciation Spelled Checked ... | Here is the SQLite query to answer the question you provided:
```
SELECT pronunciation_spelled_free FROM table_name_2 WHERE pronunciation_spelled_checked = "ɛ"
``` | 25,151 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)\n\n Question: What is Pronunciation Spell... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)
Question: What is Pronunciation Spelled Free, when Pronunciation Spelled Checked... | Your SQLite query looks correct based on the schema you provided. Here it is wrapped in code formatting:
```
SELECT pronunciation_spelled_free FROM table_name_24 WHERE pronunciation_spelled_checked = "ɑ";
``` | 25,152 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)\n\n Question: What is Pronunciation Spel... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (ties INTEGER, gp INTEGER)
Question: What was the largest tie when the G.P was more than 5?
Here is the SQLite query to answer to the question: What was th... | Your SQLite query to find the largest tie when the G.P (games played) is more than 5 is correct. Here is the query wrapped in code formatting:
```
SELECT MAX(ties) FROM table_name_56 WHERE gp > 5;
``` | 25,153 | [
{
"from": "human",
"value": " 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 (ties INTEGER, gp INTEGER)\n\n Question: What was the largest tie when the G.P was more than 5?\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_47 (attendance INTEGER, opponent VARCHAR)
Question: What is the highest number in attendance against the game at Kansas City Chiefs?
Here is the SQLite query ... | Your SQLite query is correctly structured to find the highest attendance against the Kansas City Chiefs. Here it is wrapped in the requested format:
```
SELECT MAX(attendance) FROM table_name_47 WHERE opponent = "at kansas city chiefs";
``` | 25,154 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, opponent VARCHAR)\n\n Question: What is the highest number in attendance against the game at Ka... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
Question: What is the attendance for the game against the Kansas City Chiefs earlier than week 13?
Her... | Here is the SQLite query to answer the question regarding the attendance for the game against the Kansas City Chiefs earlier than week 13:
```
SELECT attendance FROM table_name_32 WHERE opponent = "Kansas City Chiefs" AND week < "13"
``` | 25,155 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, opponent VARCHAR, week VARCHAR)\n\n Question: What is the attendance for the game against the K... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (result VARCHAR, week INTEGER)
Question: What is the result later than week 13?
Here is the SQLite query to answer to the question: What is the result late... | Your SQLite query looks correct for retrieving the result from the `table_name_64` where the week is greater than 13. Here it is wrapped in the requested format:
```
SELECT result FROM table_name_64 WHERE week > 13;
``` | 25,156 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (result VARCHAR, week INTEGER)\n\n Question: What is the result later than week 13?\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_8 (to_par INTEGER, player VARCHAR, total VARCHAR)
Question: What is the lowest To par of gary player, with more than 145 total?
Here is the SQLite query to an... | Your SQLite query is correctly formulated to find the lowest "To par" for the player "gary player" with a total greater than 145. Here it is wrapped in code format:
```
SELECT MIN(to_par) FROM table_name_8 WHERE player = "gary player" AND total > 145
```
Make sure that the total column is stored in a format that all... | 25,157 | [
{
"from": "human",
"value": " 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 (to_par INTEGER, player VARCHAR, total VARCHAR)\n\n Question: What is the lowest To par of gary player, with more tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (wins VARCHAR, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
Question: How many Wins have Goals against smaller than 30, and Goals for larger tha... | Here is the correct SQLite query to answer the question:
```sql
SELECT COUNT(wins)
FROM table_name_66
WHERE goals_against < 30
AND goals_for > 25
AND draws > 5;
``` | 25,158 | [
{
"from": "human",
"value": " 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 (wins VARCHAR, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)\n\n Question: How many Wins have Goals again... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (draws VARCHAR, points VARCHAR, goals_against VARCHAR)
Question: How many Draws have 30 Points, and less than 33 Goals against?
Here is the SQLite query to... | Your SQLite query is almost correct, but the `goals_against` column is of type `VARCHAR`, so direct comparison with an integer might not work as intended. You'll need to cast it to an integer for the comparison. Here is the corrected query wrapped in code formatting:
```
SELECT COUNT(draws) FROM table_name_44 WHERE po... | 25,159 | [
{
"from": "human",
"value": " 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 (draws VARCHAR, points VARCHAR, goals_against VARCHAR)\n\n Question: How many Draws have 30 Points, and less than 33... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)
Question: Which Wins have a Goal Difference larger than 12, and a Club of granada cf, ... | Your query seems to be generally structured well, but there are a couple of adjustments you may need to make, especially with data types.
1. The `goal_difference` and `played` columns are defined as `VARCHAR`, which means you'll need to convert them to appropriate numerical types for comparison using `CAST` or `INTEG... | 25,160 | [
{
"from": "human",
"value": " 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 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)\n\n Question: Which Wins have a Goal Differenc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (played INTEGER, club VARCHAR, losses VARCHAR)
Question: Which Played has a Club of atlético ceuta, and less than 11 Losses?
Here is the SQLite query to an... | Here is the SQLite query to answer the question regarding the `Played` with a `Club` of "atlético ceuta" and less than 11 `Losses`:
```
SELECT MAX(played) FROM table_name_40 WHERE club = "atlético ceuta" AND losses < '11'
```
Note: The comparison for `losses` assumes it is stored as a string; if it is stored as an i... | 25,161 | [
{
"from": "human",
"value": " 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 (played INTEGER, club VARCHAR, losses VARCHAR)\n\n Question: Which Played has a Club of atlético ceuta, and less tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (place VARCHAR, to_par VARCHAR)
Question: What is the place number for the player with a To Par score of 'E'?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the place number for the player with a To Par score of 'E':
```
SELECT place FROM table_name_85 WHERE to_par = 'E'
``` | 25,162 | [
{
"from": "human",
"value": " 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 (place VARCHAR, to_par VARCHAR)\n\n Question: What is the place number for the player with a To Par score of 'E'?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (to_par VARCHAR, country VARCHAR)
Question: What is the To Par score for the player from South Africa?
Here is the SQLite query to answer to the question: ... | Certainly! Here is the SQLite query you provided, wrapped in code formatting:
```
SELECT to_par FROM table_name_76 WHERE country = "south africa";
``` | 25,163 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, country VARCHAR)\n\n Question: What is the To Par score for the player from South Africa?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (player VARCHAR, to_par VARCHAR, country VARCHAR)
Question: Which player from Scotland has a To Par score of +7?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about which player from Scotland has a To Par score of +7:
```
SELECT player FROM table_name_50 WHERE to_par = "+7" AND country = "scotland";
``` | 25,164 | [
{
"from": "human",
"value": " 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 (player VARCHAR, to_par VARCHAR, country VARCHAR)\n\n Question: Which player from Scotland has a To Par score of +7?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (place VARCHAR, country VARCHAR, player VARCHAR)
Question: Player Craig Parry of Australia is in what place number?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question: Player Craig Parry of Australia is in what place number?:
```
SELECT place FROM table_name_86 WHERE country = "Australia" AND player = "Craig Parry";
``` | 25,165 | [
{
"from": "human",
"value": " 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 (place VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: Player Craig Parry of Australia is in what place numb... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR)
Question: Which player from the United States is in a place of T2?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding which player from the United States is in a place of T2:
```
SELECT player FROM table_name_49 WHERE place = "T2" AND country = "United States";
``` | 25,166 | [
{
"from": "human",
"value": " 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 (player VARCHAR, place VARCHAR, country VARCHAR)\n\n Question: Which player from the United States is in a place of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (score VARCHAR, to_par VARCHAR, player VARCHAR)
Question: For the match in which player David Frost scored a To Par of +7, what was the final score?
Here i... | Here is the SQLite query to answer the question regarding the match in which player David Frost scored a To Par of +7 and to find out the final score:
```
SELECT score FROM table_name_94 WHERE to_par = "+7" AND player = "David Frost";
``` | 25,167 | [
{
"from": "human",
"value": " 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 (score VARCHAR, to_par VARCHAR, player VARCHAR)\n\n Question: For the match in which player David Frost scored a To ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (to_par INTEGER, player VARCHAR, total VARCHAR)
Question: What was Tom Watson's lowest To par when the total was larger than 144?
Here is the SQLite query ... | Here is the SQLite query to answer the question about Tom Watson's lowest To par when the total was larger than 144:
```
SELECT MIN(to_par) FROM table_name_44 WHERE player = "tom watson" AND total > 144
``` | 25,168 | [
{
"from": "human",
"value": " 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 (to_par INTEGER, player VARCHAR, total VARCHAR)\n\n Question: What was Tom Watson's lowest To par when the total was... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (total VARCHAR, country VARCHAR)
Question: What was England's total?
Here is the SQLite query to answer to the question: What was England's total?:
```
SEL... | Here is the SQLite query to answer the question about England's total:
```
SELECT total FROM table_name_75 WHERE country = "England";
``` | 25,169 | [
{
"from": "human",
"value": " 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 (total VARCHAR, country VARCHAR)\n\n Question: What was England's total?\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_9 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR)
Question: What player had a To par smaller than 9 and won in 1985?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question:
```
SELECT player FROM table_name_9 WHERE to_par < 9 AND year_s__won = "1985";
``` | 25,170 | [
{
"from": "human",
"value": " 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 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR)\n\n Question: What player had a To par smaller than 9 and won i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (seat_percentage VARCHAR, vote_percentage VARCHAR)
Question: What is the seat percentage when vote percentage is 2.4% (-8.3)?
Here is the SQLite query to a... | Here is the SQLite query that you can use to find the seat percentage when the vote percentage is 2.4% (-8.3):
```
SELECT seat_percentage FROM table_name_73 WHERE vote_percentage = "2.4% (-8.3)"
``` | 25,171 | [
{
"from": "human",
"value": " 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 (seat_percentage VARCHAR, vote_percentage VARCHAR)\n\n Question: What is the seat percentage when vote percentage is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (calorie VARCHAR, watt_hour VARCHAR)
Question: How many calories is 1 watt hour?
Here is the SQLite query to answer to the question: How many calories is 1... | Here is the SQLite query to answer the question: How many calories is 1 watt hour?:
```
SELECT calorie FROM table_name_64 WHERE watt_hour = "1"
``` | 25,172 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (calorie VARCHAR, watt_hour VARCHAR)\n\n Question: How many calories is 1 watt hour?\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_44 (electronvolt VARCHAR, joule VARCHAR)
Question: How many electronvolts is 3,600 joules?
Here is the SQLite query to answer to the question: How many electr... | Here is the SQLite query to answer the question of how many electronvolts is 3,600 joules:
```
SELECT electronvolt FROM table_name_44 WHERE joule = "3,600"
``` | 25,173 | [
{
"from": "human",
"value": " 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 (electronvolt VARCHAR, joule VARCHAR)\n\n Question: How many electronvolts is 3,600 joules?\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_81 (year VARCHAR, winner VARCHAR)
Question: What is the total number of Year, when Winner is "Johnathan Gray"?
Here is the SQLite query to answer to the quest... | Your SQLite query is almost correct, but please note that the comparison in the `WHERE` clause should match the case of the winner's name exactly as it appears in the database, unless the database collation is insensitive to case.
Assuming the correct casing is "Johnathan Gray" as per your question, the query would ne... | 25,174 | [
{
"from": "human",
"value": " 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, winner VARCHAR)\n\n Question: What is the total number of Year, when Winner is \"Johnathan Gray\"?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (winner VARCHAR, college VARCHAR)
Question: What is Winner, when College is "Kentucky"?
Here is the SQLite query to answer to the question: What is Winner,... | Your SQLite query looks good, but remember that string comparisons in SQL are case-sensitive by default in some settings. To ensure that you capture all variations of "Kentucky" (such as "Kentucky", "kentucky", or "KENTUCKY"), you might want to either use a case-insensitive comparison or ensure consistent casing in you... | 25,175 | [
{
"from": "human",
"value": " 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 (winner VARCHAR, college VARCHAR)\n\n Question: What is Winner, when College is \"Kentucky\"?\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_83 (hometown VARCHAR, sport VARCHAR, winner VARCHAR)
Question: What is Hometown, when Sport is "Basketball", and when Winner is "Dwight Howard"?
Here is the S... | Here is the SQLite query to answer the question:
```
SELECT hometown FROM table_name_83 WHERE sport = "Basketball" AND winner = "Dwight Howard";
``` | 25,176 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (hometown VARCHAR, sport VARCHAR, winner VARCHAR)\n\n Question: What is Hometown, when Sport is \"Basketball\", and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (duration VARCHAR, wins INTEGER)
Question: What is the Duration for less than 53 consecutive wins?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about the Duration for less than 53 consecutive wins:
```
SELECT duration FROM table_name_68 WHERE wins < 53;
``` | 25,177 | [
{
"from": "human",
"value": " 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 (duration VARCHAR, wins INTEGER)\n\n Question: What is the Duration for less than 53 consecutive wins?\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_97 (wins VARCHAR, defeated_by VARCHAR)
Question: How many wins were held before being defeated by toda?
Here is the SQLite query to answer to the question: Ho... | Your SQLite query is correct for counting the number of wins that were held before being defeated by "toda".
Here is your query wrapped in code formatting:
```
SELECT COUNT(wins) FROM table_name_97 WHERE defeated_by = "toda";
```
This will return the count of wins for which "toda" is the opponent that defeated the... | 25,178 | [
{
"from": "human",
"value": " 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 (wins VARCHAR, defeated_by VARCHAR)\n\n Question: How many wins were held before being defeated by toda?\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_9 (goals INTEGER, name VARCHAR, ends VARCHAR)
Question: What is the greatest goals for Curtis Davies if ends is greater than 2012?
Here is the SQLite query to... | Here is the SQLite query that answers the question about the greatest goals for Curtis Davies if the ends are greater than 2012:
```
SELECT MAX(goals) FROM table_name_9 WHERE name = "Curtis Davies" AND ends > 2012
``` | 25,179 | [
{
"from": "human",
"value": " 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 (goals INTEGER, name VARCHAR, ends VARCHAR)\n\n Question: What is the greatest goals for Curtis Davies if ends is gre... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (ends INTEGER, transfer_fee VARCHAR)
Question: When the transfer fee is £8.5m, what is the total ends?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query you requested, wrapped appropriately:
```
SELECT SUM(ends) FROM table_name_70 WHERE transfer_fee = "£8.5m"
``` | 25,180 | [
{
"from": "human",
"value": " 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 (ends INTEGER, transfer_fee VARCHAR)\n\n Question: When the transfer fee is £8.5m, what is the total ends?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (date VARCHAR, latin_commander VARCHAR, battle VARCHAR)
Question: On what Date was Henry I Latin Commander of the Battle of Boruy?
Here is the SQLite query... | Here is the SQLite query to answer the question about the date when Henry I was the Latin Commander of the Battle of Boruy:
```
SELECT date FROM table_name_67 WHERE latin_commander = "Henry I" AND battle = "Battle of Boruy";
``` | 25,181 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (date VARCHAR, latin_commander VARCHAR, battle VARCHAR)\n\n Question: On what Date was Henry I Latin Commander of th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (latin_commander VARCHAR, battle VARCHAR)
Question: Who is the Latin Commander of the Siege of Constantinople?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about the Latin Commander of the Siege of Constantinople:
```
SELECT latin_commander FROM table_name_88 WHERE battle = "Siege of Constantinople";
``` | 25,182 | [
{
"from": "human",
"value": " 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 (latin_commander VARCHAR, battle VARCHAR)\n\n Question: Who is the Latin Commander of the Siege of Constantinople?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (result VARCHAR, latin_commander VARCHAR)
Question: What is the Result of the battle with Latin Commander Boniface of Montferrat?
Here is the SQLite query t... | Here is the SQLite query to answer the question regarding the result of the battle with Latin Commander Boniface of Montferrat:
```
SELECT result FROM table_name_3 WHERE latin_commander = "Boniface of Montferrat";
``` | 25,183 | [
{
"from": "human",
"value": " 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 (result VARCHAR, latin_commander VARCHAR)\n\n Question: What is the Result of the battle with Latin Commander Bonifac... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (battle VARCHAR, bulgarian_commander VARCHAR)
Question: What is the Battle with Bulgarian Commander Ivan Asen II?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question regarding the battle with Bulgarian Commander Ivan Asen II:
```
SELECT battle FROM table_name_21 WHERE bulgarian_commander = "Ivan Asen II";
``` | 25,184 | [
{
"from": "human",
"value": " 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 (battle VARCHAR, bulgarian_commander VARCHAR)\n\n Question: What is the Battle with Bulgarian Commander Ivan Asen II... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (bulgarian_commander VARCHAR, battle VARCHAR)
Question: What is the Bulgarian Commander of the Battle of Rusion?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the Bulgarian Commander of the Battle of Rusion:
```
SELECT bulgarian_commander FROM table_name_39 WHERE battle = "Battle of Rusion";
``` | 25,185 | [
{
"from": "human",
"value": " 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 (bulgarian_commander VARCHAR, battle VARCHAR)\n\n Question: What is the Bulgarian Commander of the Battle of Rusion?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (type VARCHAR, rite VARCHAR)
Question: What is Type for Rite Albanian?
Here is the SQLite query to answer to the question: What is Type for Rite Albanian?:... | Here is the SQLite query to answer the question: What is Type for Rite Albanian?:
```
SELECT type FROM table_name_63 WHERE rite = "Albanian";
``` | 25,186 | [
{
"from": "human",
"value": " 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 (type VARCHAR, rite VARCHAR)\n\n Question: What is Type for Rite Albanian?\n\nHere is the SQLite query to answer to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (area__km_2__ INTEGER, type VARCHAR)
Question: What Area (km 2) is lowest with a type being Apostolic Administration?
Here is the SQLite query to answer to... | Your query is almost correct, but make sure the string comparison for the type is case-insensitive if needed, depending on how your data is entered. Here's the corrected version wrapped in the appropriate code block:
```sql
SELECT MIN(area__km_2__)
FROM table_name_47
WHERE LOWER(type) = 'apostolic administration';
`... | 25,187 | [
{
"from": "human",
"value": " 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 (area__km_2__ INTEGER, type VARCHAR)\n\n Question: What Area (km 2) is lowest with a type being Apostolic Administra... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (ecclesiastical_province VARCHAR, type VARCHAR, latin_name VARCHAR)
Question: What Ecclesiastical Province has a type diocese and a latin name alexiensis?
... | Here is the SQLite query to answer the question regarding the Ecclesiastical Province with a type of diocese and a Latin name of alexiensis:
```
SELECT ecclesiastical_province FROM table_name_21 WHERE type = "diocese" AND latin_name = "alexiensis";
``` | 25,188 | [
{
"from": "human",
"value": " 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 (ecclesiastical_province VARCHAR, type VARCHAR, latin_name VARCHAR)\n\n Question: What Ecclesiastical Province has a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (money___$__ VARCHAR, player VARCHAR)
Question: What's the money that Sam Snead won?
Here is the SQLite query to answer to the question: What's the money t... | Here is the SQLite query that answers the question about the money Sam Snead won:
```
SELECT money___$__ FROM table_name_52 WHERE player = "Sam Snead"
``` | 25,189 | [
{
"from": "human",
"value": " 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 (money___$__ VARCHAR, player VARCHAR)\n\n Question: What's the money that Sam Snead won?\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 (to_par INTEGER, player VARCHAR)
Question: What was the total To Par for Craig Wood?
Here is the SQLite query to answer to the question: What was the total... | Here is the SQLite query to answer the question about the total To Par for Craig Wood:
```
SELECT SUM(to_par) FROM table_name_16 WHERE player = 'Craig Wood';
``` | 25,190 | [
{
"from": "human",
"value": " 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 (to_par INTEGER, player VARCHAR)\n\n Question: What was the total To Par for Craig Wood?\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_9 (score VARCHAR, place VARCHAR, player VARCHAR)
Question: What was the score for t9 place for Harold Mcspaden?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the score for the t9 place for Harold Mcspaden:
```
SELECT score FROM table_name_9 WHERE place = "t9" AND player = "Harold Mcspaden";
``` | 25,191 | [
{
"from": "human",
"value": " 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 (score VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: What was the score for t9 place for Harold Mcspaden?\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_58 (country VARCHAR, player VARCHAR)
Question: What was the country for Sam Snead?
Here is the SQLite query to answer to the question: What was the country fo... | Here is the SQLite query to answer the question about the country for Sam Snead:
```
SELECT country FROM table_name_58 WHERE player = "Sam Snead";
``` | 25,192 | [
{
"from": "human",
"value": " 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 (country VARCHAR, player VARCHAR)\n\n Question: What was the country for Sam Snead?\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_23 (place INTEGER, ribbon VARCHAR, total VARCHAR)
Question: What place had a ribbon below 9.8 and a 19.2 total?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question of what place had a ribbon below 9.8 and a total of 19.2:
```
SELECT place FROM table_name_23 WHERE ribbon < 9.8 AND total = '19.2';
```
Note that I have used `total = '19.2'` as the `total` column is of type `VARCHAR`, so it is best to match the string representation ... | 25,193 | [
{
"from": "human",
"value": " 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 (place INTEGER, ribbon VARCHAR, total VARCHAR)\n\n Question: What place had a ribbon below 9.8 and a 19.2 total?\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_88 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, deaths VARCHAR)
Question: Which Natural change has a Crude death rate (per 1000) larger than 9... | Here is the SQLite query to answer the question you provided:
```
SELECT natural_change FROM table_name_88 WHERE crude_death_rate__per_1000_ > 9 AND deaths = "40 399";
``` | 25,194 | [
{
"from": "human",
"value": " 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 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, deaths VARCHAR)\n\n Question: Which Natural change has... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (season INTEGER, average_attendance_league VARCHAR)
Question: How many season have an average attendance league of 2.456?
Here is the SQLite query to answe... | The provided query seems to be incorrect for counting the number of seasons. Instead of using `SUM(season)`, you should use `COUNT(season)` to get the number of seasons with the specified average attendance.
Here is the corrected SQLite query:
```
SELECT COUNT(season) FROM table_name_46 WHERE average_attendance_leag... | 25,195 | [
{
"from": "human",
"value": " 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 (season INTEGER, average_attendance_league VARCHAR)\n\n Question: How many season have an average attendance league ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (venue VARCHAR, against INTEGER)
Question: Which venue has more than 19 against?
Here is the SQLite query to answer to the question: Which venue has more t... | Your SQLite query to find venues with more than 19 against looks good, but if you're interested in grouping and counting the occurrences of "against" for each venue, you might want to use a `GROUP BY` clause. Here’s an alternative version that aggregates the counts:
```sql
SELECT venue
FROM table_name_63
GROUP BY ve... | 25,196 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, against INTEGER)\n\n Question: Which venue has more than 19 against?\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_20 (against VARCHAR, status VARCHAR)
Question: How many against have a status of first test?
Here is the SQLite query to answer to the question: How many agai... | Your SQLite query looks correct. Here it is wrapped in the requested code format:
```
SELECT COUNT(against) FROM table_name_20 WHERE status = "first test";
```
This query counts the number of entries in the `table_name_20` where the `status` is "first test". | 25,197 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (against VARCHAR, status VARCHAR)\n\n Question: How many against have a status of first test?\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_38 (venue VARCHAR, date VARCHAR)
Question: What is the Venue of the Competition on 2001-05-05?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question about the venue of the competition on 2001-05-05:
```
SELECT venue FROM table_name_38 WHERE date = "2001-05-05";
``` | 25,198 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, date VARCHAR)\n\n Question: What is the Venue of the Competition on 2001-05-05?\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_15 (date VARCHAR, score VARCHAR, competition VARCHAR)
Question: What is the Date of the Fifa World Cup with a Score of 1-0?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question:
```
SELECT date FROM table_name_15 WHERE score = "1-0" AND competition = "fifa world cup";
``` | 25,199 | [
{
"from": "human",
"value": " 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, score VARCHAR, competition VARCHAR)\n\n Question: What is the Date of the Fifa World Cup with a Score... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.