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_99 (attendance VARCHAR, points VARCHAR, home VARCHAR)
Question: What is the total number of attendence has points greater than 40, and detroit as the home?
He... | Your SQLite query is correct and effectively retrieves the total number of attendance entries with points greater than 40 and a home value of "detroit". Here it is formatted as requested:
```
SELECT COUNT(attendance) FROM table_name_99 WHERE points > 40 AND home = "detroit";
``` | 46,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_99 (attendance VARCHAR, points VARCHAR, home VARCHAR)\n\n Question: What is the total number of attendence has points g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR)
Question: What is the largest number for tropical Lows for the 1990–91 season with more t... | Your SQLite query to find the largest number of tropical lows for the 1990–91 season with more than 10 tropical cyclones looks mostly correct, but there is a minor adjustment needed to properly compare the `tropical_cyclones` field, assuming it is stored as a string. You should convert it to an integer for proper compa... | 46,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_13 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR)\n\n Question: What is the largest number for trop... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR)
Question: What is the least number of tropical cyclones when the strongest storm was Tiffan... | It seems like there is a slight discrepancy in your SQLite query regarding the condition for `tropical_lows`. You want to find cases where there are less than 10 tropical lows, but your condition uses `tropical_lows > 10`.
Here is the corrected SQLite query:
```
SELECT MIN(Severe) AS tropical_cyclones
FROM table_na... | 46,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_88 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR)\n\n Question: What is the least number of tropical ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (Severe INTEGER, season VARCHAR, tropical_lows VARCHAR)
Question: What is the least amount of severe tropical cyclones for the 1992–93 season and the tropic... | Here is the SQLite query that answers your question:
```
SELECT MIN(Severe) AS tropical_cyclones
FROM table_name_61
WHERE season = "1992–93" AND tropical_lows < 6
``` | 46,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_61 (Severe INTEGER, season VARCHAR, tropical_lows VARCHAR)\n\n Question: What is the least amount of severe tropical cy... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR)
Question: What is the least amount of tropical lows for the 1993–94 season with less than... | Here is the SQLite query to answer the question regarding the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones:
```sql
SELECT MIN(tropical_lows)
FROM table_name_41
WHERE season = '1993–94' AND tropical_cyclones < 11;
``` | 46,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_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR)\n\n Question: What is the least amount of tropica... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (week VARCHAR, date VARCHAR, attendance VARCHAR)
Question: How many Weeks are on september 8, 1980 and Attendances larger than 55,045? Question 4
Here is t... | It looks like there's a small error in your SQL query, particularly in the way you're using the `attendance` filtering condition. The `OFFSET` keyword is not appropriate here; you want to use just the numerical value directly.
Here's the corrected SQL query:
```sql
SELECT COUNT(week)
FROM table_name_22
WHERE date =... | 46,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_22 (week VARCHAR, date VARCHAR, attendance VARCHAR)\n\n Question: How many Weeks are on september 8, 1980 and Attendanc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (round VARCHAR, college VARCHAR)
Question: Which Round has a College of stanford?
Here is the SQLite query to answer to the question: Which Round has a Col... | Here is the SQLite query to answer the question: Which Round has a College of stanford?:
```
SELECT round FROM table_name_31 WHERE college = "stanford";
``` | 46,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_31 (round VARCHAR, college VARCHAR)\n\n Question: Which Round has a College of stanford?\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_47 (round VARCHAR, pick VARCHAR)
Question: Which Round has a Pick of 174?
Here is the SQLite query to answer to the question: Which Round has a Pick of 174?:
... | Your SQLite query looks mostly correct, but the value for `pick` should be in quotes since it is defined as a VARCHAR in the schema. Here is the corrected version of your query:
```
SELECT round FROM table_name_47 WHERE pick = '174'
``` | 46,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_47 (round VARCHAR, pick VARCHAR)\n\n Question: Which Round has a Pick of 174?\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_66 (position VARCHAR, pick VARCHAR)
Question: Which Position has a Pick of 174?
Here is the SQLite query to answer to the question: Which Position has a Pick ... | Here is the SQLite query to answer the question: Which Position has a Pick of 174?:
```sql
SELECT position FROM table_name_66 WHERE pick = '174'
``` | 46,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_66 (position VARCHAR, pick VARCHAR)\n\n Question: Which Position has a Pick of 174?\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_39 (event VARCHAR, year VARCHAR)
Question: that was held in 1964?
Here is the SQLite query to answer to the question: that was held in 1964?:
```
SELECT event... | Here is the SQLite query to answer the question about events that were held in 1964:
```sql
SELECT event FROM table_name_39 WHERE year = '1964';
``` | 46,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_39 (event VARCHAR, year VARCHAR)\n\n Question: that was held in 1964?\n\nHere is the SQLite query to answer to the ques... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (event VARCHAR, venue VARCHAR)
Question: What is the name of the Event with a venue that was in toronto, canada?
Here is the SQLite query to answer to the ... | Here's the SQLite query you can use to find the name of the event with a venue that was in Toronto, Canada:
```
SELECT event FROM table_name_62 WHERE venue = "toronto, canada"
``` | 46,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_62 (event VARCHAR, venue VARCHAR)\n\n Question: What is the name of the Event with a venue that was in toronto, canada?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (year INTEGER, competition VARCHAR)
Question: What is the Year the competition the british empire and commonwealth games were held?
Here is the SQLite quer... | The query you have provided does not accurately answer the question; it attempts to SUM the years, which is unnecessary since you are simply looking for the years when the specific competition was held. Instead, you should select the distinct years for that competition. Here is the corrected query:
```
SELECT DISTINCT... | 46,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_98 (year INTEGER, competition VARCHAR)\n\n Question: What is the Year the competition the british empire and commonweal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (position VARCHAR, competition VARCHAR)
Question: What is the position of the commonwealth games?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query wrapped as you requested:
```
SELECT position FROM table_name_98 WHERE competition = "commonwealth games";
``` | 46,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 (position VARCHAR, competition VARCHAR)\n\n Question: What is the position of the commonwealth games?\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_15 (venue VARCHAR, year VARCHAR)
Question: What is the venue with a competition in 1964?
Here is the SQLite query to answer to the question: What is the venue... | Here is the SQLite query to answer the question: What is the venue with a competition in 1964?:
```
SELECT venue FROM table_name_15 WHERE year = '1964'
``` | 46,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_15 (venue VARCHAR, year VARCHAR)\n\n Question: What is the venue with a competition in 1964?\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, location VARCHAR)
Question: Name the date for clay surface and location of santos, brazil
Here is the SQLite query to answe... | Here is the SQLite query to answer to the question: Name the date for clay surface and location of santos, brazil:
```
SELECT date FROM table_name_84 WHERE surface = "clay" AND location = "santos, brazil"
``` | 46,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_84 (date VARCHAR, surface VARCHAR, location VARCHAR)\n\n Question: Name the date for clay surface and location of santo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (date VARCHAR, outcome VARCHAR, score VARCHAR)
Question: Name the date with outcome of winner and score of 4–6 6–2 7–6 (7–4)
Here is the SQLite query to an... | Here is the SQLite query to answer the question as requested:
```
SELECT date FROM table_name_25 WHERE outcome = "winner" AND score = "4–6 6–2 7–6 (7–4)";
``` | 46,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_25 (date VARCHAR, outcome VARCHAR, score VARCHAR)\n\n Question: Name the date with outcome of winner and score of 4–6 6... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (capacity INTEGER, position_in_2004 VARCHAR)
Question: What's the highest capacity for a position of 5 in 2004?
Here is the SQLite query to answer to the q... | Your provided SQLite query is correct for finding the highest capacity for a position of 5 in 2004. Here it is wrapped in code blocks for clarity:
```
SELECT MAX(capacity) FROM table_name_81 WHERE position_in_2004 = "5";
``` | 46,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_81 (capacity INTEGER, position_in_2004 VARCHAR)\n\n Question: What's the highest capacity for a position of 5 in 2004?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (venue VARCHAR, position_in_2004 VARCHAR)
Question: Which venue was number 9 for 2004?
Here is the SQLite query to answer to the question: Which venue was ... | Your SQLite query is correctly structured to find the venue that was ranked number 9 in 2004. Here it is wrapped in code formatting:
```
SELECT venue FROM table_name_45 WHERE position_in_2004 = "9"
``` | 46,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_45 (venue VARCHAR, position_in_2004 VARCHAR)\n\n Question: Which venue was number 9 for 2004?\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_99 (city VARCHAR, founded VARCHAR)
Question: What city was founded in 1857?
Here is the SQLite query to answer to the question: What city was founded in 1857?... | Here is the SQLite query to answer the question regarding which city was founded in 1857:
```
SELECT city FROM table_name_99 WHERE founded = '1857';
``` | 46,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_99 (city VARCHAR, founded VARCHAR)\n\n Question: What city was founded in 1857?\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_42 (opponent VARCHAR, time VARCHAR)
Question: Which Opponent has a Time of 2:31?
Here is the SQLite query to answer to the question: Which Opponent has a Time... | Here is the SQLite query to answer the question: Which Opponent has a Time of 2:31?:
```
SELECT opponent FROM table_name_42 WHERE time = "2:31";
``` | 46,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_42 (opponent VARCHAR, time VARCHAR)\n\n Question: Which Opponent has a Time of 2:31?\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_98 (method VARCHAR, round VARCHAR, time VARCHAR)
Question: Which Method has a Round of 1, and a Time of 0:28?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question:
```sql
SELECT method FROM table_name_98 WHERE round = '1' AND time = '0:28';
``` | 46,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_98 (method VARCHAR, round VARCHAR, time VARCHAR)\n\n Question: Which Method has a Round of 1, and a Time of 0:28?\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_15 (time VARCHAR, event VARCHAR)
Question: Which Time has an Event of call to arms i?
Here is the SQLite query to answer to the question: Which Time has an Ev... | Here is the SQLite query to answer the question:
```
SELECT time FROM table_name_15 WHERE event = "call to arms i"
``` | 46,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_15 (time VARCHAR, event VARCHAR)\n\n Question: Which Time has an Event of call to arms i?\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_58 (opponent VARCHAR, date VARCHAR)
Question: what team played on april 9
Here is the SQLite query to answer to the question: what team played on april 9:
```... | Here is the SQLite query to answer the question regarding which team played on April 9:
```
SELECT opponent FROM table_name_58 WHERE date = 'april 9';
``` | 46,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_58 (opponent VARCHAR, date VARCHAR)\n\n Question: what team played on april 9\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_61 (frequency__khz_ INTEGER, licensed_location VARCHAR)
Question: What is the smallest frequency (kHz) that is in the location of Longview?
Here is the SQLite... | Here is the SQLite query to find the smallest frequency (kHz) in the location of Longview, wrapped as requested:
```
SELECT MIN(frequency__khz_) FROM table_name_61 WHERE licensed_location = 'Longview';
``` | 46,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_61 (frequency__khz_ INTEGER, licensed_location VARCHAR)\n\n Question: What is the smallest frequency (kHz) that is in t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (licensed_location VARCHAR, frequency__khz_ INTEGER)
Question: What is the location with a frequency (kHz) greater than 1370?
Here is the SQLite query to a... | Your SQLite query is correctly formulated to retrieve locations with a frequency greater than 1370 kHz. Here it is wrapped in code format:
```
SELECT licensed_location FROM table_name_44 WHERE frequency__khz_ > 1370;
``` | 46,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_44 (licensed_location VARCHAR, frequency__khz_ INTEGER)\n\n Question: What is the location with a frequency (kHz) great... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (capacity VARCHAR, venue VARCHAR)
Question: What is the capacity number for Yunost?
Here is the SQLite query to answer to the question: What is the capacit... | Your SQL query to find the capacity number for Yunost has a slight error. Instead of using `COUNT(capacity)`, which counts the number of rows, you should simply select the `capacity` for the specific venue. Here's the corrected query:
```sql
SELECT capacity FROM table_name_27 WHERE venue = "Yunost";
```
This query w... | 46,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_27 (capacity VARCHAR, venue VARCHAR)\n\n Question: What is the capacity number for Yunost?\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_68 (tournament VARCHAR)
Question: What is the total number of first prizes in USD for the Canadian Open?
Here is the SQLite query to answer to the question: W... | The provided SQLite query has some issues in its structure. It looks like you're trying to count the number of first prizes for the "Canadian Open" tournament, but the `SUM(1 AS st_prize___)` is not the correct way to do it. Instead, you can simply use `COUNT(*)` to get the total number of entries matching the conditio... | 46,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_68 (tournament VARCHAR)\n\n Question: What is the total number of first prizes in USD for the Canadian Open?\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_61 (drawn VARCHAR, lost VARCHAR)
Question: Which Drawn has a Lost of 19?
Here is the SQLite query to answer to the question: Which Drawn has a Lost of 19?:
``... | Here is the SQLite query to answer the question: Which Drawn has a Lost of 19?:
```
SELECT drawn FROM table_name_61 WHERE lost = "19";
``` | 46,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_61 (drawn VARCHAR, lost VARCHAR)\n\n Question: Which Drawn has a Lost of 19?\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_94 (played VARCHAR)
Question: Which Played has a Club of club?
Here is the SQLite query to answer to the question: Which Played has a Club of club?:
```
SELEC... | It looks like there might be some confusion in the question regarding the intended filter on the "club". Assuming you meant to find rows where the played data corresponds to a specific club value, you would need to ensure the condition accurately reflects the desired filter.
If we take the query literally as described... | 46,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_94 (played VARCHAR)\n\n Question: Which Played has a Club of club?\n\nHere is the SQLite query to answer to the questio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (club VARCHAR, losing_bonus VARCHAR)
Question: Which Club has 1 Losing bonus?
Here is the SQLite query to answer to the question: Which Club has 1 Losing b... | Here is the SQLite query wrapped in code blocks:
```
SELECT club FROM table_name_18 WHERE losing_bonus = "1";
``` | 46,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_18 (club VARCHAR, losing_bonus VARCHAR)\n\n Question: Which Club has 1 Losing bonus?\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_65 (losing_bonus VARCHAR, points_for VARCHAR)
Question: What is the Losing bonus of 571 Points ?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the Losing bonus of 571 Points:
```
SELECT losing_bonus FROM table_name_65 WHERE points_for = "571";
``` | 46,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_65 (losing_bonus VARCHAR, points_for VARCHAR)\n\n Question: What is the Losing bonus of 571 Points ?\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_78 (lost VARCHAR, tries_for VARCHAR)
Question: Which Lost has a Tries for of 75?
Here is the SQLite query to answer to the question: Which Lost has a Tries fo... | Your query looks correct for selecting the `lost` value where `tries_for` is equal to 75. Here's your SQL query wrapped in the requested format:
```
SELECT lost FROM table_name_78 WHERE tries_for = "75";
``` | 46,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_78 (lost VARCHAR, tries_for VARCHAR)\n\n Question: Which Lost has a Tries for of 75?\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_24 (opponent_in_the_final VARCHAR, date VARCHAR)
Question: Who is the opponent in the final of the match on 19 February 2006?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the opponent in the final of the match on 19 February 2006:
```
SELECT opponent_in_the_final FROM table_name_24 WHERE date = "19 February 2006";
``` | 46,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_24 (opponent_in_the_final VARCHAR, date VARCHAR)\n\n Question: Who is the opponent in the final of the match on 19 Febr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (opponent_in_the_final VARCHAR, date VARCHAR)
Question: Who is the opponent in the final of the match on 26 March 2006?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the opponent in the final of the match on 26 March 2006:
```
SELECT opponent_in_the_final FROM table_name_49 WHERE date = '26 March 2006';
``` | 46,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_49 (opponent_in_the_final VARCHAR, date VARCHAR)\n\n Question: Who is the opponent in the final of the match on 26 Marc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
Question: What is the overall number of the player from Utah with a pick # higher than 7?
Here is ... | It looks like there is a small issue in the query with the condition for `pick__number`. Since we want to find players with a pick number higher than 7, the condition should use `>` instead of `<`. Here is the corrected query:
```
SELECT SUM(overall) FROM table_name_54 WHERE college = "utah" AND pick__number > 7
``` | 46,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_54 (overall INTEGER, college VARCHAR, pick__number VARCHAR)\n\n Question: What is the overall number of the player from... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (round INTEGER, pick__number INTEGER)
Question: What is the highest round of the player with a pick number lower than 34?
Here is the SQLite query to answe... | It looks like there is a small error in your query regarding the condition for `pick__number`. Since the question asks for pick numbers lower than 34, the condition should use `< 34` instead of `> 34`. Here is the corrected SQLite query:
```
SELECT MAX(round) FROM table_name_83 WHERE pick__number < 34;
``` | 46,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_83 (round INTEGER, pick__number INTEGER)\n\n Question: What is the highest round of the player with a pick number lower... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (round INTEGER, name VARCHAR, overall VARCHAR)
Question: What round did Mitch Davis, with an overall higher than 118, have?
Here is the SQLite query to ans... | It seems there is a small error in your query. You want to find the rounds for Mitch Davis where the overall is higher than 118. Here’s the corrected SQL query:
```sql
SELECT round FROM table_name_50 WHERE name = "Mitch Davis" AND overall > 118;
```
This query retrieves the round(s) for Mitch Davis where the overall... | 46,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_50 (round INTEGER, name VARCHAR, overall VARCHAR)\n\n Question: What round did Mitch Davis, with an overall higher than... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (overall INTEGER, college VARCHAR)
Question: What is the highest overall of the player from Georgia?
Here is the SQLite query to answer to the question: Wh... | Your query is almost correct, but it is important to ensure that the college name matches exactly, including any case sensitivity. If the college name in your database is "Georgia" (with a capital G), then you should adjust your query accordingly. Here's the revised version:
```
SELECT MAX(overall) FROM table_name_54 ... | 46,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_54 (overall INTEGER, college VARCHAR)\n\n Question: What is the highest overall of the player from Georgia?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (position VARCHAR, overall VARCHAR)
Question: What is the position of the player with an overall of 45?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the position of the player with an overall of 45:
```
SELECT position FROM table_name_70 WHERE overall = '45'
``` | 46,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_70 (position VARCHAR, overall VARCHAR)\n\n Question: What is the position of the player with an overall of 45?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (wins INTEGER, team VARCHAR, points VARCHAR)
Question: How many wins for team nsu and over 2 points?
Here is the SQLite query to answer to the question: Ho... | The query you've provided uses `AVG(wins)`, which would calculate the average wins for the specified condition. However, if you want to count the number of wins for `team = 'nsu'` with `points > 2`, you should use the `COUNT` function or simply sum the wins. Here's the correct query to count the number of wins for team... | 46,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_54 (wins INTEGER, team VARCHAR, points VARCHAR)\n\n Question: How many wins for team nsu and over 2 points?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (year INTEGER, wins INTEGER)
Question: What is the earliest year associated with under 0 wins?
Here is the SQLite query to answer to the question: What is ... | Your SQLite query to find the earliest year associated with under 0 wins is correctly formulated. Here it is wrapped in code blocks as requested:
```
SELECT MIN(year) FROM table_name_55 WHERE wins < 0
``` | 46,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_55 (year INTEGER, wins INTEGER)\n\n Question: What is the earliest year associated with under 0 wins?\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_59 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR)
Question: How many wins for team mv agusta, over 10 points, and after 1957?
Here is the SQLite q... | Your provided SQLite query is almost correct, but it needs a slight modification in the comparison for the `points` column since it's defined as a VARCHAR. You should convert it to an integer for the comparison. Here's the corrected query:
```sql
SELECT SUM(wins) FROM table_name_59
WHERE team = "mv agusta" AND CAST(p... | 46,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_59 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR)\n\n Question: How many wins for team mv agusta, over 10 p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
Question: What College/Junior/Club Team (League) has a round of 3?
Here is the SQLite query to a... | Here is the corrected SQLite query wrapped in code formatting:
```
SELECT college_junior_club_team__league_ FROM table_name_32 WHERE round = '3';
```
Note that the value '3' is enclosed in quotes since the column `round` is typically a string type in SQLite. | 46,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_32 (college_junior_club_team__league_ VARCHAR, round VARCHAR)\n\n Question: What College/Junior/Club Team (League) has ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (player VARCHAR, round VARCHAR, nationality VARCHAR)
Question: What player has a round larger than 1 in Austria?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about which player has a round larger than 1 in Austria, wrapped in the appropriate formatting:
```
SELECT player FROM table_name_6 WHERE round > 1 AND nationality = 'Austria';
```
Note that I changed "austria" to "Austria" to ensure proper case matching unless the dat... | 46,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_6 (player VARCHAR, round VARCHAR, nationality VARCHAR)\n\n Question: What player has a round larger than 1 in Austria?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (player VARCHAR, nationality VARCHAR)
Question: Which player's nationality is from Sweden?
Here is the SQLite query to answer to the question: Which player... | Here is the SQLite query to answer the question about which player's nationality is from Sweden:
```
SELECT player FROM table_name_83 WHERE nationality = "Sweden";
``` | 46,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_83 (player VARCHAR, nationality VARCHAR)\n\n Question: Which player's nationality is from Sweden?\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_52 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR)
Question: What College/Junior/Club Team (League) from Canada has a round sma... | Here is the SQLite query to answer the question regarding the College/Junior/Club Team (League) from Canada with a round smaller than 3:
```sql
SELECT college_junior_club_team__league_ FROM table_name_52 WHERE nationality = "canada" AND round < 3;
``` | 46,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_52 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR)\n\n Question: What College/Junior/Cl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (distance VARCHAR, year VARCHAR)
Question: What was the distance in 1997?
Here is the SQLite query to answer to the question: What was the distance in 1997... | Here is the SQLite query to answer the question about the distance in 1997:
```
SELECT distance FROM table_name_71 WHERE year = '1997'
``` | 46,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_71 (distance VARCHAR, year VARCHAR)\n\n Question: What was the distance in 1997?\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_19 (opponents_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
Question: Who was the opponents in the final on January 5, 2003, on a hard surface?
Here is... | Here is the SQLite query to answer your question:
```
SELECT opponents_in_the_final FROM table_name_19 WHERE surface = "hard" AND date = "January 5, 2003";
``` | 46,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_19 (opponents_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)\n\n Question: Who was the opponents in the final on ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (score_in_the_final VARCHAR, date VARCHAR)
Question: What was the final score on the February 19, 2012 final?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the final score on February 19, 2012:
```
SELECT score_in_the_final FROM table_name_46 WHERE date = "February 19, 2012";
``` | 46,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_46 (score_in_the_final VARCHAR, date VARCHAR)\n\n Question: What was the final score on the February 19, 2012 final?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (attendance__away_ INTEGER, venue VARCHAR, date VARCHAR)
Question: Name the least attendance with venue of away on 24 august 2007
Here is the SQLite query ... | Here is the SQLite query to answer the question about the least attendance with the venue of "away" on 24 August 2007:
```
SELECT MIN(attendance__away_) AS least_attendance
FROM table_name_99
WHERE venue = "away" AND date = "24 august 2007";
``` | 46,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_99 (attendance__away_ INTEGER, venue VARCHAR, date VARCHAR)\n\n Question: Name the least attendance with venue of away ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (attendance__away_ INTEGER, result VARCHAR, date VARCHAR)
Question: Name the average attendance with result of won 2-0 on 2 november 2007
Here is the SQLit... | Here is the SQLite query that answers the question regarding the average attendance with the result of "won 2-0" on "2 November 2007":
```
SELECT AVG(attendance__away_) FROM table_name_82 WHERE result = "won 2-0" AND date = "2 november 2007"
``` | 46,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_82 (attendance__away_ INTEGER, result VARCHAR, date VARCHAR)\n\n Question: Name the average attendance with result of w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (uni_number INTEGER, surname VARCHAR)
Question: What is the uniform number of the player whose last name is Wiltshire?
Here is the SQLite query to answer t... | Here's the SQLite query to answer your question about the uniform number of the player whose last name is Wiltshire:
```
SELECT uni_number FROM table_name_25 WHERE surname = "Wiltshire";
```
This query selects the `uni_number` of players with the surname "Wiltshire". If there are multiple entries, it will return all... | 46,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_25 (uni_number INTEGER, surname VARCHAR)\n\n Question: What is the uniform number of the player whose last name is Wilt... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR)
Question: When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9... | Here is the SQLite query wrapped in code format to answer the question:
```
SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = "johnson & johnson 156,515.9"
``` | 46,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_86 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR)\n\n Question: When the rank is larger than 3 with a s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (second_quarter VARCHAR, rank VARCHAR)
Question: With a rank of 2 what is the second quarter?
Here is the SQLite query to answer to the question: With a ra... | Here is the SQLite query to answer the question: With a rank of 2 what is the second quarter?:
```
SELECT second_quarter FROM table_name_69 WHERE rank = '2'
```
(Note: The rank is stored as a VARCHAR, so it's enclosed in quotes.) | 46,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_69 (second_quarter VARCHAR, rank VARCHAR)\n\n Question: With a rank of 2 what is the second quarter?\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_45 (rank VARCHAR, third_quarter VARCHAR)
Question: When the third quarter is China Mobile 195,680.4, what is the rank?
Here is the SQLite query to answer to t... | Your query seems mostly correct, but you should ensure that the value in the `third_quarter` column matches exactly, taking into account case sensitivity and any potential whitespace. Here's a refined version of your query:
```sql
SELECT rank FROM table_name_45 WHERE third_quarter = 'China Mobile 195,680.4';
```
Thi... | 46,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_45 (rank VARCHAR, third_quarter VARCHAR)\n\n Question: When the third quarter is China Mobile 195,680.4, what is the ra... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (rank VARCHAR, first_quarter VARCHAR)
Question: When the first quarter is procter & gamble 138,013, what is the rank?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question when the first quarter is procter & gamble 138,013:
```
SELECT rank FROM table_name_15 WHERE first_quarter = "procter & gamble 138,013";
``` | 46,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_15 (rank VARCHAR, first_quarter VARCHAR)\n\n Question: When the first quarter is procter & gamble 138,013, what is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR)
Question: When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, wh... | Here is the SQLite query to answer the given question:
```
SELECT fourth_quarter FROM table_name_27 WHERE rank < 4 AND second_quarter = "exxon mobil 341,140.3"
``` | 46,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_27 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR)\n\n Question: When the rank is less than 4, and 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_74 (term_end VARCHAR, party VARCHAR, term_in_office VARCHAR)
Question: What is the Term end that has a Party of united australia and 184 days in office?
Here ... | Here is the SQLite query to answer the question:
```
SELECT term_end FROM table_name_74 WHERE party = "united australia" AND term_in_office = "184 days"
``` | 46,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_74 (term_end VARCHAR, party VARCHAR, term_in_office VARCHAR)\n\n Question: What is the Term end that has a Party of uni... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (average INTEGER, yards VARCHAR)
Question: What is the sum of average values for 23 yards?
Here is the SQLite query to answer to the question: What is the s... | Here is the SQLite query to answer the question about the sum of average values for 23 yards:
```
SELECT SUM(average) FROM table_name_5 WHERE yards = '23'
```
Note: I've wrapped the `23` in quotes because the `yards` column is defined as a `VARCHAR`. | 46,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_5 (average INTEGER, yards VARCHAR)\n\n Question: What is the sum of average values for 23 yards?\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_27 (yards INTEGER, sacks VARCHAR, average VARCHAR)
Question: What are the most yards for 2 sacks and an average greater than 0?
Here is the SQLite query to an... | Here is the corrected SQLite query to find the most yards for 2 sacks and an average greater than 0, based on the provided schema:
```sql
SELECT MAX(yards)
FROM table_name_27
WHERE sacks = '2' AND average > '0';
```
Note: The query assumes that the `sacks` and `average` fields are stored as strings (VARCHAR), henc... | 46,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_27 (yards INTEGER, sacks VARCHAR, average VARCHAR)\n\n Question: What are the most yards for 2 sacks and an average gre... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (bronze VARCHAR, location VARCHAR, year VARCHAR)
Question: What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978?
Here is the SQ... | Here is the corrected SQLite query to answer the question regarding the bronze item listed for the location of Bangkok in the year 1978:
```
SELECT bronze FROM table_name_6 WHERE location = "Bangkok" AND year = "1978";
```
Make sure to use quotes around the year since it is stored as a VARCHAR in the schema. | 46,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_6 (bronze VARCHAR, location VARCHAR, year VARCHAR)\n\n Question: What is listed for the Bronze, with the Location of Ba... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (year INTEGER, silver VARCHAR)
Question: What's listed for the lowest Year that a Silver of Kim Kyung-Ho?
Here is the SQLite query to answer to the questio... | Your SQLite query looks mostly correct, but typically, if you're retrieving a value like the minimum year along with some context, you may want to also include the name in the result to clarify what you're fetching. Here’s the refined version of your query:
```sql
SELECT MIN(year) AS lowest_year
FROM table_name_51
WHE... | 46,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_51 (year INTEGER, silver VARCHAR)\n\n Question: What's listed for the lowest Year that a Silver of Kim Kyung-Ho?\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_61 (gold VARCHAR, bronze VARCHAR)
Question: What's the Gold that also has Bronze of Kim Sun-Bin?
Here is the SQLite query to answer to the question: What's th... | Your SQL query has a slight issue with the casing of the string "kim sun-bin". Assuming that the names in the database are case-sensitive, you'll want to ensure that you use the correct casing as it appears in your database.
Here is the corrected SQL query wrapped in the required code block format:
```
SELECT gold FR... | 46,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_61 (gold VARCHAR, bronze VARCHAR)\n\n Question: What's the Gold that also has Bronze of Kim Sun-Bin?\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_75 (bronze VARCHAR, gold VARCHAR)
Question: What's the Bronze that's also got a Godl of Kim Woo-Jin?
Here is the SQLite query to answer to the question: What'... | Here's the corrected SQLite query to answer the question "What's the Bronze that's also got a Gold of Kim Woo-Jin?":
```sql
SELECT bronze FROM table_name_75 WHERE gold = "Kim Woo-Jin";
```
Make sure to match the case of the string "Kim Woo-Jin" with how it is actually stored in your database to ensure accurate resul... | 46,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_75 (bronze VARCHAR, gold VARCHAR)\n\n Question: What's the Bronze that's also got a Godl of Kim Woo-Jin?\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_1 (year INTEGER, bronze VARCHAR)
Question: What is listed as the highest Year that's also got a Bronze of Wataru Haraguchi?
Here is the SQLite query to answer... | Your SQLite query is correctly structured to find the highest year associated with the bronze of Wataru Haraguchi. Here's the query wrapped appropriately:
```sql
SELECT MAX(year) FROM table_name_1 WHERE bronze = "wataru haraguchi";
``` | 46,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_1 (year INTEGER, bronze VARCHAR)\n\n Question: What is listed as the highest Year that's also got a Bronze of Wataru Ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (score VARCHAR, record VARCHAR)
Question: What was the score when their record was 35–23–15?
Here is the SQLite query to answer to the question: What was t... | ```sql
SELECT score FROM table_name_58 WHERE record = "35–23–15";
``` | 46,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_58 (score VARCHAR, record VARCHAR)\n\n Question: What was the score when their record was 35–23–15?\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_90 (home VARCHAR, score VARCHAR)
Question: Which home team has a score of 5 – 6?
Here is the SQLite query to answer to the question: Which home team has a sco... | Here is the SQLite query to answer the question of which home team has a score of 5 – 6:
```
SELECT home FROM table_name_90 WHERE score = "5 – 6";
``` | 46,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_90 (home VARCHAR, score VARCHAR)\n\n Question: Which home team has a score of 5 – 6?\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_17 (county VARCHAR, school VARCHAR)
Question: In what county is the school of Merrillville?
Here is the SQLite query to answer to the question: In what county... | Here is the SQLite query to answer the question: In what county is the school of Merrillville?:
```
SELECT county FROM table_name_17 WHERE school = "Merrillville"
``` | 46,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_17 (county VARCHAR, school VARCHAR)\n\n Question: In what county is the school of Merrillville?\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_41 (previous_conference VARCHAR, school VARCHAR)
Question: The school of Portage was in what conference previous?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about what conference the school of Portage was in previously:
```
SELECT previous_conference FROM table_name_41 WHERE school = "Portage";
``` | 46,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_41 (previous_conference VARCHAR, school VARCHAR)\n\n Question: The school of Portage was in what conference previous?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR)
Question: What is the name of the school that is in Valparaiso?
Here is the SQLite query to answer to the question: What... | ```sql
SELECT school FROM table_name_37 WHERE location = "Valparaiso";
``` | 46,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_37 (school VARCHAR, location VARCHAR)\n\n Question: What is the name of the school that is in Valparaiso?\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_25 (fa_cup INTEGER, total VARCHAR, malaysia_cup VARCHAR, player VARCHAR)
Question: Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player o... | Here is the SQLite query to answer your question:
```
SELECT MAX(fa_cup) FROM table_name_25 WHERE malaysia_cup = 0 AND player = "ahmad fouzee masuri" AND total > 0
``` | 46,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_25 (fa_cup INTEGER, total VARCHAR, malaysia_cup VARCHAR, player VARCHAR)\n\n Question: Which FA Cup is the highest one ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (total VARCHAR, player VARCHAR, fa_cup VARCHAR)
Question: How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0?
Here is the SQ... | Here is the SQLite query to answer the question:
```
SELECT COUNT(total) FROM table_name_37 WHERE player = "ahmad fouzee masuri" AND fa_cup > 0
``` | 46,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_37 (total VARCHAR, player VARCHAR, fa_cup VARCHAR)\n\n Question: How many totals have a Player of ahmad fouzee masuri, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (fa_cup INTEGER, player VARCHAR, total VARCHAR)
Question: Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0?
Here is the SQLite... | The query you've written seems to involve calculating the average of the `fa_cup` column, but the question asks for which FA Cup matches the criteria. Instead, you should be selecting the `fa_cup` values that meet both conditions. Additionally, note that `total` should be treated as an integer for comparison since it i... | 46,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_62 (fa_cup INTEGER, player VARCHAR, total VARCHAR)\n\n Question: Which FA Cup has a Player of khairan ezuan razali, and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (malaysia_cup VARCHAR, league VARCHAR, total VARCHAR, player VARCHAR)
Question: How many Malaysia Cups have a Total larger than 3, and a Player of ivan yusof... | The SQLite query you provided has a small issue regarding the data types for the `total` and `league` columns, as they appear to be stored as VARCHAR. In SQLite, to perform numeric comparisons, you should convert the values to integers. Here’s the corrected query wrapped in code blocks:
```
SELECT COUNT(malaysia_cup) ... | 46,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_8 (malaysia_cup VARCHAR, league VARCHAR, total VARCHAR, player VARCHAR)\n\n Question: How many Malaysia Cups have a Tot... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (fa_cup INTEGER, malaysia_cup VARCHAR, total VARCHAR)
Question: Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8?
Here is the SQLite query t... | The provided query looks for the sum of the `fa_cup` values from `table_name_44` where `malaysia_cup` is greater than 0 and `total` is equal to 8. However, if you want to simply retrieve the rows that meet those criteria, you would use a SELECT statement without the SUM function. The correct query to retrieve the FA Cu... | 46,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_44 (fa_cup INTEGER, malaysia_cup VARCHAR, total VARCHAR)\n\n Question: Which FA Cup has a Malaysia Cup larger than 0, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (year INTEGER, venue VARCHAR)
Question: Which Year is the highest one that has a Venue of edmonton, canada?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question "Which Year is the highest one that has a Venue of edmonton, canada?":
```
SELECT MAX(year) FROM table_name_50 WHERE venue = "edmonton, canada";
``` | 46,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_50 (year INTEGER, venue VARCHAR)\n\n Question: Which Year is the highest one that has a Venue of edmonton, canada?\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_27 (position VARCHAR, competition VARCHAR, year VARCHAR)
Question: Which Position has a Competition of world championships, and a Year larger than 1997?
Here ... | Here is the SQLite query to answer the question regarding positions with a competition of world championships and a year larger than 1997:
```
SELECT position FROM table_name_27 WHERE competition = "world championships" AND year > "1997"
``` | 46,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_27 (position VARCHAR, competition VARCHAR, year VARCHAR)\n\n Question: Which Position has a Competition of world champi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (venue VARCHAR, notes VARCHAR, year VARCHAR)
Question: Which Venue has a Notes of heptathlon, and a Year of 1991?
Here is the SQLite query to answer to the... | Here is the SQLite query that answers the question regarding which venue has notes of "heptathlon" and a year of 1991:
```
SELECT venue FROM table_name_20 WHERE notes = "heptathlon" AND year = "1991"
``` | 46,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_20 (venue VARCHAR, notes VARCHAR, year VARCHAR)\n\n Question: Which Venue has a Notes of heptathlon, and a Year of 1991... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (days_held VARCHAR, wrestler VARCHAR)
Question: What days held has noiz as the wrestler?
Here is the SQLite query to answer to the question: What days held... | Here is the SQLite query to answer the question:
```sql
SELECT days_held FROM table_name_95 WHERE wrestler = "noiz";
``` | 46,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_95 (days_held VARCHAR, wrestler VARCHAR)\n\n Question: What days held has noiz as the wrestler?\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_14 (location VARCHAR, wrestler VARCHAR)
Question: What location has tatsuhito takaiwa as the wrestler?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the location of the wrestler Tatsuhito Takaiwa:
```
SELECT location FROM table_name_14 WHERE wrestler = "tatsuhito takaiwa";
``` | 46,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_14 (location VARCHAR, wrestler VARCHAR)\n\n Question: What location has tatsuhito takaiwa as the wrestler?\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_33 (event VARCHAR, days_held VARCHAR)
Question: What event has 8 as the days held?
Here is the SQLite query to answer to the question: What event has 8 as the... | Here is the SQLite query to answer the question about the event that has 8 as the days held:
```
SELECT event FROM table_name_33 WHERE days_held = '8';
``` | 46,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_33 (event VARCHAR, days_held VARCHAR)\n\n Question: What event has 8 as the days held?\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_98 (event VARCHAR, days_held VARCHAR)
Question: What event has unknown as the days held.?
Here is the SQLite query to answer to the question: What event has u... | Here is the SQLite query to answer the question about what event has "unknown" as the days held:
```sql
SELECT event FROM table_name_98 WHERE days_held = 'unknown';
``` | 46,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_98 (event VARCHAR, days_held VARCHAR)\n\n Question: What event has unknown as the days held.?\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_87 (displacement VARCHAR, engine VARCHAR)
Question: What is the Displacement of the Iveco F1CE3481E Engine?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about the displacement of the Iveco F1CE3481E engine:
```
SELECT displacement FROM table_name_87 WHERE engine = "Iveco F1CE3481E"
``` | 46,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_87 (displacement VARCHAR, engine VARCHAR)\n\n Question: What is the Displacement of the Iveco F1CE3481E Engine?\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_68 (displacement VARCHAR, model VARCHAR)
Question: What is the Displacement of the 180 Multijet Power/3.0 HDI Model?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question regarding the displacement of the 180 Multijet Power/3.0 HDI Model:
```
SELECT displacement FROM table_name_68 WHERE model = "180 Multijet Power/3.0 HDI";
``` | 46,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_68 (displacement VARCHAR, model VARCHAR)\n\n Question: What is the Displacement of the 180 Multijet Power/3.0 HDI Model... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (valvetrain VARCHAR, model VARCHAR)
Question: What is the Valvetrain of the Diesel Engines Model?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question about the Valvetrain of the Diesel Engines Model:
```
SELECT valvetrain FROM table_name_12 WHERE model = "Diesel Engines";
```
Make sure to match the casing of "Diesel Engines" as it appears in your database for accurate results. | 46,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_12 (valvetrain VARCHAR, model VARCHAR)\n\n Question: What is the Valvetrain of the Diesel Engines Model?\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_6 (total INTEGER, year_s__won VARCHAR)
Question: Year(s) won of 1994 , 1997 has what average total?
Here is the SQLite query to answer to the question: Year(s... | Your query is almost correct, but the condition to check for the years shouldn't use the comma within the string; instead, you should check for either year separately using `OR` in the `WHERE` clause. Here is the updated query:
```sql
SELECT AVG(total) FROM table_name_6 WHERE year_s__won IN ('1994', '1997');
```
Thi... | 46,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_6 (total INTEGER, year_s__won VARCHAR)\n\n Question: Year(s) won of 1994 , 1997 has what average total?\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_41 (total INTEGER, player VARCHAR, to_par VARCHAR)
Question: Player of corey pavin, and a To par larger than 5 has what average total?
Here is the SQLite quer... | Here is the SQLite query that answers the question:
```
SELECT AVG(total) FROM table_name_41 WHERE player = "corey pavin" AND to_par > 5
``` | 46,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_41 (total INTEGER, player VARCHAR, to_par VARCHAR)\n\n Question: Player of corey pavin, and a To par larger than 5 has ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (player VARCHAR, total VARCHAR, to_par VARCHAR)
Question: Total smaller than 285, and a To par larger than 1 belongs to what player?
Here is the SQLite que... | Your SQLite query is almost correct, but there's an important detail to note. Since the `total` and `to_par` columns are defined as `VARCHAR`, you may need to convert them to numeric types to correctly compare their values. Here’s how your query should look:
```sql
SELECT player FROM table_name_29 WHERE CAST(total AS ... | 46,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_29 (player VARCHAR, total VARCHAR, to_par VARCHAR)\n\n Question: Total smaller than 285, and a To par larger than 1 bel... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, finish VARCHAR)
Question: Total larger than 285, and a Finish of t30 belongs to what player?
Here is the SQLite query to an... | Here is the SQLite query to answer the question about which player has a total larger than 285 and a finish of t30:
```
SELECT player FROM table_name_83 WHERE total > 285 AND finish = 't30';
``` | 46,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_83 (player VARCHAR, total VARCHAR, finish VARCHAR)\n\n Question: Total larger than 285, and a Finish of t30 belongs to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (high_rebounds VARCHAR, record VARCHAR)
Question: Which player for a team with an 18-20 record had the most rebounds in a game?
Here is the SQLite query to... | Your query is almost correct, but to answer the question specifically about which player had the most rebounds, you should include an aggregate function to find the maximum number of rebounds for those players with the specific record. Here’s an improved SQL query:
```sql
SELECT high_rebounds
FROM table_name_38
WHER... | 46,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_38 (high_rebounds VARCHAR, record VARCHAR)\n\n Question: Which player for a team with an 18-20 record had the most rebo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (frequency_mhz VARCHAR, erp_w VARCHAR, class VARCHAR, call_sign VARCHAR)
Question: Name the total number of frequency Mhz with class of d and call sign of k... | Here is the SQLite query to answer the question:
```
SELECT COUNT(frequency_mhz) FROM table_name_54 WHERE class = "d" AND call_sign = "k201bm" AND erp_w < 74
``` | 46,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_54 (frequency_mhz VARCHAR, erp_w VARCHAR, class VARCHAR, call_sign VARCHAR)\n\n Question: Name the total number of freq... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (frequency_mhz INTEGER, call_sign VARCHAR)
Question: Name the least frequency Mhz with call sign of k202ag
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the least frequency MHz with the call sign of k202ag:
```
SELECT MIN(frequency_mhz) FROM table_name_24 WHERE call_sign = 'k202ag';
``` | 46,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_24 (frequency_mhz INTEGER, call_sign VARCHAR)\n\n Question: Name the least frequency Mhz with call sign of k202ag\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_2 (class VARCHAR, call_sign VARCHAR)
Question: Name the class with call sign of k220cp
Here is the SQLite query to answer to the question: Name the class with... | Here is the SQLite query to answer the question "Name the class with call sign of k220cp":
```
SELECT class FROM table_name_2 WHERE call_sign = "k220cp";
``` | 46,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_2 (class VARCHAR, call_sign VARCHAR)\n\n Question: Name the class with call sign of k220cp\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_51 (record VARCHAR, opponent VARCHAR)
Question: What is the Winnipeg Jets record?
Here is the SQLite query to answer to the question: What is the Winnipeg Jet... | Here is the SQLite query to answer the question regarding the Winnipeg Jets' record:
```
SELECT record FROM table_name_51 WHERE opponent = "Winnipeg Jets";
``` | 46,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_51 (record VARCHAR, opponent VARCHAR)\n\n Question: What is the Winnipeg Jets record?\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (home VARCHAR, date VARCHAR)
Question: What's the stadium on November 8?
Here is the SQLite query to answer to the question: What's the stadium on November... | Here is the SQLite query to answer the question about the stadium on November 8:
```sql
SELECT home FROM table_name_26 WHERE date = 'november 8';
``` | 46,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_26 (home VARCHAR, date VARCHAR)\n\n Question: What's the stadium on November 8?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (visitor VARCHAR, date VARCHAR)
Question: Who was the visitor on March 17?
Here is the SQLite query to answer to the question: Who was the visitor on March... | Here is the SQLite query to answer the question "Who was the visitor on March 17?":
```sql
SELECT visitor FROM table_name_53 WHERE date = "March 17";
``` | 46,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_53 (visitor VARCHAR, date VARCHAR)\n\n Question: Who was the visitor on March 17?\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_49 (score VARCHAR, home VARCHAR, date VARCHAR)
Question: What's the score for Toronto Maple Leafs on November 10?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding the score for the Toronto Maple Leafs on November 10:
```
SELECT score FROM table_name_49 WHERE home = "Toronto Maple Leafs" AND date = "November 10";
``` | 46,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_49 (score VARCHAR, home VARCHAR, date VARCHAR)\n\n Question: What's the score for Toronto Maple Leafs on November 10?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (visitor VARCHAR, date VARCHAR)
Question: Who was the visitor on October 31?
Here is the SQLite query to answer to the question: Who was the visitor on Oct... | Here is the SQLite query to answer the question: Who was the visitor on October 31?:
```
SELECT visitor FROM table_name_75 WHERE date = "october 31";
``` | 46,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_75 (visitor VARCHAR, date VARCHAR)\n\n Question: Who was the visitor on October 31?\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_42 (rank VARCHAR, wins VARCHAR, class VARCHAR)
Question: What is the rank associated with 0 wins and a 350cc class?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the rank associated with 0 wins and a 350cc class:
```sql
SELECT rank FROM table_name_42 WHERE wins = '0' AND class = '350cc';
``` | 46,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_42 (rank VARCHAR, wins VARCHAR, class VARCHAR)\n\n Question: What is the rank associated with 0 wins and a 350cc class?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (run_2 VARCHAR, country VARCHAR, run_1 VARCHAR)
Question: What is the run 2 of the athlete from Australia with a run 1 less than 53.75?
Here is the SQLite ... | Here is the corrected SQLite query to answer the question about the athlete from Australia with a run 1 less than 53.75:
```
SELECT run_2 FROM table_name_73 WHERE country = 'Australia' AND run_1 < '53.75';
```
Note: Make sure the data type of `run_1` can be compared correctly (it should be numeric if you want to comp... | 46,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_73 (run_2 VARCHAR, country VARCHAR, run_1 VARCHAR)\n\n Question: What is the run 2 of the athlete from Australia with a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.