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_45 (tie_no INTEGER, home_team VARCHAR, date VARCHAR)
Question: What was the highest Tie no when the home team was the Bolton Wanderers, and the date was Middle... | Here is the SQLite query to answer the question:
```
SELECT MAX(tie_no) FROM table_name_45 WHERE home_team = "Bolton Wanderers" AND date = "Middlesbrough";
``` | 24,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_45 (tie_no INTEGER, home_team VARCHAR, date VARCHAR)\n\n Question: What was the highest Tie no when the home team was t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (tie_no INTEGER, date VARCHAR)
Question: What is the average Tie no when the date is Birmingham City?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to calculate the average `tie_no` when the `date` is "Birmingham City":
```sql
SELECT AVG(tie_no) FROM table_name_22 WHERE date = "Birmingham City";
``` | 24,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_22 (tie_no INTEGER, date VARCHAR)\n\n Question: What is the average Tie no when the date is Birmingham City?\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_19 (tie_no VARCHAR, home_team VARCHAR, date VARCHAR)
Question: What was the Tie no when then home team was Stoke City for the game played on 9 February 1946?
... | Here is the SQLite query to answer the question regarding the Tie number when the home team was Stoke City for the game played on 9 February 1946:
```
SELECT tie_no FROM table_name_19 WHERE home_team = "Stoke City" AND date = "9 February 1946";
``` | 24,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_19 (tie_no VARCHAR, home_team VARCHAR, date VARCHAR)\n\n Question: What was the Tie no when then home team was Stoke Ci... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (attendance VARCHAR, opponent VARCHAR)
Question: How many attended the game with an opponent of bye?
Here is the SQLite query to answer to the question: Ho... | To count how many attended the game with an opponent of "bye", you should use the `COUNT` function in your query. Here’s the correct SQLite query wrapped in code formatting:
```sql
SELECT COUNT(attendance) AS total_attended FROM table_name_72 WHERE opponent = "bye";
``` | 24,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_72 (attendance VARCHAR, opponent VARCHAR)\n\n Question: How many attended the game with an opponent of bye?\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_32 (opponent VARCHAR, attendance VARCHAR)
Question: Which opponent had 73,428 in attendance?
Here is the SQLite query to answer to the question: Which opponen... | Here is the SQLite query to answer the question about which opponent had 73,428 in attendance:
```
SELECT opponent FROM table_name_32 WHERE attendance = "73,428"
``` | 24,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_32 (opponent VARCHAR, attendance VARCHAR)\n\n Question: Which opponent had 73,428 in attendance?\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_34 (attendance VARCHAR, opponent VARCHAR)
Question: What was the attendance of the Oakland Raiders game?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question regarding the attendance of the Oakland Raiders game:
```
SELECT attendance FROM table_name_34 WHERE opponent = "oakland raiders";
``` | 24,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_34 (attendance VARCHAR, opponent VARCHAR)\n\n Question: What was the attendance of the Oakland Raiders game?\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_6 (streak VARCHAR, game VARCHAR)
Question: What is the streak for game 2?
Here is the SQLite query to answer to the question: What is the streak for game 2?:
... | Your SQLite query to find the streak for game 2 is correctly formulated. Below is the same query wrapped in code formatting:
```
SELECT streak FROM table_name_6 WHERE game = "2";
``` | 24,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_6 (streak VARCHAR, game VARCHAR)\n\n Question: What is the streak for game 2?\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_90 (date VARCHAR, game VARCHAR)
Question: Which Date has a Game of game 3?
Here is the SQLite query to answer to the question: Which Date has a Game of game 3... | Your SQLite query is correct. Here is the formatted query wrapped in code blocks:
```sql
SELECT date FROM table_name_90 WHERE game = "game 3";
``` | 24,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_90 (date VARCHAR, game VARCHAR)\n\n Question: Which Date has a Game of game 3?\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_97 (home_team VARCHAR, road_team VARCHAR, result VARCHAR)
Question: Which Home Team has a Road Team of rochester, and a Result of 71-78?
Here is the SQLite qu... | Your provided SQLite query correctly addresses the question. Here it is formatted as requested:
```
SELECT home_team FROM table_name_97 WHERE road_team = "rochester" AND result = "71-78";
``` | 24,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_97 (home_team VARCHAR, road_team VARCHAR, result VARCHAR)\n\n Question: Which Home Team has a Road Team of rochester, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (result VARCHAR, home_team VARCHAR, game VARCHAR)
Question: Which Result has a Home Team of rochester, and a Game of game 5?
Here is the SQLite query to an... | Here is the SQLite query to answer the question regarding which Result has a Home Team of "rochester" and a Game of "game 5":
```
SELECT result FROM table_name_99 WHERE home_team = "rochester" AND game = "game 5"
``` | 24,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_99 (result VARCHAR, home_team VARCHAR, game VARCHAR)\n\n Question: Which Result has a Home Team of rochester, and a Gam... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (road_team VARCHAR, home_team VARCHAR, game VARCHAR)
Question: Which Road Team has a Home Team of rochester, and a Game of game 2?
Here is the SQLite query... | Here is the SQLite query to answer the question about which Road Team has a Home Team of "rochester" and a Game of "game 2":
```
SELECT road_team FROM table_name_61 WHERE home_team = "rochester" AND game = "game 2";
``` | 24,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_61 (road_team VARCHAR, home_team VARCHAR, game VARCHAR)\n\n Question: Which Road Team has a Home Team of rochester, and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)
Question: Which Road Team has a Home Team of rochester, and a Result of 89-92?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT road_team FROM table_name_9 WHERE home_team = "rochester" AND result = "89-92"
``` | 24,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_9 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)\n\n Question: Which Road Team has a Home Team of rochester, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (date VARCHAR, road_team VARCHAR, result VARCHAR)
Question: Which Date has a Road Team of new york, and a Result of 79-75?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question:
```
SELECT date FROM table_name_42 WHERE road_team = "new york" AND result = "79-75";
``` | 24,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_42 (date VARCHAR, road_team VARCHAR, result VARCHAR)\n\n Question: Which Date has a Road Team of new york, and a Result... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (high_assists VARCHAR, game VARCHAR)
Question: What was the highest assists for game 3?
Here is the SQLite query to answer to the question: What was the hig... | Your SQLite query is almost correct, but to find the highest assists for game 3, you should use an aggregate function like `MAX()`. Here’s the corrected query:
```sql
SELECT MAX(high_assists) AS highest_assists FROM table_name_7 WHERE game = '3';
```
This query will return the maximum assists recorded for game 3. Not... | 24,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_7 (high_assists VARCHAR, game VARCHAR)\n\n Question: What was the highest assists for game 3?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (country VARCHAR, to_par VARCHAR, player VARCHAR)
Question: What country is player ed sneed, who has a to par of +3, from?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the country of player Ed Sneed, who has a to par of +3:
```sql
SELECT country FROM table_name_70 WHERE to_par = "+3" AND player = "ed sneed";
``` | 24,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_70 (country VARCHAR, to_par VARCHAR, player VARCHAR)\n\n Question: What country is player ed sneed, who has a to par of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (to_par VARCHAR, place VARCHAR, player VARCHAR)
Question: What is the to par of player ed sneed, who has a t5 place?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about the "to par" of player "ed sneed" who has a "t5" place:
```
SELECT to_par FROM table_name_45 WHERE place = "t5" AND player = "ed sneed"
``` | 24,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_45 (to_par VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: What is the to par of player ed sneed, who has a t5 pl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (player VARCHAR, score VARCHAR)
Question: Who is the player with a 70-75=145 score?
Here is the SQLite query to answer to the question: Who is the player w... | It looks like there is a small mistake in the logic of your SQL query. The condition `70 - 75 = 145` is not valid because it will always evaluate to `FALSE`. Instead, if you want to find the player with a score that represents the expression `70 - 75` and its result, you may want to clarify the relationship of the scor... | 24,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_62 (player VARCHAR, score VARCHAR)\n\n Question: Who is the player with a 70-75=145 score?\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_60 (to_par VARCHAR, player VARCHAR, score VARCHAR)
Question: What is the to par of player tom weiskopf, who has a 71-74=145 score?
Here is the SQLite query to... | The SQLite query you provided contains an error in the condition for checking the score. The comparison for `score` should directly match the string representation of the score "145", not through mathematical operations. Here's the corrected query:
```
SELECT to_par FROM table_name_60 WHERE score = '145' AND player = ... | 24,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_60 (to_par VARCHAR, player VARCHAR, score VARCHAR)\n\n Question: What is the to par of player tom weiskopf, who has a 7... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (player VARCHAR, place VARCHAR, score VARCHAR)
Question: Who is the player with a t5 place and a 75-70=145 score?
Here is the SQLite query to answer to the... | The current query you provided contains a syntax issue in the comparison for the score. In SQL, you should compare the score to the result of the arithmetic operation directly.
Here's the correct SQLite query to get the player with a place of "t5" and a score of 145:
```
SELECT player FROM table_name_47 WHERE place ... | 24,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_47 (player VARCHAR, place VARCHAR, score VARCHAR)\n\n Question: Who is the player with a t5 place and a 75-70=145 score... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (country VARCHAR, to_par VARCHAR, player VARCHAR)
Question: What is the country of player ed sneed with a to par of +3?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding the country of player Ed Sneed with a to par of +3:
```
SELECT country FROM table_name_15 WHERE to_par = "+3" AND player = "ed sneed";
``` | 24,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_15 (country VARCHAR, to_par VARCHAR, player VARCHAR)\n\n Question: What is the country of player ed sneed with a to par... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (score VARCHAR, record VARCHAR)
Question: What is the Score of the game with a Record of 31–37–9?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question regarding the Score of the game with a Record of 31–37–9:
```
SELECT score FROM table_name_3 WHERE record = "31–37–9";
``` | 24,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 (score VARCHAR, record VARCHAR)\n\n Question: What is the Score of the game with a Record of 31–37–9?\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 (score VARCHAR, date VARCHAR, home VARCHAR, points VARCHAR)
Question: What is the Score of the Pittsburgh Home game on March 3 with 61 Points?
Here is the ... | Here is the SQLite query to answer the question about the Score of the Pittsburgh Home game on March 3 with 61 Points:
```
SELECT score FROM table_name_18 WHERE home = "pittsburgh" AND points = "61" AND date = "march 3";
``` | 24,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_18 (score VARCHAR, date VARCHAR, home VARCHAR, points VARCHAR)\n\n Question: What is the Score of the Pittsburgh Home g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (date VARCHAR, home VARCHAR)
Question: What is the Date of the game in Vancouver?
Here is the SQLite query to answer to the question: What is the Date of th... | Sure! Here is the SQLite query to answer the question about the date of the game in Vancouver:
```
SELECT date FROM table_name_9 WHERE home = "vancouver"
``` | 24,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_9 (date VARCHAR, home VARCHAR)\n\n Question: What is the Date of the game in Vancouver?\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_37 (run_4 VARCHAR, athletes VARCHAR)
Question: Which Run 4 has Athletes of alexandru frimu & costel rădulescu?
Here is the SQLite query to answer to the quest... | The provided query is incorrect because it assumes that the `athletes` column contains the exact string "alexandru frimu & costel rădulescu". Instead, to check if both athletes are present in the `athletes` column (which may contain multiple names), you should look for the presence of each athlete separately. Here’s th... | 24,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_37 (run_4 VARCHAR, athletes VARCHAR)\n\n Question: Which Run 4 has Athletes of alexandru frimu & costel rădulescu?\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_55 (final VARCHAR, team VARCHAR)
Question: Which Final has a Team of liechtenstein (lie) liechtenstein i?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question:
```sql
SELECT final FROM table_name_55 WHERE team = "liechtenstein (lie) liechtenstein i";
``` | 24,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_55 (final VARCHAR, team VARCHAR)\n\n Question: Which Final has a Team of liechtenstein (lie) liechtenstein i?\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_29 (run_2 VARCHAR, run_1 VARCHAR)
Question: Which Run 2 has a Run 1 of 1:30.03?
Here is the SQLite query to answer to the question: Which Run 2 has a Run 1 of... | Your SQL query is correct for the given question. Here it is wrapped in the requested format:
```
SELECT run_2 FROM table_name_29 WHERE run_1 = "1:30.03";
``` | 24,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_29 (run_2 VARCHAR, run_1 VARCHAR)\n\n Question: Which Run 2 has a Run 1 of 1:30.03?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (run_4 VARCHAR, run_3 VARCHAR)
Question: Which Run 4 has a Run 3 of 1:26.63?
Here is the SQLite query to answer to the question: Which Run 4 has a Run 3 of... | Your SQLite query is correctly formulated to answer the question regarding which Run 4 corresponds to a Run 3 of "1:26.63". Here it is wrapped in code formatting:
```
SELECT run_4 FROM table_name_53 WHERE run_3 = "1:26.63";
``` | 24,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_53 (run_4 VARCHAR, run_3 VARCHAR)\n\n Question: Which Run 4 has a Run 3 of 1:26.63?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (run_4 VARCHAR, run_1 VARCHAR)
Question: Which Run 4 has a Run 1 of 1:25.82?
Here is the SQLite query to answer to the question: Which Run 4 has a Run 1 of... | Here is the SQLite query to answer the question about which Run 4 has a Run 1 of 1:25.82:
```
SELECT run_4 FROM table_name_59 WHERE run_1 = "1:25.82"
``` | 24,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_59 (run_4 VARCHAR, run_1 VARCHAR)\n\n Question: Which Run 4 has a Run 1 of 1:25.82?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (final VARCHAR, run_2 VARCHAR)
Question: Which Final has a Run 2 of 1:27.58?
Here is the SQLite query to answer to the question: Which Final has a Run 2 of... | Here is the SQLite query to answer the question "Which Final has a Run 2 of 1:27.58?":
```
SELECT final FROM table_name_50 WHERE run_2 = "1:27.58";
``` | 24,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_50 (final VARCHAR, run_2 VARCHAR)\n\n Question: Which Final has a Run 2 of 1:27.58?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (opponents_in_the_final VARCHAR, score VARCHAR, championship VARCHAR, year VARCHAR)
Question: which opponents in the u.s. championships played after 1945 and... | Here is the corrected SQLite query to answer the question regarding opponents in the U.S. championships played after 1945 with specific scores:
```sql
SELECT opponents_in_the_final
FROM table_name_5
WHERE championship = "u.s. championships"
AND year > 1945
AND score IN ("3–6", "6–4", "2–6", "6–3", "20–18");
``... | 24,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_5 (opponents_in_the_final VARCHAR, score VARCHAR, championship VARCHAR, year VARCHAR)\n\n Question: which opponents in ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (year INTEGER, partner VARCHAR, score VARCHAR)
Question: what is the most recent year gardnar mulloy played as a partner and score was 12–10, 8–10, 12–10, 6... | ```sql
SELECT MAX(year)
FROM table_name_29
WHERE partner = 'gardnar mulloy'
AND score = '12–10, 8–10, 12–10, 6–2';
``` | 24,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_29 (year INTEGER, partner VARCHAR, score VARCHAR)\n\n Question: what is the most recent year gardnar mulloy played as a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (ship VARCHAR, builder VARCHAR)
Question: What Ship was Built by Cammell Laird?
Here is the SQLite query to answer to the question: What Ship was Built by ... | Here is the SQLite query to answer the question "What Ship was Built by Cammell Laird?":
```
SELECT ship FROM table_name_70 WHERE builder = "Cammell Laird"
``` | 24,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_70 (ship VARCHAR, builder VARCHAR)\n\n Question: What Ship was Built by Cammell Laird?\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_47 (country VARCHAR, ship VARCHAR)
Question: What Country is the John S. McCain Ship from?
Here is the SQLite query to answer to the question: What Country is... | Here is the SQLite query to answer the question: What Country is the John S. McCain Ship from?:
```
SELECT country FROM table_name_47 WHERE ship = "John S. McCain";
``` | 24,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_47 (country VARCHAR, ship VARCHAR)\n\n Question: What Country is the John S. McCain Ship from?\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_66 (ship VARCHAR, class___type VARCHAR, location VARCHAR)
Question: What is the Cargo Ship located at Birkenhead?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question: What is the Cargo Ship located at Birkenhead?:
```
SELECT ship FROM table_name_66 WHERE class___type = "cargo ship" AND location = "birkenhead";
``` | 24,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_66 (ship VARCHAR, class___type VARCHAR, location VARCHAR)\n\n Question: What is the Cargo Ship located at Birkenhead?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (population INTEGER, _percentage_lds VARCHAR, total_congregations VARCHAR)
Question: What is the highest Population, when % LDS is 0.54%, and when Total Con... | Here is the SQLite query to answer the specified question:
```sql
SELECT MAX(population) FROM table_name_13 WHERE _percentage_lds = "0.54%" AND total_congregations > 2
``` | 24,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_13 (population INTEGER, _percentage_lds VARCHAR, total_congregations VARCHAR)\n\n Question: What is the highest Populat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (total_congregations VARCHAR, _percentage_lds VARCHAR, population VARCHAR)
Question: What is the total number of Total Congregations, when % LDS is 0.54%, a... | The SQL query you provided has a small mistake in the `WHERE` clause. You should not use `OFFSET` with the condition `population > 105`. Instead, you should just compare the population directly to the number `105275` (assuming the population is stored as a string, it might need to be converted to an integer). Here's ho... | 24,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_85 (total_congregations VARCHAR, _percentage_lds VARCHAR, population VARCHAR)\n\n Question: What is the total number of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (population INTEGER, state VARCHAR, total_congregations VARCHAR)
Question: What is the highest Population, when State is Puerto Rico, and when Total Congreg... | Here is the SQLite query to answer the question you provided:
```
SELECT MAX(population) FROM table_name_16 WHERE state = "Puerto Rico" AND total_congregations > 41
``` | 24,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_16 (population INTEGER, state VARCHAR, total_congregations VARCHAR)\n\n Question: What is the highest Population, when ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (population VARCHAR, total_congregations VARCHAR, _percentage_lds VARCHAR)
Question: What is Population, when Total Congregations is less than 4, and when %... | Here is the SQLite query wrapped in the requested format:
```
SELECT population FROM table_name_83 WHERE total_congregations < 4 AND _percentage_lds = "0.54%"
``` | 24,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_83 (population VARCHAR, total_congregations VARCHAR, _percentage_lds VARCHAR)\n\n Question: What is Population, when To... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (actor_in_london VARCHAR, _2002 VARCHAR, shipwreck VARCHAR)
Question: Who was the actor in London in 2002 with the shipwreck of Leonty Ibayev?
Here is the ... | Here is the SQLite query to answer the question regarding the actor in London in 2002 with the shipwreck of Leonty Ibayev:
```
SELECT actor_in_london, _2002
FROM table_name_78
WHERE shipwreck = "Leonty Ibayev";
``` | 24,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_78 (actor_in_london VARCHAR, _2002 VARCHAR, shipwreck VARCHAR)\n\n Question: Who was the actor in London in 2002 with t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (actor_in_moscow VARCHAR, _2007 VARCHAR, voyage VARCHAR)
Question: Who was the 2007 actor from Moscow for the voyage of Varenka Bakunin?
Here is the SQLite... | Here is the SQLite query to answer the question about who was the 2007 actor from Moscow for the voyage of Varenka Bakunin:
```sql
SELECT actor_in_moscow, _2007 FROM table_name_91 WHERE voyage = "Varenka Bakunin"
``` | 24,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_91 (actor_in_moscow VARCHAR, _2007 VARCHAR, voyage VARCHAR)\n\n Question: Who was the 2007 actor from Moscow for the vo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (actor_in_moscow VARCHAR, _2007 VARCHAR, shipwreck VARCHAR)
Question: Who was the 2007 actor from Moscow for the shipwreck of Leonty Ibayev?
Here is the SQ... | Here is the SQLite query to answer the question about the 2007 actor from Moscow for the shipwreck of Leonty Ibayev:
```sql
SELECT actor_in_moscow, _2007 FROM table_name_44 WHERE shipwreck = "leonty ibayev"
``` | 24,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_44 (actor_in_moscow VARCHAR, _2007 VARCHAR, shipwreck VARCHAR)\n\n Question: Who was the 2007 actor from Moscow for the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (institution VARCHAR, affiliation VARCHAR)
Question: Which institution is private/catholic?
Here is the SQLite query to answer to the question: Which insti... | Here is the SQLite query to answer the question about which institution is private/catholic:
```
SELECT institution FROM table_name_55 WHERE affiliation = 'private/catholic';
``` | 24,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_55 (institution VARCHAR, affiliation VARCHAR)\n\n Question: Which institution is private/catholic?\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 (enrollment INTEGER, nickname VARCHAR)
Question: What is the average enrollment of the Redbirds' school?
Here is the SQLite query to answer to the question... | Your SQLite query to find the average enrollment of the Redbirds' school is correctly formulated. Here it is wrapped in code formatting:
```sql
SELECT AVG(enrollment) FROM table_name_47 WHERE nickname = "redbirds";
``` | 24,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_47 (enrollment INTEGER, nickname VARCHAR)\n\n Question: What is the average enrollment of the Redbirds' school?\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (affiliation VARCHAR, institution VARCHAR)
Question: What is Southern Illinois University Edwardsville's affiliation?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding Southern Illinois University Edwardsville's affiliation:
```
SELECT affiliation FROM table_name_48 WHERE institution = "Southern Illinois University Edwardsville";
``` | 24,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_48 (affiliation VARCHAR, institution VARCHAR)\n\n Question: What is Southern Illinois University Edwardsville's affilia... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (high_points VARCHAR, series VARCHAR)
Question: With a 0-2 series, what is the high points?
Here is the SQLite query to answer to the question: With a 0-2 ... | Here is the SQLite query to answer the question:
```
SELECT high_points FROM table_name_23 WHERE series = "0-2"
``` | 24,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_23 (high_points VARCHAR, series VARCHAR)\n\n Question: With a 0-2 series, what is the high points?\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_18 (masculine_an_stems VARCHAR, feminine_ō_stems VARCHAR, masculine_u_stems VARCHAR)
Question: What is the an-stem for the word which has an ö-stems of siangar... | Here is the SQLite query you can use to find the an-stem for the specified conditions:
```
SELECT masculine_an_stems FROM table_name_18 WHERE feminine_ō_stems = "siangar" AND masculine_u_stems = "syni"
``` | 24,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_18 (masculine_an_stems VARCHAR, feminine_ō_stems VARCHAR, masculine_u_stems VARCHAR)\n\n Question: What is the an-stem ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (feminine_ōn_stems VARCHAR, feminine_ō_stems VARCHAR)
Question: What ending does siangu get for ön?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding what ending "siangu" gets for "ön":
```
SELECT feminine_ōn_stems FROM table_name_82 WHERE feminine_ō_stems = "siangu"
``` | 24,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_82 (feminine_ōn_stems VARCHAR, feminine_ō_stems VARCHAR)\n\n Question: What ending does siangu get for ön?\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_18 (masculine_u_stems VARCHAR, neuter_a_stems VARCHAR, masculine_a_stems VARCHAR)
Question: What is the u form of the word with a neuter form of skip and a mas... | Here is the SQLite query to retrieve the u form of the word with a neuter form of "skip" and a masculine a-ending of "fisker":
```
SELECT masculine_u_stems FROM table_name_18 WHERE neuter_a_stems = "skip" AND masculine_a_stems = "fisker"
``` | 24,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_18 (masculine_u_stems VARCHAR, neuter_a_stems VARCHAR, masculine_a_stems VARCHAR)\n\n Question: What is the u form of t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (masculine_an_stems VARCHAR, feminine_ō_stems VARCHAR, masculine_u_stems VARCHAR)
Question: What is the masculine an form for the word with a feminine ö end... | Here is the SQLite query to answer the question:
```
SELECT masculine_an_stems FROM table_name_49 WHERE feminine_ō_stems = "siangar" AND masculine_u_stems = "sunar"
``` | 24,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_49 (masculine_an_stems VARCHAR, feminine_ō_stems VARCHAR, masculine_u_stems VARCHAR)\n\n Question: What is the masculin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (masculine_u_stems VARCHAR, neuter_a_stems VARCHAR)
Question: What is the masculine u form for the old Swedish word with a neuter a form of skipum?
Here is... | Here is the SQLite query to answer the question regarding the masculine u form for the old Swedish word with a neuter a form of "skipum":
```
SELECT masculine_u_stems FROM table_name_68 WHERE neuter_a_stems = "skipum";
``` | 24,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_68 (masculine_u_stems VARCHAR, neuter_a_stems VARCHAR)\n\n Question: What is the masculine u form for the old Swedish w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (date VARCHAR, margin_of_victory VARCHAR, to_par VARCHAR)
Question: A tournament on which date has a margin of victory of 2 strokes and a par of −16?
Here i... | Here is the SQLite query to answer the question regarding the tournament date with a margin of victory of 2 strokes and a par of −16:
```
SELECT date FROM table_name_8 WHERE margin_of_victory = "2 strokes" AND to_par = "−16"
``` | 24,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 (date VARCHAR, margin_of_victory VARCHAR, to_par VARCHAR)\n\n Question: A tournament on which date has a margin of vi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (runner_up VARCHAR, margin_of_victory VARCHAR, to_par VARCHAR)
Question: Who was the runner-up in the tournament that has a margin of victory of 2 strokes, ... | ```sql
SELECT runner_up FROM table_name_62 WHERE margin_of_victory = "2 strokes" AND to_par = "−16"
``` | 24,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_62 (runner_up VARCHAR, margin_of_victory VARCHAR, to_par VARCHAR)\n\n Question: Who was the runner-up in the tournament... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (to_par VARCHAR, runner_up VARCHAR)
Question: What was the to par of the tournament that had Ken Duke as a runner-up?
Here is the SQLite query to answer to... | Your query is almost correct, but you should ensure that the string "ken duke" is properly capitalized or handled to match the case used in the database. Here’s the refined SQLite query wrapped in the requested format:
```
SELECT to_par FROM table_name_56 WHERE LOWER(runner_up) = 'ken duke';
```
This query converts ... | 24,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_56 (to_par VARCHAR, runner_up VARCHAR)\n\n Question: What was the to par of the tournament that had Ken Duke as a runne... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (margin_of_victory VARCHAR, runner_up VARCHAR)
Question: What was the margin of victory when Brandt Snedeker was runner-up?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the margin of victory when Brandt Snedeker was the runner-up:
```
SELECT margin_of_victory FROM table_name_38 WHERE runner_up = "Brandt Snedeker"
``` | 24,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_38 (margin_of_victory VARCHAR, runner_up VARCHAR)\n\n Question: What was the margin of victory when Brandt Snedeker was... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (date VARCHAR, winning_score VARCHAR)
Question: What is the date that has a winning score of 67-70-68-67=272?
Here is the SQLite query to answer to the que... | The SQL query you provided has a syntax error in the condition that checks for the winning score. Instead of performing the arithmetic operation directly in the WHERE clause, you should compare the `winning_score` column as a string. Moreover, it's important to ensure that the winning score is formatted properly.
Here... | 24,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_84 (date VARCHAR, winning_score VARCHAR)\n\n Question: What is the date that has a winning score of 67-70-68-67=272?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (year VARCHAR, bärenklau VARCHAR, schwante VARCHAR, eichstädt VARCHAR)
Question: What year has a Schwante smaller than 2.043, an Eichstädt smaller than 848,... | Here is the SQLite query to answer the question regarding the specified conditions:
```
SELECT year FROM table_name_30 WHERE schwante < 2.043 AND eichstädt < 848 AND bärenklau < 1.262;
``` | 24,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_30 (year VARCHAR, bärenklau VARCHAR, schwante VARCHAR, eichstädt VARCHAR)\n\n Question: What year has a Schwante smalle... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (score VARCHAR, record VARCHAR, game VARCHAR, decision VARCHAR)
Question: What's the score for a game over 56 with a record of 29-24-7 with a lundqvist deci... | Here is the SQLite query you can use to answer the question regarding the score for a game over 56 with the specified record and decision:
```
SELECT score FROM table_name_18 WHERE game > 56 AND record = '29-24-7' AND decision = 'lundqvist';
``` | 24,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_18 (score VARCHAR, record VARCHAR, game VARCHAR, decision VARCHAR)\n\n Question: What's the score for a game over 56 wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (high_rebounds VARCHAR, series VARCHAR)
Question: What is the High rebounds with a Series with 4–2?
Here is the SQLite query to answer to the question: Wha... | Your SQLite query to retrieve the high rebounds for the series "4–2" is correct. Here it is wrapped with the appropriate code block:
```
SELECT high_rebounds FROM table_name_13 WHERE series = "4–2";
``` | 24,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_13 (high_rebounds VARCHAR, series VARCHAR)\n\n Question: What is the High rebounds with a Series with 4–2?\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_9 (high_rebounds VARCHAR, high_assists VARCHAR, team VARCHAR)
Question: What is the High rebounds with a High assists with bryant (7), and a Team of @ utah?
H... | Here is the SQLite query you are looking for, wrapped in the requested format:
```
SELECT high_rebounds FROM table_name_9 WHERE high_assists = "bryant (7)" AND team = "@ utah"
``` | 24,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_9 (high_rebounds VARCHAR, high_assists VARCHAR, team VARCHAR)\n\n Question: What is the High rebounds with a High assis... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (series VARCHAR, high_rebounds VARCHAR)
Question: What is the Series with a High rebounds with gasol (10)?
Here is the SQLite query to answer to the questi... | Your query is almost correct, but it seems there might be a misunderstanding about how to check for "high rebounds" associated with "gasol (10)". Assuming "high_rebounds" is a column that lists players and their statistics, if you want to find the Series where "gasol" had 10 high rebounds, you may want to look for high... | 24,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_54 (series VARCHAR, high_rebounds VARCHAR)\n\n Question: What is the Series with a High rebounds with gasol (10)?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (d_49 VARCHAR, d_46 VARCHAR)
Question: Tell me the D 49 and D 46 of r 13
Here is the SQLite query to answer to the question: Tell me the D 49 and D 46 of r... | The SQLite query you provided selects only `d_49`. To retrieve both `d_49` and `d_46` for the record where `d_46` is "r 13", you should select both columns in your query. Here’s the corrected query:
```
SELECT d_49, d_46 FROM table_name_64 WHERE d_46 = "r 13";
``` | 24,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_64 (d_49 VARCHAR, d_46 VARCHAR)\n\n Question: Tell me the D 49 and D 46 of r 13\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_17 (d_40 VARCHAR, d_44 VARCHAR)
Question: I want the D 40 with D 44 of d 15
Here is the SQLite query to answer to the question: I want the D 40 with D 44 of d... | Here's the corrected SQLite query to answer the question of retrieving `d_40` along with `d_44` for the condition where `d_44` equals "d 15":
```
SELECT d_40, d_44 FROM table_name_17 WHERE d_44 = "d 15"
``` | 24,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_17 (d_40 VARCHAR, d_44 VARCHAR)\n\n Question: I want the D 40 with D 44 of d 15\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (d_45 VARCHAR, d_42 VARCHAR)
Question: I want the D 45 and D 42 of r 22
Here is the SQLite query to answer to the question: I want the D 45 and D 42 of r 2... | Your SQL query is almost correct, but based on your question, you want to retrieve both `d_45` and `d_42` for the row where `d_42` is "r 22". Therefore, you should select both columns in your query. Here’s the corrected version:
```
SELECT d_45, d_42 FROM table_name_58 WHERE d_42 = "r 22"
``` | 24,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_58 (d_45 VARCHAR, d_42 VARCHAR)\n\n Question: I want the D 45 and D 42 of r 22\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_54 (d_46 VARCHAR, d_45 VARCHAR)
Question: I want the D 46 for D 45 of r 5
Here is the SQLite query to answer to the question: I want the D 46 for D 45 of r 5:... | Here is the SQLite query to answer the question "I want the D 46 for D 45 of r 5":
```
SELECT d_46 FROM table_name_54 WHERE d_45 = "r 5"
``` | 24,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_54 (d_46 VARCHAR, d_45 VARCHAR)\n\n Question: I want the D 46 for D 45 of r 5\n\nHere is the SQLite query to answer to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (d_47 VARCHAR, d_41 VARCHAR)
Question: I want the D 47 for D 41 being r 21
Here is the SQLite query to answer to the question: I want the D 47 for D 41 bei... | Here is the SQLite query to answer the question:
```
SELECT d_47 FROM table_name_78 WHERE d_41 = "r 21"
``` | 24,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_78 (d_47 VARCHAR, d_41 VARCHAR)\n\n Question: I want the D 47 for D 41 being r 21\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_54 (name VARCHAR, year VARCHAR, high_school VARCHAR)
Question: What is the Name with a Year of junior, and a High School with wheatley?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_54 WHERE year = "junior" AND high_school = "wheatley";
``` | 24,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_54 (name VARCHAR, year VARCHAR, high_school VARCHAR)\n\n Question: What is the Name with a Year of junior, and a High S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (home_town VARCHAR, name VARCHAR)
Question: What is the Home Town with a Name with rob cunningham?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about the home town associated with the name "rob cunningham":
```
SELECT home_town FROM table_name_40 WHERE name = "rob cunningham"
``` | 24,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_40 (home_town VARCHAR, name VARCHAR)\n\n Question: What is the Home Town with a Name with rob cunningham?\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_79 (position VARCHAR, year VARCHAR, weight VARCHAR)
Question: What is the Position with a Year with freshman, and a Weight larger than 210?
Here is the SQLite... | Your SQLite query looks good, but since the `weight` column is defined as a VARCHAR, you need to explicitly cast it as an INTEGER in the comparison. Here's the updated query:
```
SELECT position FROM table_name_79 WHERE year = "freshman" AND CAST(weight AS INTEGER) > 210
```
This ensures that the weight comparison i... | 24,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_79 (position VARCHAR, year VARCHAR, weight VARCHAR)\n\n Question: What is the Position with a Year with freshman, and a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (home_town VARCHAR, year VARCHAR, height VARCHAR)
Question: What is the Home Town with a Year of freshman, and a Height with 6–6?
Here is the SQLite query ... | Your SQLite query looks correct for the specified conditions. Here's how it can be presented wrapped in code formatting:
```
SELECT home_town FROM table_name_81 WHERE year = "freshman" AND height = "6–6"
```
This query selects the `home_town` from the `table_name_81` where the `year` is "freshman" and the `height` i... | 24,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_81 (home_town VARCHAR, year VARCHAR, height VARCHAR)\n\n Question: What is the Home Town with a Year of freshman, and a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (name VARCHAR, height VARCHAR, year VARCHAR, home_town VARCHAR)
Question: What is the Name with a Year with freshman, and a Home Town with los angeles, ca, ... | ```sql
SELECT name FROM table_name_90 WHERE year = "freshman" AND home_town = "los angeles, ca" AND height = "6–4";
``` | 24,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_90 (name VARCHAR, height VARCHAR, year VARCHAR, home_town VARCHAR)\n\n Question: What is the Name with a Year with fres... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (result VARCHAR, goal VARCHAR)
Question: What is the Result for Goal 3?
Here is the SQLite query to answer to the question: What is the Result for Goal 3?:... | Your query seems to be almost correct, but you need to make sure that the `goal` column is treated as a string if it is stored as a VARCHAR. Assuming that `goal` is indeed a VARCHAR and you want to search for the string "3", the correct query should be:
```
SELECT result FROM table_name_30 WHERE goal = '3'
```
If `go... | 24,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_30 (result VARCHAR, goal VARCHAR)\n\n Question: What is the Result for Goal 3?\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_73 (ties INTEGER, team VARCHAR, games_played VARCHAR)
Question: What is the average ties when the team is montreal victorias and the games played is more than ... | Here's the SQLite query to find the average ties when the team is "montreal victorias" and the games played is more than 8:
```
SELECT AVG(ties) FROM table_name_73 WHERE team = "montreal victorias" AND games_played > 8
``` | 24,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 (ties INTEGER, team VARCHAR, games_played VARCHAR)\n\n Question: What is the average ties when the team is montreal ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR)
Question: what is the average losses when the wins is 3?
Here is the SQLite query to answer to the question: what is the ave... | Your SQLite query is almost correct, but you should ensure that the comparison with the `wins` column is done correctly, as it is declared as `VARCHAR` (string). To compare it accurately, you should treat the value `3` as a string. Here’s the corrected query:
```sql
SELECT AVG(losses) FROM table_name_24 WHERE wins = '... | 24,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_24 (losses INTEGER, wins VARCHAR)\n\n Question: what is the average losses when the wins is 3?\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_54 (goals_against INTEGER, wins INTEGER)
Question: what is the highest goals against when the wins is less than 1?
Here is the SQLite query to answer to the q... | Your SQLite query is correct for finding the highest goals against when the wins are less than 1. Here it is wrapped in code formatting:
```
SELECT MAX(goals_against) FROM table_name_54 WHERE wins < 1;
``` | 24,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_54 (goals_against INTEGER, wins INTEGER)\n\n Question: what is the highest goals against when the wins is less than 1?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (goals_for VARCHAR, wins VARCHAR, ties VARCHAR, goals_against VARCHAR)
Question: what is the total number of goals for when the ties is more than 0, the goa... | It looks like you're looking for the total number of goals for under specific conditions. However, in your query, it seems you are using `COUNT()` instead of a sum function, which would not give the total goals but rather a count of records that meet the criteria.
To properly sum the `goals_for` when certain conditio... | 24,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_48 (goals_for VARCHAR, wins VARCHAR, ties VARCHAR, goals_against VARCHAR)\n\n Question: what is the total number of goa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (losses INTEGER, goals_against VARCHAR, games_played VARCHAR)
Question: what is the sum of the losses when the goals against is less than 34 and the games p... | Here is the SQLite query to answer the question regarding the sum of losses with the specified conditions:
```
SELECT SUM(losses) FROM table_name_80 WHERE goals_against < 34 AND games_played < 8
``` | 24,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_80 (losses INTEGER, goals_against VARCHAR, games_played VARCHAR)\n\n Question: what is the sum of the losses when the g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (platform VARCHAR, system VARCHAR)
Question: What is the name of the platform used for various computers and consoles?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question about the name of the platform used for various computers and consoles:
```
SELECT platform FROM table_name_11 WHERE system = "various computers and consoles";
``` | 24,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_11 (platform VARCHAR, system VARCHAR)\n\n Question: What is the name of the platform used for various computers and con... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (system VARCHAR, name VARCHAR)
Question: Which system is named ELKJS?
Here is the SQLite query to answer to the question: Which system is named ELKJS?:
```... | Here is the SQLite query to answer the question "Which system is named ELKJS?":
```sql
SELECT system FROM table_name_66 WHERE name = "ELKJS";
``` | 24,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_66 (system VARCHAR, name VARCHAR)\n\n Question: Which system is named ELKJS?\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_56 (system VARCHAR, name VARCHAR)
Question: What is the system called that is named ELKJS?
Here is the SQLite query to answer to the question: What is the sys... | Your provided SQLite query is almost correct, but note that the comparison in the WHERE clause is case-sensitive. If you want to ensure that it is case-insensitive, you can either use the `LOWER` function or change the name in the WHERE clause to match the intended casing. Here’s the corrected query for a case-insensit... | 24,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_56 (system VARCHAR, name VARCHAR)\n\n Question: What is the system called that is named ELKJS?\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_13 (numbers VARCHAR, completed INTEGER)
Question: What are the numbers for the item completed earlier than 1904?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the numbers for the items completed earlier than 1904:
```
SELECT numbers FROM table_name_13 WHERE completed < 1904;
``` | 24,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_13 (numbers VARCHAR, completed INTEGER)\n\n Question: What are the numbers for the item completed earlier than 1904?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (completed INTEGER, quantity VARCHAR, numbers VARCHAR)
Question: For the item with more than 10, and numbers of 53-58, 61-72, what is the lowest completed?
... | Your SQLite query is almost correct, but the condition for filtering the `numbers` based on the specified ranges should be adjusted to properly capture the desired values. You will need to check if the `numbers` fall within the specified ranges (53-58 and 61-72) using a condition that allows for checking individual ran... | 24,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_97 (completed INTEGER, quantity VARCHAR, numbers VARCHAR)\n\n Question: For the item with more than 10, and numbers of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (quantity INTEGER, numbers VARCHAR)
Question: What is the quantity of the item with the numbers of 29-36?
Here is the SQLite query to answer to the questio... | The provided query calculates the average quantity of items with the numbers "29-36," but if the goal is to retrieve the total quantity instead, you should use the `SUM` function. Below is the corrected SQLite query to obtain the total quantity of the item with the specified numbers:
```
SELECT SUM(quantity) FROM tabl... | 24,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_91 (quantity INTEGER, numbers VARCHAR)\n\n Question: What is the quantity of the item with the numbers of 29-36?\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_40 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR)
Question: How many reg GP for rick vaive in round 1?
Here is the SQLite query to answer to the questio... | The provided query has an issue with the condition for the `rd__number`. Since the question specifies "round 1", you should check for equality with 1 instead of greater than. Here is the corrected query:
```
SELECT SUM(reg_gp) FROM table_name_40 WHERE player = "rick vaive" AND rd__number = "1"
``` | 24,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_40 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR)\n\n Question: How many reg GP for rick vaive in round 1?\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_19 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR)
Question: How many reg GP for rick vaive in round 1?
Here is the SQLite query to answer to the questio... | It seems there is a misunderstanding in the condition for `rd__number`. If you want to count the "reg GP" for Rick Vaive specifically in round 1, you should check for `rd__number = '1'` instead.
Here's the corrected SQLite query:
```
SELECT SUM(reg_gp) FROM table_name_19 WHERE player = "rick vaive" AND rd__number = '... | 24,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_19 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR)\n\n Question: How many reg GP for rick vaive in round 1?\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_21 (rd__number VARCHAR, pick__number INTEGER)
Question: How many rounds exist for picks under 5?
Here is the SQLite query to answer to the question: How many ... | Here is the SQLite query to answer the question:
```
SELECT COUNT(rd__number) FROM table_name_21 WHERE pick__number < 5
``` | 24,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 (rd__number VARCHAR, pick__number INTEGER)\n\n Question: How many rounds exist for picks under 5?\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_2 (opponent VARCHAR, week INTEGER)
Question: Who did the Jets play in their post-week 15 game?
Here is the SQLite query to answer to the question: Who did the... | Here is the SQLite query to answer the question about who the Jets played in their post-week 15 game:
```
SELECT opponent FROM table_name_2 WHERE week > 15 AND opponent = 'Jets'
```
Note: If you meant to find the opponent of the Jets in their post-week 15 game, the query should actually refer to the Jets in relation... | 24,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_2 (opponent VARCHAR, week INTEGER)\n\n Question: Who did the Jets play in their post-week 15 game?\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_32 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)
Question: Who did the Jets play in their pre-week 9 game at the Robert F. Kennedy memorial stadium?
Her... | Here is the SQLite query to answer the question about who the Jets played in their pre-week 9 game at the Robert F. Kennedy memorial stadium:
```
SELECT opponent FROM table_name_32 WHERE week < 9 AND game_site = "robert f. kennedy memorial stadium" AND opponent = "Jets";
``` | 24,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_32 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)\n\n Question: Who did the Jets play in their pre-week 9 game at ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (date VARCHAR, record VARCHAR)
Question: What was the date of the game when the Canadiens had a record of 31–19–9?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the date of the game when the Canadiens had a record of 31–19–9:
```
SELECT date FROM table_name_40 WHERE record = "31–19–9";
``` | 24,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_40 (date VARCHAR, record VARCHAR)\n\n Question: What was the date of the game when the Canadiens had a record of 31–19–... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (visitor VARCHAR, record VARCHAR)
Question: Who was the visiting team at the game when the Canadiens had a record of 30–19–9?
Here is the SQLite query to a... | Here's the corrected SQLite query to retrieve the visiting team when the Canadiens had a record of 30–19–9:
```
SELECT visitor FROM table_name_29 WHERE record = '30–19–9';
```
Make sure that the record format matches exactly how it is stored in the database, including the use of the correct quotation marks and other... | 24,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_29 (visitor VARCHAR, record VARCHAR)\n\n Question: Who was the visiting team at the game when the Canadiens had a recor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (school VARCHAR, player VARCHAR)
Question: What school did bo jackson attend?
Here is the SQLite query to answer to the question: What school did bo jackso... | Here is the SQLite query to answer the question: What school did bo jackson attend?:
```
SELECT school FROM table_name_96 WHERE player = "bo jackson"
``` | 24,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_96 (school VARCHAR, player VARCHAR)\n\n Question: What school did bo jackson attend?\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_50 (pick INTEGER, position VARCHAR)
Question: What was the highest guard picked?
Here is the SQLite query to answer to the question: What was the highest guar... | Here is the SQLite query to answer the question about the highest guard picked:
```
SELECT MAX(pick) FROM table_name_50 WHERE position = "guard"
``` | 24,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_50 (pick INTEGER, position VARCHAR)\n\n Question: What was the highest guard picked?\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_60 (pick INTEGER, school VARCHAR)
Question: What is the highest pick for a player from auburn?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to find the highest pick for a player from Auburn:
```
SELECT MAX(pick) FROM table_name_60 WHERE school = "auburn";
``` | 24,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_60 (pick INTEGER, school VARCHAR)\n\n Question: What is the highest pick for a player from auburn?\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_54 (rider VARCHAR, round_1_points VARCHAR)
Question: Tell me the rider with 18.185 points round 1
Here is the SQLite query to answer to the question: Tell me ... | Here is the SQLite query to answer the question about the rider with 18.185 points in round 1:
```
SELECT rider FROM table_name_54 WHERE round_1_points = "18.185";
``` | 24,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_54 (rider VARCHAR, round_1_points VARCHAR)\n\n Question: Tell me the rider with 18.185 points round 1\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_10 (total INTEGER, horse VARCHAR)
Question: Tell me the most total for horse of carlson
Here is the SQLite query to answer to the question: Tell me the most t... | Your SQLite query to find the maximum total for the horse named "carlson" is correct. Here it is wrapped in the appropriate code format:
```
SELECT MAX(total) FROM table_name_10 WHERE horse = "carlson";
``` | 24,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_10 (total INTEGER, horse VARCHAR)\n\n Question: Tell me the most total for horse of carlson\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_65 (rider VARCHAR, total VARCHAR, round_1_points VARCHAR)
Question: Tell me the rider that had round 1 points of 7.465 and total more than 16.615
Here is the ... | Here is the SQLite query you requested:
```
SELECT rider FROM table_name_65 WHERE total > 16.615 AND round_1_points = "7.465"
``` | 24,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_65 (rider VARCHAR, total VARCHAR, round_1_points VARCHAR)\n\n Question: Tell me the rider that had round 1 points 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_75 (high_assists VARCHAR, game VARCHAR, date VARCHAR)
Question: What were the assists on April 8 in game less than 78?
Here is the SQLite query to answer to t... | Your SQLite query looks almost correct, but ensure that the date format matches the one in your database. Since you have mentioned "April 8" without a specific year, it may require an exact format based on your data. However, here is the refined version of your query wrapped properly:
```sql
SELECT high_assists FROM t... | 24,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_75 (high_assists VARCHAR, game VARCHAR, date VARCHAR)\n\n Question: What were the assists on April 8 in game 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_91 (score VARCHAR, game VARCHAR)
Question: What was the score of game 82?
Here is the SQLite query to answer to the question: What was the score of game 82?:
... | Here is the SQLite query to answer the question: What was the score of game 82?:
```
SELECT score FROM table_name_91 WHERE game = '82'
``` | 24,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_91 (score VARCHAR, game VARCHAR)\n\n Question: What was the score of game 82?\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_78 (date VARCHAR, venue VARCHAR)
Question: When was there a game at Kardinia Park?
Here is the SQLite query to answer to the question: When was there a game a... | Here is the SQLite query to answer the question about when there was a game at Kardinia Park:
```
SELECT date FROM table_name_78 WHERE venue = "Kardinia Park";
``` | 24,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_78 (date VARCHAR, venue VARCHAR)\n\n Question: When was there a game at Kardinia Park?\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_97 (high_points VARCHAR, high_rebounds VARCHAR)
Question: who had the high points when chris bosh (13) had the high rebounds?
Here is the SQLite query to answ... | To retrieve the high points scored when Chris Bosh had the specified high rebounds, you will need to adjust the condition in the `WHERE` clause to check for the rebound's value associated with Chris Bosh. Assuming that you have a specific value for the high rebounds which Chris Bosh achieved (not directly provided in y... | 24,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_97 (high_points VARCHAR, high_rebounds VARCHAR)\n\n Question: who had the high points when chris bosh (13) had the high... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (score VARCHAR, team VARCHAR)
Question: what is the score when the team is @ cleveland?
Here is the SQLite query to answer to the question: what is the sco... | Here is the SQLite query to answer the question regarding the score when the team is "@ cleveland":
```
SELECT score FROM table_name_20 WHERE team = "@ cleveland";
``` | 24,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_20 (score VARCHAR, team VARCHAR)\n\n Question: what is the score when the team is @ cleveland?\n\nHere is the SQLite qu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.