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_30120560_1 (area__acres__ VARCHAR, townland VARCHAR)
Question: what is the number of areas where the townland is brittas?
Here is the SQLite query to answer to the... | Your SQLite query correctly counts the number of areas where the townland is "Brittas". If you want to ensure it is formatted properly, here is the query wrapped in code formatting:
```
SELECT COUNT(area__acres__) FROM table_30120560_1 WHERE townland = "Brittas"
```
This query will return the total number of entries... | 41,200 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120560_1 (area__acres__ VARCHAR, townland VARCHAR)\n\n Question: what is the number of areas where the townland is brittas... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30120633_1 (poor_law_union VARCHAR, townland VARCHAR)
Question: What is the Poor Law Union for Coolkirky?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question: What is the Poor Law Union for Coolkirky?:
```
SELECT poor_law_union FROM table_30120633_1 WHERE townland = "Coolkirky";
``` | 41,201 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120633_1 (poor_law_union VARCHAR, townland VARCHAR)\n\n Question: What is the Poor Law Union for Coolkirky?\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_30120633_1 (area__acres__ INTEGER, townland VARCHAR)
Question: How few acres is the area of Clashroe?
Here is the SQLite query to answer to the question: How few a... | The SQLite query you have provided is correct for retrieving the minimum area in acres for the townland "Clashroe." Here it is wrapped in code format:
```
SELECT MIN(area__acres__) FROM table_30120633_1 WHERE townland = "Clashroe";
``` | 41,202 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120633_1 (area__acres__ INTEGER, townland VARCHAR)\n\n Question: How few acres is the area of Clashroe?\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_30120633_1 (townland VARCHAR, area__acres__ VARCHAR)
Question: Which townland has a 213 acre area?
Here is the SQLite query to answer to the question: Which townla... | It looks like there is a small issue in the query involving the data type of the `area__acres__` column. Since `area__acres__` is defined as a `VARCHAR`, the value should be compared as a string rather than an integer. Here's the corrected SQLite query:
```
SELECT townland FROM table_30120633_1 WHERE area__acres__ = '... | 41,203 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120633_1 (townland VARCHAR, area__acres__ VARCHAR)\n\n Question: Which townland has a 213 acre area?\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_30120633_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)
Question: How many acres does the area of Lissagroom with Bandon as its poor law union ... | Here is the SQLite query to answer the question of how many acres the area of Lissagroom with Bandon as its poor law union covers:
```
SELECT area__acres__ FROM table_30120633_1 WHERE poor_law_union = 'Bandon' AND townland = 'Lissagroom';
``` | 41,204 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120633_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)\n\n Question: How many acres does the area of L... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30120633_1 (civil_parish VARCHAR, townland VARCHAR)
Question: What is Ballymurphy North's civil parish?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about Ballymurphy North's civil parish:
```
SELECT civil_parish FROM table_30120633_1 WHERE townland = "Ballymurphy North"
``` | 41,205 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120633_1 (civil_parish VARCHAR, townland VARCHAR)\n\n Question: What is Ballymurphy North's civil parish?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, townland VARCHAR)
Question: How many acres in the townland of Coomroe?
Here is the SQLite query to answer to the question: How m... | The provided SQLite query needs to sum up the acreages of Coomroe rather than count the entries, since acres are not counted but totaled. Here's the corrected query:
```sql
SELECT SUM(CAST(area__acres__ AS REAL)) FROM table_30120761_1 WHERE townland = "Coomroe";
```
This query will calculate the total number of acre... | 41,206 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, townland VARCHAR)\n\n Question: How many acres in the townland of Coomroe?\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_30120761_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, civil_parish VARCHAR)
Question: What are all the acreages of the townlands in the Macroom poor law union ... | Here is the SQLite query to answer the question regarding the acreages of the townlands in the Macroom poor law union and Macroom civil parish:
```
SELECT area__acres__ FROM table_30120761_1 WHERE poor_law_union = "Macroom" AND civil_parish = "Macroom";
``` | 41,207 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, civil_parish VARCHAR)\n\n Question: What are all the acreages of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30120761_1 (barony VARCHAR, townland VARCHAR)
Question: How many baronies is Maulnagrough a part of?
Here is the SQLite query to answer to the question: How many b... | Here is the SQLite query to answer the question about how many baronies Maulnagrough is a part of:
```
SELECT COUNT(DISTINCT barony) FROM table_30120761_1 WHERE townland = "Maulnagrough";
```
This query uses `COUNT(DISTINCT barony)` to count the number of unique baronies associated with the townland "Maulnagrough". | 41,208 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120761_1 (barony VARCHAR, townland VARCHAR)\n\n Question: How many baronies is Maulnagrough a part of?\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_30120761_1 (townland VARCHAR, area__acres__ VARCHAR)
Question: What are all of the townlands that have exactly 131 acres.
Here is the SQLite query to answer to the... | The SQLite query you provided has a small issue. Since the `area__acres__` column is defined as a VARCHAR type, you need to compare it against the string value of '131' instead of the integer value 131. Here is the corrected query:
```
SELECT townland FROM table_30120761_1 WHERE area__acres__ = '131'
``` | 41,209 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120761_1 (townland VARCHAR, area__acres__ VARCHAR)\n\n Question: What are all of the townlands that have exactly 131 acres... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)
Question: What is the acreage of the Maghereen in the civil parish of Macroom?
Here is t... | The provided query attempts to count the number of entries for the townland "Maghereen" in the civil parish of "Macroom", but it does not actually return the acreage value. If you need to retrieve the acreage of "Maghereen" directly, you should use the `SELECT` statement to fetch the `area__acres__` value. Here’s the c... | 41,210 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)\n\n Question: What is the acreage of the Magheree... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121075_1 (poor_law_union VARCHAR, townland VARCHAR)
Question: What is the poor law union when the townland is bohonagh?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the poor law union when the townland is Bohonagh:
```
SELECT poor_law_union FROM table_30121075_1 WHERE townland = "Bohonagh";
``` | 41,211 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121075_1 (poor_law_union VARCHAR, townland VARCHAR)\n\n Question: What is the poor law union when the townland is bohonagh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121075_1 (barony VARCHAR, townland VARCHAR)
Question: How many entries are in barony when the townland is derrigra?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question on how many entries are in barony when the townland is derrigra:
```
SELECT COUNT(barony) FROM table_30121075_1 WHERE townland = 'derrigra';
``` | 41,212 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121075_1 (barony VARCHAR, townland VARCHAR)\n\n Question: How many entries are in barony when the townland is derrigra?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121075_1 (poor_law_union VARCHAR, townland VARCHAR)
Question: How many entries are listed in poor law union when townland is dromidiclogh?
Here is the SQLite que... | Here is the SQLite query to answer the question about how many entries are listed in the poor law union when townland is "Dromidiclogh":
```
SELECT COUNT(poor_law_union) FROM table_30121075_1 WHERE townland = "Dromidiclogh";
``` | 41,213 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121075_1 (poor_law_union VARCHAR, townland VARCHAR)\n\n Question: How many entries are listed in poor law union when townl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30121075_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)
Question: What is the area when the poor law union is skibbereen and the townland is kn... | Here is the SQLite query to answer the question about the area when the poor law union is Skibbereen and the townland is Knockmore:
```
SELECT area__acres__ FROM table_30121075_1 WHERE poor_law_union = "Skibbereen" AND townland = "Knockmore"
``` | 41,214 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30121075_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)\n\n Question: What is the area when the poor la... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30134667_2 (circuit VARCHAR, location VARCHAR)
Question: What is the circuit located in baltimore , maryland?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the circuit located in Baltimore, Maryland:
```sql
SELECT circuit FROM table_30134667_2 WHERE location = "Baltimore, Maryland";
``` | 41,215 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30134667_2 (circuit VARCHAR, location VARCHAR)\n\n Question: What is the circuit located in baltimore , maryland?\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_30134667_2 (circuit VARCHAR, location VARCHAR)
Question: Which circuit was located in st. petersburg, florida?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about which circuit was located in St. Petersburg, Florida:
```
SELECT circuit FROM table_30134667_2 WHERE location = "St. Petersburg, Florida";
``` | 41,216 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30134667_2 (circuit VARCHAR, location VARCHAR)\n\n Question: Which circuit was located in st. petersburg, florida?\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_30134667_2 (fastest_lap VARCHAR, location VARCHAR)
Question: Who had the fastest lap in bowmanville, ontario?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question: Who had the fastest lap in Bowmanville, Ontario?:
```
SELECT fastest_lap FROM table_30134667_2 WHERE location = "Bowmanville, Ontario"
``` | 41,217 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30134667_2 (fastest_lap VARCHAR, location VARCHAR)\n\n Question: Who had the fastest lap in bowmanville, ontario?\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_30134667_2 (fastest_lap VARCHAR, date VARCHAR)
Question: Who had the fastest lap on september 4?
Here is the SQLite query to answer to the question: Who had the fa... | Here is the SQLite query to answer the question "Who had the fastest lap on September 4?":
```
SELECT fastest_lap FROM table_30134667_2 WHERE date = "September 4";
``` | 41,218 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30134667_2 (fastest_lap VARCHAR, date VARCHAR)\n\n Question: Who had the fastest lap on september 4?\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_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)
Question: What is the 1985 value for the year when GDP as of 2012 a... | To answer the question about retrieving the 1985 value based on the specified GDP as of 2012 after PPP, you need to make an adjustment to the query since the column name does not directly indicate there is a year column. It appears that you are looking to retrieve the value from an implied 1985 column.
Assuming you h... | 41,219 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)\n\n Question: What is the 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30133_3 (gap_from_thailand_as_of_2012__times_ VARCHAR, economy VARCHAR)
Question: What was the gap from Thailand as of 2012 for China?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about the gap from Thailand as of 2012 for China:
```
SELECT gap_from_thailand_as_of_2012__times_ FROM table_30133_3 WHERE economy = "China"
``` | 41,220 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30133_3 (gap_from_thailand_as_of_2012__times_ VARCHAR, economy VARCHAR)\n\n Question: What was the gap from Thailand as of 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30133_3 (economy VARCHAR)
Question: What is the maximum 2010 value for China?
Here is the SQLite query to answer to the question: What is the maximum 2010 value fo... | The SQLite query provided has a small mistake since you're trying to find the maximum for a specific year, but you are currently selecting from a column that does not seem to represent values from 2010. Assuming you have a different structure where the values for years are stored in some form, the query might need to r... | 41,221 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30133_3 (economy VARCHAR)\n\n Question: What is the maximum 2010 value for China?\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_30133_3 (gap_from_thailand_as_of_2012__times_ VARCHAR, gap_from_thailand_as_of_1980__times_ VARCHAR)
Question: What is the gap from Thailand as of 2012 for the coun... | Here's the SQLite query to answer the question about the gap from Thailand as of 2012 for the country whose 1980 gap was 0.29:
```
SELECT gap_from_thailand_as_of_2012__times_ FROM table_30133_3 WHERE gap_from_thailand_as_of_1980__times_ = "0.29"
``` | 41,222 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30133_3 (gap_from_thailand_as_of_2012__times_ VARCHAR, gap_from_thailand_as_of_1980__times_ VARCHAR)\n\n Question: What is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)
Question: How many GDPs as of 2012 after PPP values are associated ... | The query you provided contains a logical error in the WHERE clause. You need to check if the GDP value corresponds to 23113, but it seems you are incorrectly attempting to compare the year directly. Assuming the GDP values are stored as text in the table, you should compare the value as a string or convert the GDP val... | 41,223 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)\n\n Question: How many GDPs... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30133_3 (gap_from_thailand_as_of_1980__times_ VARCHAR)
Question: What is the max 2010 value for a 1980 gap value is 2.43?
Here is the SQLite query to answer to the... | The SQLite query you provided contains a small error in the way it's trying to reference the "2010 value". The query should specify the correct column for the 2010 value. Since the schema only shows one column (`gap_from_thailand_as_of_1980__times_`), it implies that the 2010 value is not directly included in the schem... | 41,224 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30133_3 (gap_from_thailand_as_of_1980__times_ VARCHAR)\n\n Question: What is the max 2010 value for a 1980 gap value is 2.43... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_30139175_3 (uk_total_viewers VARCHAR, episode_no VARCHAR)
Question: How many viewers in the UK did episode 50 have?
Here is the SQLite query to answer to the quest... | Your SQLite query is almost correct, but since `episode_no` is a VARCHAR field, you should compare it with a string. Here's the corrected query:
```
SELECT uk_total_viewers FROM table_30139175_3 WHERE episode_no = '50'
``` | 41,225 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_30139175_3 (uk_total_viewers VARCHAR, episode_no VARCHAR)\n\n Question: How many viewers in the UK did episode 50 have?\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_91 (doubles_w_l VARCHAR, player VARCHAR)
Question: Tell me the doubles W-L for player of laurynas grigelis
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the doubles W-L for the player Laurynas Grigelis:
```sql
SELECT doubles_w_l FROM table_name_91 WHERE player = "laurynas grigelis";
``` | 41,226 | [
{
"from": "human",
"value": " 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 (doubles_w_l VARCHAR, player VARCHAR)\n\n Question: Tell me the doubles W-L for player of laurynas grigelis\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_64 (most_recent_cap VARCHAR, goals VARCHAR, name VARCHAR)
Question: What is the newest Cap with a Goals stat larger than 17 and which was done by Brian Turner?... | Your SQLite query is almost correct, but to ensure you are getting the newest Cap, you may want to order the results by the `most_recent_cap` in descending order and limit the output to one. Here’s an improved version of your query:
```
SELECT most_recent_cap
FROM table_name_64
WHERE goals > 17 AND name = "brian tur... | 41,227 | [
{
"from": "human",
"value": " 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 (most_recent_cap VARCHAR, goals VARCHAR, name VARCHAR)\n\n Question: What is the newest Cap with a Goals stat larger... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (nationality VARCHAR, school_club_team VARCHAR)
Question: What is the nationality of school/club team of barton cc (ks)?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about the nationality of the school/club team "barton cc (ks)":
```
SELECT nationality FROM table_name_65 WHERE school_club_team = "barton cc (ks)";
``` | 41,228 | [
{
"from": "human",
"value": " 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 (nationality VARCHAR, school_club_team VARCHAR)\n\n Question: What is the nationality of school/club team of barton ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (school_club_team VARCHAR, player VARCHAR)
Question: Shawn Respert play for what school/club team?
Here is the SQLite query to answer to the question: Shaw... | Here is the SQLite query to answer the question regarding what school/club team Shawn Respert plays for:
```
SELECT school_club_team FROM table_name_66 WHERE player = "Shawn Respert"
``` | 41,229 | [
{
"from": "human",
"value": " 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 (school_club_team VARCHAR, player VARCHAR)\n\n Question: Shawn Respert play for what school/club team?\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_88 (position VARCHAR, years_in_toronto VARCHAR)
Question: Who has position in year 1996-97 in Toronto?
Here is the SQLite query to answer to the question: Who... | Your query is correctly structured to answer the question regarding the position in Toronto for the year 1996-97. Here is the SQL code wrapped in code blocks for clarity:
```
SELECT position FROM table_name_88 WHERE years_in_toronto = "1996-97";
``` | 41,230 | [
{
"from": "human",
"value": " 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 (position VARCHAR, years_in_toronto VARCHAR)\n\n Question: Who has position in year 1996-97 in Toronto?\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_38 (school_club_team VARCHAR, player VARCHAR)
Question: Roy Rogers play for what school/club team?
Here is the SQLite query to answer to the question: Roy Rog... | Here is the SQLite query to answer the question: "Roy Rogers play for what school/club team?":
```
SELECT school_club_team FROM table_name_38 WHERE player = "Roy Rogers";
``` | 41,231 | [
{
"from": "human",
"value": " 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 (school_club_team VARCHAR, player VARCHAR)\n\n Question: Roy Rogers play for what school/club team?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (years_in_toronto VARCHAR, nationality VARCHAR, school_club_team VARCHAR)
Question: What year is United States school/club team from Arkansas play in Toront... | Here is the SQLite query to answer the question regarding the United States school/club team from Arkansas playing in Toronto:
```
SELECT years_in_toronto FROM table_name_87 WHERE nationality = "united states" AND school_club_team = "arkansas";
``` | 41,232 | [
{
"from": "human",
"value": " 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 (years_in_toronto VARCHAR, nationality VARCHAR, school_club_team VARCHAR)\n\n Question: What year is United States s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (player VARCHAR, nationality VARCHAR, years_in_toronto VARCHAR)
Question: Who is the player from United States who play in year 2003-06 in Toronto?
Here is ... | Your SQLite query looks correct for the provided question. Here it is formatted as specified:
```
SELECT player FROM table_name_8 WHERE nationality = "united states" AND years_in_toronto = "2003-06"
``` | 41,233 | [
{
"from": "human",
"value": " 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 (player VARCHAR, nationality VARCHAR, years_in_toronto VARCHAR)\n\n Question: Who is the player from United States wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (units_sold INTEGER, publisher VARCHAR)
Question: Tell me the average units sold for square enix
Here is the SQLite query to answer to the question: Tell m... | Your SQLite query is correct for calculating the average units sold for the publisher "square enix." Here is the formatted query:
```
SELECT AVG(units_sold) FROM table_name_46 WHERE publisher = "square enix";
``` | 41,234 | [
{
"from": "human",
"value": " 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 (units_sold INTEGER, publisher VARCHAR)\n\n Question: Tell me the average units sold for square enix\n\nHere is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (date VARCHAR, partnering VARCHAR)
Question: Tell me the date for nicolas pereira
Here is the SQLite query to answer to the question: Tell me the date for ... | Here is the SQLite query to answer the question regarding the date for Nicolas Pereira:
```
SELECT date FROM table_name_60 WHERE partnering = "nicolas pereira"
``` | 41,235 | [
{
"from": "human",
"value": " 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 (date VARCHAR, partnering VARCHAR)\n\n Question: Tell me the date for nicolas pereira\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_14 (date VARCHAR, year VARCHAR)
Question: what is the date in 1986?
Here is the SQLite query to answer to the question: what is the date in 1986?:
```
SELECT ... | Here is the SQLite query to answer the question regarding the date in 1986:
```
SELECT date FROM table_name_14 WHERE year = '1986'
``` | 41,236 | [
{
"from": "human",
"value": " 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 (date VARCHAR, year VARCHAR)\n\n Question: what is the date in 1986?\n\nHere is the SQLite query to answer to the qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (year INTEGER, venue VARCHAR)
Question: What is the average year for Ponce, Puerto Rico events?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question regarding the average year for Ponce, Puerto Rico events:
```
SELECT AVG(year) FROM table_name_15 WHERE venue = "Ponce, Puerto Rico";
``` | 41,237 | [
{
"from": "human",
"value": " 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 (year INTEGER, venue VARCHAR)\n\n Question: What is the average year for Ponce, Puerto Rico events?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (year VARCHAR, event VARCHAR, position VARCHAR)
Question: What year did she place 8th in the junior race?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question: What year did she place 8th in the junior race?:
```
SELECT year FROM table_name_9 WHERE event = "junior race" AND position = "8th"
``` | 41,238 | [
{
"from": "human",
"value": " 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 (year VARCHAR, event VARCHAR, position VARCHAR)\n\n Question: What year did she place 8th in the junior race?\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_69 (nhl_team VARCHAR, player VARCHAR)
Question: Tell me the NHL team for ryan johnson
Here is the SQLite query to answer to the question: Tell me the NHL team... | Here is the SQLite query to answer the question: Tell me the NHL team for ryan johnson:
```
SELECT nhl_team FROM table_name_69 WHERE player = "ryan johnson"
``` | 41,239 | [
{
"from": "human",
"value": " 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 (nhl_team VARCHAR, player VARCHAR)\n\n Question: Tell me the NHL team for ryan johnson\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_68 (position VARCHAR, pick VARCHAR)
Question: Tell me the position for pick of 47
Here is the SQLite query to answer to the question: Tell me the position for... | Here is the SQLite query to answer the question about the position for pick of 47:
```
SELECT position FROM table_name_68 WHERE pick = "47";
``` | 41,240 | [
{
"from": "human",
"value": " 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 (position VARCHAR, pick VARCHAR)\n\n Question: Tell me the position for pick of 47\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_12 (pick VARCHAR, nhl_team VARCHAR)
Question: Tell me the pick for pittsburgh penguins
Here is the SQLite query to answer to the question: Tell me the pick fo... | Here is the appropriate SQLite query to find the pick for the Pittsburgh Penguins:
```
SELECT pick FROM table_name_12 WHERE nhl_team = "pittsburgh penguins"
``` | 41,241 | [
{
"from": "human",
"value": " 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 (pick VARCHAR, nhl_team VARCHAR)\n\n Question: Tell me the pick for pittsburgh penguins\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 (nationality VARCHAR, player VARCHAR)
Question: Tell me the nationality for rudolf vercik
Here is the SQLite query to answer to the question: Tell me the n... | Here is the SQLite query to answer the question about the nationality of Rudolf Vercik:
```
SELECT nationality FROM table_name_51 WHERE player = "rudolf vercik";
``` | 41,242 | [
{
"from": "human",
"value": " 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 (nationality VARCHAR, player VARCHAR)\n\n Question: Tell me the nationality for rudolf vercik\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_85 (player VARCHAR, nationality VARCHAR, pick VARCHAR)
Question: Tell me the player for nationality of canada for pick of 43
Here is the SQLite query to answe... | Here is the SQLite query to answer the question regarding the player for nationality of Canada for pick of 43:
```
SELECT player FROM table_name_85 WHERE nationality = "canada" AND pick = "43";
``` | 41,243 | [
{
"from": "human",
"value": " 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 (player VARCHAR, nationality VARCHAR, pick VARCHAR)\n\n Question: Tell me the player for nationality of canada for p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (college_junior_club_team VARCHAR, player VARCHAR)
Question: Tell me the college for jason holland
Here is the SQLite query to answer to the question: Tell ... | Here is the SQLite query to answer the question "Tell me the college for jason holland":
```
SELECT college_junior_club_team FROM table_name_2 WHERE player = "jason holland";
``` | 41,244 | [
{
"from": "human",
"value": " 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 (college_junior_club_team VARCHAR, player VARCHAR)\n\n Question: Tell me the college for jason holland\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_91 (date VARCHAR, winning_driver VARCHAR, name VARCHAR)
Question: Tell me the date for rudolf caracciola for avusrennen
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question "Tell me the date for rudolf caracciola for avusrennen":
```
SELECT date FROM table_name_91 WHERE winning_driver = "rudolf caracciola" AND name = "avusrennen"
``` | 41,245 | [
{
"from": "human",
"value": " 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 (date VARCHAR, winning_driver VARCHAR, name VARCHAR)\n\n Question: Tell me the date for rudolf caracciola for avusre... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (circuit VARCHAR, date VARCHAR, name VARCHAR)
Question: Tell me the circuit for 10 may for targa florio
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question regarding the circuit for 10 May for Targa Florio:
```
SELECT circuit FROM table_name_79 WHERE date = "10 may" AND name = "targa florio";
``` | 41,246 | [
{
"from": "human",
"value": " 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 (circuit VARCHAR, date VARCHAR, name VARCHAR)\n\n Question: Tell me the circuit for 10 may for targa florio\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_20 (score VARCHAR, tournament VARCHAR)
Question: What was the score of the Washington tournament?
Here is the SQLite query to answer to the question: What was... | Here is the SQLite query to answer the question about the score of the Washington tournament:
```
SELECT score FROM table_name_20 WHERE tournament = "Washington";
``` | 41,247 | [
{
"from": "human",
"value": " 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, tournament VARCHAR)\n\n Question: What was the score of the Washington tournament?\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_95 (date VARCHAR, opponent VARCHAR)
Question: On what date was Patty Fendick an opponent?
Here is the SQLite query to answer to the question: On what date was... | Here is the SQLite query to answer the question: On what date was Patty Fendick an opponent?:
```
SELECT date FROM table_name_95 WHERE opponent = "Patty Fendick";
``` | 41,248 | [
{
"from": "human",
"value": " 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 (date VARCHAR, opponent VARCHAR)\n\n Question: On what date was Patty Fendick an opponent?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (score VARCHAR, venue VARCHAR)
Question: What score does Vasil Levski National Stadium, Sofia earn?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question about the score that Vasil Levski National Stadium, Sofia earns:
```
SELECT score FROM table_name_62 WHERE venue = "Vasil Levski National Stadium, Sofia";
``` | 41,249 | [
{
"from": "human",
"value": " 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 (score VARCHAR, venue VARCHAR)\n\n Question: What score does Vasil Levski National Stadium, Sofia earn?\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_96 (score VARCHAR, competition VARCHAR, venue VARCHAR)
Question: What score did vasil levski national stadium, sofia, which was friendly during competition, ea... | Here is the SQLite query to answer the question about the score that "vasil levski national stadium, sofia" earned during a "friendly" competition:
```
SELECT score FROM table_name_96 WHERE competition = "friendly" AND venue = "vasil levski national stadium, sofia"
``` | 41,250 | [
{
"from": "human",
"value": " 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 (score VARCHAR, competition VARCHAR, venue VARCHAR)\n\n Question: What score did vasil levski national stadium, sofi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (nationality VARCHAR, nhl_team VARCHAR)
Question: What is the nationality of the Washington Capitals?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the nationality of the Washington Capitals:
```
SELECT nationality FROM table_name_68 WHERE nhl_team = "washington capitals";
``` | 41,251 | [
{
"from": "human",
"value": " 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 (nationality VARCHAR, nhl_team VARCHAR)\n\n Question: What is the nationality of the Washington Capitals?\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_57 (nhl_team VARCHAR, player VARCHAR)
Question: On what NHL team does Roman Vopat play for?
Here is the SQLite query to answer to the question: On what NHL te... | Here is the SQLite query to answer the question about the NHL team Roman Vopat plays for:
```
SELECT nhl_team FROM table_name_57 WHERE player = "Roman Vopat";
``` | 41,252 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (nhl_team VARCHAR, player VARCHAR)\n\n Question: On what NHL team does Roman Vopat play for?\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_1 (position VARCHAR, nationality VARCHAR)
Question: What is the position of the player from the Ukraine?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the position of the player from Ukraine:
```
SELECT position FROM table_name_1 WHERE nationality = "Ukraine"
```
Make sure to adjust the case of "Ukraine" in the query if necessary, depending on how the data is stored in the database (case sensitivity). | 41,253 | [
{
"from": "human",
"value": " 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 (position VARCHAR, nationality VARCHAR)\n\n Question: What is the position of the player from the Ukraine?\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_58 (tournament VARCHAR, result VARCHAR)
Question: What Tournament did he place 12th in?
Here is the SQLite query to answer to the question: What Tournament di... | Your SQLite query is correct to find the tournament where the result was "12th". Here is the wrapped code:
```
SELECT tournament FROM table_name_58 WHERE result = "12th";
``` | 41,254 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR, result VARCHAR)\n\n Question: What Tournament did he place 12th in?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (year INTEGER, result VARCHAR)
Question: What was the first year he placed 12th
Here is the SQLite query to answer to the question: What was the first year ... | Here is the SQLite query to answer the question about the first year he placed 12th:
```
SELECT MIN(year) FROM table_name_9 WHERE result = '12th';
``` | 41,255 | [
{
"from": "human",
"value": " 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 (year INTEGER, result VARCHAR)\n\n Question: What was the first year he placed 12th\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_5 (circuit VARCHAR, winning_constructor VARCHAR, name VARCHAR)
Question: Tell me the circuit for alfa romeo swedish ice race
Here is the SQLite query to answe... | Here is the SQLite query to answer your question:
```
SELECT circuit FROM table_name_5 WHERE winning_constructor = "alfa romeo" AND name = "swedish ice race";
``` | 41,256 | [
{
"from": "human",
"value": " 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 (circuit VARCHAR, winning_constructor VARCHAR, name VARCHAR)\n\n Question: Tell me the circuit for alfa romeo swedish... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)
Question: Tell me the date for bugatti fpr stanislas czaykowski
Here is the SQLite quer... | Here is the SQLite query to answer the question about the date for Bugatti for Stanislas Czaykowski:
```
SELECT date FROM table_name_60 WHERE winning_constructor = "bugatti" AND winning_driver = "stanislas czaykowski";
``` | 41,257 | [
{
"from": "human",
"value": " 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 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)\n\n Question: Tell me the date for bugatti fpr s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (circuit VARCHAR, date VARCHAR)
Question: Tell me the circuit for 20 august
Here is the SQLite query to answer to the question: Tell me the circuit for 20 ... | Here is the SQLite query to answer the question: Tell me the circuit for 20 August:
```
SELECT circuit FROM table_name_99 WHERE date = "20 august"
``` | 41,258 | [
{
"from": "human",
"value": " 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 (circuit VARCHAR, date VARCHAR)\n\n Question: Tell me the circuit for 20 august\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (winning_driver VARCHAR, name VARCHAR)
Question: Tell me the winning driver for avusrennen
Here is the SQLite query to answer to the question: Tell me the ... | Here is the SQLite query to answer the question about the winning driver for avusrennen:
```
SELECT winning_driver FROM table_name_70 WHERE name = "avusrennen";
``` | 41,259 | [
{
"from": "human",
"value": " 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 (winning_driver VARCHAR, name VARCHAR)\n\n Question: Tell me the winning driver for avusrennen\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_96 (report VARCHAR, winning_constructor VARCHAR, circuit VARCHAR)
Question: Tell me the report for bugatti and brooklands
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the report for Bugatti and Brooklands:
```
SELECT report FROM table_name_96 WHERE winning_constructor = 'bugatti' AND circuit = 'brooklands';
``` | 41,260 | [
{
"from": "human",
"value": " 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 (report VARCHAR, winning_constructor VARCHAR, circuit VARCHAR)\n\n Question: Tell me the report for bugatti and broo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (year VARCHAR, location VARCHAR)
Question: How many years has there been a competition in Helsinki?
Here is the SQLite query to answer to the question: How... | Your SQLite query looks good. Just a small suggestion for case sensitivity in SQL: if your database entries might have "Helsinki" with a capital "H", you may want to use a case-insensitive comparison. Here’s the adjusted query:
```sql
SELECT COUNT(year) FROM table_name_78 WHERE lower(location) = 'helsinki'
```
This w... | 41,261 | [
{
"from": "human",
"value": " 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 (year VARCHAR, location VARCHAR)\n\n Question: How many years has there been a competition in Helsinki?\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_96 (competition VARCHAR, year VARCHAR, score VARCHAR)
Question: Which competition before 1982 had a score of 2:3?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question: Which competition before 1982 had a score of 2:3?:
```
SELECT competition FROM table_name_96 WHERE year < '1982' AND score = '2:3';
``` | 41,262 | [
{
"from": "human",
"value": " 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 (competition VARCHAR, year VARCHAR, score VARCHAR)\n\n Question: Which competition before 1982 had a score of 2:3?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (competition VARCHAR, location VARCHAR, year VARCHAR, score VARCHAR)
Question: Which competition occurred after 1980 with a score of 0:5 in Jerusalem?
Here... | Here is the SQLite query to answer the question of which competition occurred after 1980 with a score of 0:5 in Jerusalem:
```
SELECT competition FROM table_name_51 WHERE year > 1980 AND score = "0:5" AND location = "Jerusalem";
``` | 41,263 | [
{
"from": "human",
"value": " 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 (competition VARCHAR, location VARCHAR, year VARCHAR, score VARCHAR)\n\n Question: Which competition occurred after ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (date VARCHAR, attendance VARCHAR)
Question: When was there an attendance of 51,342?
Here is the SQLite query to answer to the question: When was there an a... | Here is the SQLite query to answer the question: When was there an attendance of 51,342?:
```
SELECT date FROM table_name_6 WHERE attendance = "51,342"
``` | 41,264 | [
{
"from": "human",
"value": " 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 (date VARCHAR, attendance VARCHAR)\n\n Question: When was there an attendance of 51,342?\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_88 (attendance VARCHAR, week VARCHAR)
Question: What was the attendance during week 7?
Here is the SQLite query to answer to the question: What was the attend... | Your provided SQLite query is mostly correct, but since "week" is defined as a VARCHAR in the schema, you should enclose the value '7' in single quotes to ensure it is treated correctly as a string. Here is the revised query:
```
SELECT attendance FROM table_name_88 WHERE week = '7'
``` | 41,265 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, week VARCHAR)\n\n Question: What was the attendance during week 7?\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_12 (result VARCHAR, week VARCHAR)
Question: What was the score during week 16?
Here is the SQLite query to answer to the question: What was the score during w... | Here is the SQLite query to answer the question: What was the score during week 16?:
```
SELECT result FROM table_name_12 WHERE week = '16'
``` | 41,266 | [
{
"from": "human",
"value": " 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 (result VARCHAR, week VARCHAR)\n\n Question: What was the score during week 16?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (minister VARCHAR, left_office VARCHAR)
Question: Who is the mInister who left office during 1960?
Here is the SQLite query to answer to the question: Who ... | Your provided query looks appropriate for retrieving the minister who left office during the year 1960. However, since the `left_office` column is a varchar, it's important to ensure that the comparison is accurate based on how the data is structured in that column. If the `left_office` contains only the year, then you... | 41,267 | [
{
"from": "human",
"value": " 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 (minister VARCHAR, left_office VARCHAR)\n\n Question: Who is the mInister who left office during 1960?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (government VARCHAR, number VARCHAR)
Question: Which government is number 6?
Here is the SQLite query to answer to the question: Which government is number... | Here is the SQLite query to answer the question "Which government is number 6?":
```
SELECT government FROM table_name_63 WHERE number = '6';
``` | 41,268 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (government VARCHAR, number VARCHAR)\n\n Question: Which government is number 6?\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 (rider VARCHAR, speed VARCHAR)
Question: Which rider had a speed of 90.57mph?
Here is the SQLite query to answer to the question: Which rider had a speed o... | Here is the SQLite query to answer the question of which rider had a speed of 90.57mph:
```
SELECT rider FROM table_name_59 WHERE speed = "90.57mph";
``` | 41,269 | [
{
"from": "human",
"value": " 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 (rider VARCHAR, speed VARCHAR)\n\n Question: Which rider had a speed of 90.57mph?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (country VARCHAR, place VARCHAR, points VARCHAR)
Question: Which country has a place smaller than 8 and points smaller than 5?
Here is the SQLite query to ... | Here is the SQLite query to answer the question: Which country has a place smaller than 8 and points smaller than 5?:
```
SELECT country FROM table_name_63 WHERE place < 8 AND points < 5;
``` | 41,270 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (country VARCHAR, place VARCHAR, points VARCHAR)\n\n Question: Which country has a place smaller than 8 and points s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (losses INTEGER, place VARCHAR, wins VARCHAR, ties VARCHAR)
Question: What is the lowest number of Losses when the number of Wins is less than 4, the number... | The SQLite query to find the lowest number of losses under the specified conditions is as follows:
```
SELECT MIN(losses)
FROM table_name_38
WHERE wins < 4 AND ties = 2 AND place = 5;
``` | 41,271 | [
{
"from": "human",
"value": " 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 (losses INTEGER, place VARCHAR, wins VARCHAR, ties VARCHAR)\n\n Question: What is the lowest number of Losses when t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (post_season_record_ VARCHAR, e_ VARCHAR, mlb_affiliate VARCHAR)
Question: Tell me the post-season record for kansas city
Here is the SQLite query to answe... | Here is the corrected SQLite query to get the post-season record for Kansas City:
```sql
SELECT post_season_record_ FROM table_name_55 WHERE mlb_affiliate = "kansas city";
```
Make sure the field names and the league team's name are exactly as specified in your database. | 41,272 | [
{
"from": "human",
"value": " 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 (post_season_record_ VARCHAR, e_ VARCHAR, mlb_affiliate VARCHAR)\n\n Question: Tell me the post-season record for ka... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (venue VARCHAR, date VARCHAR)
Question: Tell me the venue of 29 april 2007
Here is the SQLite query to answer to the question: Tell me the venue of 29 apri... | Here is the SQLite query to answer the question about the venue on 29 April 2007:
```
SELECT venue FROM table_name_14 WHERE date = "29 april 2007";
``` | 41,273 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, date VARCHAR)\n\n Question: Tell me the venue of 29 april 2007\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_87 (competition VARCHAR, date VARCHAR)
Question: Tell me the competition of 20 august 2008
Here is the SQLite query to answer to the question: Tell me the com... | Here is the SQLite query to answer the question: Tell me the competition of 20 august 2008:
```
SELECT competition FROM table_name_87 WHERE date = "20 august 2008";
``` | 41,274 | [
{
"from": "human",
"value": " 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 (competition VARCHAR, date VARCHAR)\n\n Question: Tell me the competition of 20 august 2008\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_89 (date VARCHAR, venue VARCHAR)
Question: Tell me the date of stade des martyrs, dr congo
Here is the SQLite query to answer to the question: Tell me the dat... | Here is the SQLite query to answer the question regarding the date of "stade des martyrs, dr congo":
```
SELECT date FROM table_name_89 WHERE venue = "stade des martyrs, dr congo";
``` | 41,275 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (date VARCHAR, venue VARCHAR)\n\n Question: Tell me the date of stade des martyrs, dr congo\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_92 (amount__millions_ VARCHAR, payee VARCHAR)
Question: How much money, in millions, is paid to Infotalent?
Here is the SQLite query to answer to the question... | Your query is almost correct, but to get the total amount paid to Infotalent, you should use the `SUM()` function to aggregate the amounts. Additionally, since `amount__millions_` is a VARCHAR, you may need to cast it to a numeric type for proper summation. Here is the improved query:
```sql
SELECT SUM(CAST(amount__mi... | 41,276 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (amount__millions_ VARCHAR, payee VARCHAR)\n\n Question: How much money, in millions, is paid to Infotalent?\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_52 (purpose VARCHAR, payee VARCHAR)
Question: What is the purpose of Euromarine?
Here is the SQLite query to answer to the question: What is the purpose of Eu... | Here is the SQLite query to answer the question about the purpose of Euromarine, wrapped in code formatting:
```
SELECT purpose FROM table_name_52 WHERE payee = "Euromarine";
``` | 41,277 | [
{
"from": "human",
"value": " 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 (purpose VARCHAR, payee VARCHAR)\n\n Question: What is the purpose of Euromarine?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (signatories VARCHAR, purpose VARCHAR, payee VARCHAR)
Question: What signatory has a purpose of police security and Infotalent payee?
Here is the SQLite qu... | Here is the SQLite query to answer the question regarding the signatory with a purpose of "police security" and "Infotalent" as the payee:
```
SELECT signatories FROM table_name_71 WHERE purpose = "police security" AND payee = "Infotalent";
``` | 41,278 | [
{
"from": "human",
"value": " 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 (signatories VARCHAR, purpose VARCHAR, payee VARCHAR)\n\n Question: What signatory has a purpose of police security ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (launched INTEGER, name VARCHAR)
Question: Tell me the highest launced for trn
Here is the SQLite query to answer to the question: Tell me the highest launc... | Here is the SQLite query to answer the question: Tell me the highest launched for trn:
```
SELECT MAX(launched) FROM table_name_1 WHERE name = 'trn';
``` | 41,279 | [
{
"from": "human",
"value": " 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 (launched INTEGER, name VARCHAR)\n\n Question: Tell me the highest launced for trn\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_25 (period VARCHAR, place VARCHAR)
Question: Tell me the period for red rock
Here is the SQLite query to answer to the question: Tell me the period for red ro... | Here's the SQLite query to answer the question "Tell me the period for red rock":
```
SELECT period FROM table_name_25 WHERE place = 'red rock'
``` | 41,280 | [
{
"from": "human",
"value": " 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 (period VARCHAR, place VARCHAR)\n\n Question: Tell me the period for red rock\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_15 (province VARCHAR, location VARCHAR)
Question: Tell me the province for 260km ese of calgary
Here is the SQLite query to answer to the question: Tell me th... | Certainly! Here is the SQLite query to find the province for the location "260km ese of calgary" based on the provided schema:
```
SELECT province FROM table_name_15 WHERE location = "260km ese of calgary";
``` | 41,281 | [
{
"from": "human",
"value": " 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 (province VARCHAR, location VARCHAR)\n\n Question: Tell me the province for 260km ese of calgary\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_49 (province VARCHAR, period VARCHAR)
Question: Tell me the province of 1941-1946
Here is the SQLite query to answer to the question: Tell me the province of ... | Here is the SQLite query to answer the question "Tell me the province of 1941-1946":
```
SELECT province FROM table_name_49 WHERE period = "1941-1946";
``` | 41,282 | [
{
"from": "human",
"value": " 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 (province VARCHAR, period VARCHAR)\n\n Question: Tell me the province of 1941-1946\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_90 (degree VARCHAR, award_year VARCHAR, award VARCHAR)
Question: Tell me the degree for chemistry 1965
Here is the SQLite query to answer to the question: Tel... | Here is the SQLite query to answer the question: Tell me the degree for chemistry 1965:
```
SELECT degree FROM table_name_90 WHERE award_year = '1965' AND award = 'chemistry';
``` | 41,283 | [
{
"from": "human",
"value": " 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 (degree VARCHAR, award_year VARCHAR, award VARCHAR)\n\n Question: Tell me the degree for chemistry 1965\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_49 (election_date VARCHAR, member VARCHAR)
Question: What is the Election date for Member william richmond category:articles with hcards?
Here is the SQLite q... | Your SQLite query seems to assume that the `member` field in the database contains the entire string "william richmond category:articles with hcards." If "william richmond" is the name of the member and you are looking for records related specifically to that name, the correct query would involve filtering just for "wi... | 41,284 | [
{
"from": "human",
"value": " 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 (election_date VARCHAR, member VARCHAR)\n\n Question: What is the Election date for Member william richmond category... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (election_date VARCHAR, electorate VARCHAR)
Question: What is the election date for the city of auckland category:articles with hcards?
Here is the SQLite ... | Here is the correct SQLite query to answer the question regarding the election date for the specified electorate:
```
SELECT election_date FROM table_name_16 WHERE electorate = 'city of auckland category:articles with hcards';
```
Make sure to use the appropriate single quotes in SQL for string literals. | 41,285 | [
{
"from": "human",
"value": " 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 (election_date VARCHAR, electorate VARCHAR)\n\n Question: What is the election date for the city of auckland categor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (electorate VARCHAR, member VARCHAR)
Question: What electorate does Member dingley brittin category:articles with hcards represent?
Here is the SQLite quer... | Your SQLite query is almost correct, but it looks like there was a misunderstanding in the member name. If "dingley brittin" is the member, you need to ensure that the entire member name matches exactly as it appears in the database.
Here’s the SQLite query wrapped correctly:
```
SELECT electorate FROM table_name_37... | 41,286 | [
{
"from": "human",
"value": " 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 (electorate VARCHAR, member VARCHAR)\n\n Question: What electorate does Member dingley brittin category:articles wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (election_date VARCHAR, member VARCHAR)
Question: What is the election date for the electorate of member charles brown category:articles with hcards?
Here ... | Your query looks good, but it seems there's a misunderstanding about the member's name format in the context of the question. If the member's name is indeed "charles brown" and the rest is considered as additional information, the query should just target "charles brown". Here's a slight adjustment:
```sql
SELECT elec... | 41,287 | [
{
"from": "human",
"value": " 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 (election_date VARCHAR, member VARCHAR)\n\n Question: What is the election date for the electorate of member charles... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (date VARCHAR, event VARCHAR, acts VARCHAR, year VARCHAR)
Question: Tell me the date for acts of 6 bands and year larger than 1981 for monsters of rock
Here... | Here is the SQLite query to answer the question based on the provided database schema:
```
SELECT date FROM table_name_4 WHERE acts = "6 bands" AND year > "1981" AND event = "monsters of rock"
``` | 41,288 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (date VARCHAR, event VARCHAR, acts VARCHAR, year VARCHAR)\n\n Question: Tell me the date for acts of 6 bands and year... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (stages VARCHAR, year VARCHAR)
Question: Tell me the stages for 1981
Here is the SQLite query to answer to the question: Tell me the stages for 1981:
```
S... | Here is the SQLite query to answer the question: Tell me the stages for 1981:
```
SELECT stages FROM table_name_42 WHERE year = '1981'
``` | 41,289 | [
{
"from": "human",
"value": " 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 (stages VARCHAR, year VARCHAR)\n\n Question: Tell me the stages for 1981\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (event VARCHAR, acts VARCHAR)
Question: Tell me the event for 6 bands
Here is the SQLite query to answer to the question: Tell me the event for 6 bands:
``... | Here is the correct SQLite query to answer the question about the event for 6 bands:
```sql
SELECT event FROM table_name_74 WHERE acts = '6 bands';
``` | 41,290 | [
{
"from": "human",
"value": " 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 (event VARCHAR, acts VARCHAR)\n\n Question: Tell me the event for 6 bands\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_79 (lightweight VARCHAR, information_model VARCHAR, flexible VARCHAR)
Question: What is the lightweight value with no information model and the flexible value ... | Your provided SQLite query looks mostly correct, but the phrasing "no information model" typically suggests checking for a NULL or empty value instead of the string "no". Assuming that "no information model" means that the information_model column is either NULL or an empty string, here’s how you might write the query:... | 41,291 | [
{
"from": "human",
"value": " 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 (lightweight VARCHAR, information_model VARCHAR, flexible VARCHAR)\n\n Question: What is the lightweight value with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (bore VARCHAR, cyl VARCHAR, name VARCHAR)
Question: What is the bore for a 9-cyl radial on a 9 AD?
Here is the SQLite query to answer to the question: What ... | Your SQLite query is correctly formulated to answer the question. Here is the query wrapped in code formatting as requested:
```
SELECT bore FROM table_name_8 WHERE cyl = "9-cyl radial" AND name = "9 ad";
``` | 41,292 | [
{
"from": "human",
"value": " 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 (bore VARCHAR, cyl VARCHAR, name VARCHAR)\n\n Question: What is the bore for a 9-cyl radial on a 9 AD?\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_9 (bore VARCHAR, name VARCHAR)
Question: What bore goes with an 18 AB?
Here is the SQLite query to answer to the question: What bore goes with an 18 AB?:
```
... | Your SQLite query looks good for retrieving the bore associated with "18 AB." However, let's ensure that the case sensitivity matches the requirement, since SQL queries can be case-sensitive depending on the collation settings, and "AB" is different from "ab". Here’s the refined query to specifically handle both cases:... | 41,293 | [
{
"from": "human",
"value": " 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 (bore VARCHAR, name VARCHAR)\n\n Question: What bore goes with an 18 AB?\n\nHere is the SQLite query to answer to the... | |
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, notes VARCHAR)
Question: Tell me the venue for notes of 10.93 secs
Here is the SQLite query to answer to the question: Tell me the venue fo... | Here is the SQLite query to answer the question: Tell me the venue for notes of 10.93 secs:
```
SELECT venue FROM table_name_45 WHERE notes = "10.93 secs";
``` | 41,294 | [
{
"from": "human",
"value": " 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, notes VARCHAR)\n\n Question: Tell me the venue for notes of 10.93 secs\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_81 (venue VARCHAR, year INTEGER)
Question: Tell me the venue for year less than 2003
Here is the SQLite query to answer to the question: Tell me the venue for... | Here is the SQLite query to answer the question about the venue for years less than 2003:
```
SELECT venue FROM table_name_81 WHERE year < 2003
``` | 41,295 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, year INTEGER)\n\n Question: Tell me the venue for year less than 2003\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_56 (points INTEGER, team_chassis VARCHAR)
Question: What is the total number of points team Alfa Romeo 184T won?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the total number of points team Alfa Romeo 184T won:
```
SELECT SUM(points) FROM table_name_56 WHERE team_chassis = "alfa romeo 184t";
``` | 41,296 | [
{
"from": "human",
"value": " 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 (points INTEGER, team_chassis VARCHAR)\n\n Question: What is the total number of points team Alfa Romeo 184T won?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (engine VARCHAR, year INTEGER)
Question: What engine was used after 1984?
Here is the SQLite query to answer to the question: What engine was used after 19... | Here is the SQLite query to answer the question about what engine was used after 1984:
```
SELECT engine FROM table_name_87 WHERE year > 1984
``` | 41,297 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (engine VARCHAR, year INTEGER)\n\n Question: What engine was used after 1984?\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_72 (year VARCHAR, points INTEGER)
Question: In which year were the points more than 0?
Here is the SQLite query to answer to the question: In which year were ... | Your SQLite query to find the years in which the points are more than 0 is correct. Here it is wrapped in the requested format:
```
SELECT year FROM table_name_72 WHERE points > 0;
``` | 41,298 | [
{
"from": "human",
"value": " 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 (year VARCHAR, points INTEGER)\n\n Question: In which year were the points more than 0?\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_22 (tyres VARCHAR, year INTEGER)
Question: What were the Tyres after 1984?
Here is the SQLite query to answer to the question: What were the Tyres after 1984?... | Here is the SQLite query to answer the question "What were the Tyres after 1984?":
```
SELECT tyres FROM table_name_22 WHERE year > 1984
``` | 41,299 | [
{
"from": "human",
"value": " 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 (tyres VARCHAR, year INTEGER)\n\n Question: What were the Tyres after 1984?\n\nHere is the SQLite query to answer to... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.