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_206359_1 (b_shares VARCHAR, shareholder_name VARCHAR)
Question: How many different numbers of B shares does Handelsbanken fonder have?
Here is the SQLite query to ... | The SQLite query provided needs a slight modification to correctly count the distinct numbers of B shares held by Handelsbanken fonder. You should use the `COUNT(DISTINCT b_shares)` function to count the different values. Here is the corrected version of your query:
```
SELECT COUNT(DISTINCT b_shares) FROM table_20635... | 34,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_206359_1 (b_shares VARCHAR, shareholder_name VARCHAR)\n\n Question: How many different numbers of B shares does Handelsbanke... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2066296_5 (green__sw_ INTEGER, interior_roof VARCHAR)
Question: What's the green (SW) of the model with charcoal/white interior/roof?
Here is the SQLite query to a... | Here is the SQLite query to answer the question about the green (SW) of the model with a charcoal/white interior/roof:
```sql
SELECT green__sw_ FROM table_2066296_5 WHERE interior_roof = 'Charcoal/white';
```
This query selects the `green__sw_` values from the table where the `interior_roof` matches 'Charcoal/white'... | 34,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_2066296_5 (green__sw_ INTEGER, interior_roof VARCHAR)\n\n Question: What's the green (SW) of the model with charcoal/white i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2066296_5 (red__e8_ VARCHAR, interior_roof VARCHAR)
Question: How many different results for red (e8) does the model with parchment/saddle interior/roof have?
Here... | To count the different results for `red__e8_` for the models with the specified interior/roof of "Parchment/saddle", you should use the `COUNT(DISTINCT ...)` function in your SQL query. Here’s the corrected query:
```
SELECT COUNT(DISTINCT red__e8_) FROM table_2066296_5 WHERE interior_roof = "Parchment/saddle";
``` | 34,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_2066296_5 (red__e8_ VARCHAR, interior_roof VARCHAR)\n\n Question: How many different results for red (e8) does the model wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2066296_5 (totals VARCHAR, interior_roof VARCHAR)
Question: How many different total results are there for the model with parchment/black interior/roof?
Here is th... | Your provided SQLite query partially answers the question, but it doesn't count the distinct total results. To find the number of different total results for the specified interior/roof combination, you should use the `COUNT(DISTINCT totals)` function. Here’s the corrected version of the query:
```sql
SELECT COUNT(DIS... | 34,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_2066296_5 (totals VARCHAR, interior_roof VARCHAR)\n\n Question: How many different total results are there for the model wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20649850_1 (college VARCHAR, player VARCHAR)
Question: Where did aaron wagner go to college
Here is the SQLite query to answer to the question: Where did aaron wag... | Here is the SQLite query to answer the question: Where did Aaron Wagner go to college:
```
SELECT college FROM table_20649850_1 WHERE player = "Aaron Wagner";
``` | 34,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_20649850_1 (college VARCHAR, player VARCHAR)\n\n Question: Where did aaron wagner go to college\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_20649850_1 (college VARCHAR, position VARCHAR)
Question: Where did the ol go to college?
Here is the SQLite query to answer to the question: Where did the ol go to... | Here is the SQLite query to answer the question: Where did the OL go to college?:
```
SELECT college FROM table_20649850_1 WHERE position = "OL";
``` | 34,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_20649850_1 (college VARCHAR, position VARCHAR)\n\n Question: Where did the ol go to college?\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_20649850_1 (pick__number INTEGER, college VARCHAR)
Question: Name the number for new mexico
Here is the SQLite query to answer to the question: Name the number for... | Here is the SQLite query to answer the question "Name the number for New Mexico":
```
SELECT MIN(pick__number) FROM table_20649850_1 WHERE college = "New Mexico"
``` | 34,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_20649850_1 (pick__number INTEGER, college VARCHAR)\n\n Question: Name the number for new mexico\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_20649850_1 (pick__number VARCHAR, position VARCHAR)
Question: Name the number for db
Here is the SQLite query to answer to the question: Name the number for db:
``... | Here is the SQLite query to answer the question "Name the number for db":
```
SELECT COUNT(pick__number) FROM table_20649850_1 WHERE position = 'DB';
``` | 34,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_20649850_1 (pick__number VARCHAR, position VARCHAR)\n\n Question: Name the number for db\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_20649850_1 (player VARCHAR, position VARCHAR)
Question: Name the player for ol
Here is the SQLite query to answer to the question: Name the player for ol:
```
SELE... | Here is the SQLite query to answer the question: Name the player for OL:
```
SELECT player FROM table_20649850_1 WHERE position = "OL";
``` | 34,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_20649850_1 (player VARCHAR, position VARCHAR)\n\n Question: Name the player for ol\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_20649850_1 (pick__number VARCHAR, position VARCHAR)
Question: Name the number for dl
Here is the SQLite query to answer to the question: Name the number for dl:
``... | Here is the SQLite query to answer the question "Name the number for dl":
```
SELECT pick__number FROM table_20649850_1 WHERE position = "DL";
``` | 34,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_20649850_1 (pick__number VARCHAR, position VARCHAR)\n\n Question: Name the number for dl\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_20667854_1 (company VARCHAR, free_float VARCHAR)
Question: Which companies have a free float of 0.2726?
Here is the SQLite query to answer to the question: Which c... | Here's the SQLite query to find companies with a free float of 0.2726:
```
SELECT company FROM table_20667854_1 WHERE free_float = "0.2726"
``` | 34,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_20667854_1 (company VARCHAR, free_float VARCHAR)\n\n Question: Which companies have a free float of 0.2726?\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_20667854_1 (bse_code VARCHAR, free_float VARCHAR)
Question: What is every BSE code for a free float of 0.2726?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about every BSE code for a free float of 0.2726:
```
SELECT bse_code FROM table_20667854_1 WHERE free_float = '0.2726';
``` | 34,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_20667854_1 (bse_code VARCHAR, free_float VARCHAR)\n\n Question: What is every BSE code for a free float of 0.2726?\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_20667854_1 (gics_sector VARCHAR, free_float VARCHAR)
Question: What is every GICS sector for free float of 0.3180?
Here is the SQLite query to answer to the questi... | Here's the SQLite query to answer the question regarding every GICS sector for free float of 0.3180:
```
SELECT gics_sector FROM table_20667854_1 WHERE free_float = "0.3180";
``` | 34,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_20667854_1 (gics_sector VARCHAR, free_float VARCHAR)\n\n Question: What is every GICS sector for free float of 0.3180?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20667854_1 (company VARCHAR, index_weighting___percentage VARCHAR, city VARCHAR)
Question: What is every company with an index weighting % of 1 and the city of Dimi... | Here is the SQLite query to answer the question regarding companies with an index weighting of 1% located in Dimitrovgrad:
```
SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = "1" AND city = "Dimitrovgrad";
``` | 34,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_20667854_1 (company VARCHAR, index_weighting___percentage VARCHAR, city VARCHAR)\n\n Question: What is every company with an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20667854_1 (gics_sector VARCHAR, free_float VARCHAR)
Question: How many GICS sectors have a free float of 0.2391?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question of how many GICS sectors have a free float of 0.2391:
```
SELECT COUNT(gics_sector) FROM table_20667854_1 WHERE free_float = '0.2391';
``` | 34,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_20667854_1 (gics_sector VARCHAR, free_float VARCHAR)\n\n Question: How many GICS sectors have a free float of 0.2391?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20667854_1 (free_float VARCHAR, bse_code VARCHAR)
Question: How many values of free float for the BSE code of 4EH?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the number of values of free float for the BSE code of 4EH:
```
SELECT COUNT(free_float) FROM table_20667854_1 WHERE bse_code = '4EH';
``` | 34,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_20667854_1 (free_float VARCHAR, bse_code VARCHAR)\n\n Question: How many values of free float for the BSE code of 4EH?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, undecided VARCHAR)
Question: How many polls taken on different dates show an undecided percentage of 25%?
Here is the SQL... | Your query looks correct for counting the number of polls where the undecided percentage is exactly 25%. However, it's important to ensure that the `undecided` column contains the percentage in string format with a `%` sign and that you're accurately counting distinct dates if that's the goal. If you want to count dist... | 34,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_20683381_2 (date_of_opinion_poll VARCHAR, undecided VARCHAR)\n\n Question: How many polls taken on different dates show an u... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, conductor VARCHAR)
Question: When was Quantum Research's poll conducted?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question: When was Quantum Research's poll conducted?:
```
SELECT date_of_opinion_poll FROM table_20683381_2 WHERE conductor = "Quantum Research"
``` | 34,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_20683381_2 (date_of_opinion_poll VARCHAR, conductor VARCHAR)\n\n Question: When was Quantum Research's poll conducted?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20683381_2 (conductor VARCHAR, undecided VARCHAR, sample_size VARCHAR)
Question: Who conducted the poll with sample size of 2000 that shows 18% undecided?
Here is ... | Here is the corrected SQLite query to answer the question regarding who conducted the poll with a sample size of 2000 that shows 18% undecided:
```
SELECT conductor FROM table_20683381_2 WHERE undecided = '18%' AND sample_size = '2000';
```
Please note that the `sample_size` is treated as a VARCHAR in the schema, so... | 34,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_20683381_2 (conductor VARCHAR, undecided VARCHAR, sample_size VARCHAR)\n\n Question: Who conducted the poll with sample size... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, country VARCHAR)
Question: How tall is the contestant from Ecuador?
Here is the SQLite query to answer to the question: How tall i... | Here is the SQLite query to answer the question: How tall is the contestant from Ecuador?:
```
SELECT height__ft_ FROM table_20669355_2 WHERE country = "Ecuador"
``` | 34,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_20669355_2 (height__ft_ VARCHAR, country VARCHAR)\n\n Question: How tall is the contestant from Ecuador?\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_20669355_2 (height__ft_ VARCHAR, country VARCHAR)
Question: How tall is the contestant from Aruba?
Here is the SQLite query to answer to the question: How tall is ... | Here is the SQLite query to answer the question about the height of the contestant from Aruba:
```
SELECT height__ft_ FROM table_20669355_2 WHERE country = "Aruba"
``` | 34,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_20669355_2 (height__ft_ VARCHAR, country VARCHAR)\n\n Question: How tall is the contestant from Aruba?\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_20669355_2 (country VARCHAR, hometown VARCHAR)
Question: What country is the contestant from San Francisco de Yojoa from?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question "What country is the contestant from San Francisco de Yojoa from?":
```
SELECT country FROM table_20669355_2 WHERE hometown = "San Francisco de Yojoa";
``` | 34,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_20669355_2 (country VARCHAR, hometown VARCHAR)\n\n Question: What country is the contestant from San Francisco de Yojoa from... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, hometown VARCHAR)
Question: How many different heights are there for the contestants from Warsaw?
Here is the SQLite query to answ... | To count the number of different heights for contestants from Warsaw, you need to use the `DISTINCT` keyword in your query to ensure that you are counting unique heights. Here's the corrected SQLite query:
```sql
SELECT COUNT(DISTINCT height__ft_) AS unique_heights
FROM table_20669355_2
WHERE hometown = 'Warsaw';
``... | 34,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_20669355_2 (height__ft_ VARCHAR, hometown VARCHAR)\n\n Question: How many different heights are there for the contestants fr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20688030_1 (county VARCHAR, obama_percentage VARCHAR)
Question: What is the total of countys where Obama is popular by 35.44%?
Here is the SQLite query to answer t... | Your query is close, but it needs to ensure that the `obama_percentage` is being compared correctly, especially considering it is stored as a VARCHAR. You may want to convert the percentage to a numerical value to make the comparison more reliable. However, if the exact match with the percentage string is intended, you... | 34,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_20688030_1 (county VARCHAR, obama_percentage VARCHAR)\n\n Question: What is the total of countys where Obama is popular by 3... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20688030_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR)
Question: What are McCain's Percent when Obama has 36.47%?
Here is the SQLite query to answer to t... | Your SQLite query looks almost correct. However, the percentage value should not include the '%' sign if the column is stored as a numeric value (as VARCHAR may hold it as a string but typically you would avoid including the '%' in the comparison). Assuming that `obama_percentage` is indeed stored as VARCHAR in percent... | 34,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_20688030_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR)\n\n Question: What are McCain's Percent when Obama has 36.4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20688030_1 (mccain_number VARCHAR, obama_percentage VARCHAR)
Question: What is McCains percent when Obamas is 39.13%
Here is the SQLite query to answer to the ques... | To retrieve McCain's percent when Obama's percent is 39.13%, you need to select the corresponding value from the `mccain_number` column for that specific `obama_percentage`. The query you provided counts the entries that meet the condition, but if you want to get the actual McCain percentage, you should use the followi... | 34,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_20688030_1 (mccain_number VARCHAR, obama_percentage VARCHAR)\n\n Question: What is McCains percent when Obamas is 39.13%\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20688030_1 (obama_number INTEGER, county VARCHAR)
Question: What is the maximum Obama supporters in Wayne county?
Here is the SQLite query to answer to the questio... | Your provided SQLite query to find the maximum number of Obama supporters in Wayne county is correct. Here it is wrapped properly:
```
SELECT MAX(obama_number) FROM table_20688030_1 WHERE county = "Wayne";
``` | 34,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_20688030_1 (obama_number INTEGER, county VARCHAR)\n\n Question: What is the maximum Obama supporters in Wayne county?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2068761_1 (population__may_1 VARCHAR, _2000_ VARCHAR, barangay VARCHAR)
Question: Name th epopulation may for general terrero
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the population for General Terrero:
```
SELECT population__may_1 FROM table_2068761_1 WHERE barangay = "General Terrero"
``` | 34,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_2068761_1 (population__may_1 VARCHAR, _2000_ VARCHAR, barangay VARCHAR)\n\n Question: Name th epopulation may for general te... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20704243_3 (season__number VARCHAR, series__number VARCHAR)
Question: What is the season number for Series #23, the Runway Job?
Here is the SQLite query to answer ... | Here's the SQLite query to answer the question regarding the season number for Series #23, the Runway Job:
```
SELECT season__number FROM table_20704243_3 WHERE series__number = '23';
```
Please note that the `series__number` should be treated as a string, hence it is enclosed in single quotes in the query. | 34,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_20704243_3 (season__number VARCHAR, series__number VARCHAR)\n\n Question: What is the season number for Series #23, the Runw... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20704243_3 (series__number INTEGER, directed_by VARCHAR)
Question: What series was directed by Mark Roskin?
Here is the SQLite query to answer to the question: Wha... | Your query is correct in syntax for finding the minimum series number directed by Mark Roskin, but it will only return the minimum series number and not the series itself. If you want to retrieve the series number(s) directed by Mark Roskin, you may want to select the `series__number` directly.
Here is a more appropri... | 34,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_20704243_3 (series__number INTEGER, directed_by VARCHAR)\n\n Question: What series was directed by Mark Roskin?\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_20704243_3 (written_by VARCHAR, directed_by VARCHAR)
Question: How many were written by Peter Winther?
Here is the SQLite query to answer to the question: How many... | It seems there is a small mistake in your query. The condition in the WHERE clause should be checking for `written_by = "Peter Winther"` since you want to count how many entries were written by Peter Winther, not directed by him. Here is the corrected query:
```sql
SELECT COUNT(written_by) FROM table_20704243_3 WHERE ... | 34,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_20704243_3 (written_by VARCHAR, directed_by VARCHAR)\n\n Question: How many were written by Peter Winther?\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_20704243_3 (directed_by VARCHAR, season__number VARCHAR)
Question: How many directors were in Season 2?
Here is the SQLite query to answer to the question: How man... | Here is the corrected SQLite query to answer the question of how many directors were in Season 2:
```sql
SELECT COUNT(DISTINCT directed_by) FROM table_20704243_3 WHERE season__number = '2';
```
This query counts the distinct directors in Season 2, ensuring that each director is only counted once. Also, note that '2' ... | 34,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_20704243_3 (directed_by VARCHAR, season__number VARCHAR)\n\n Question: How many directors were in Season 2?\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_20704243_4 (original_air_date VARCHAR, written_by VARCHAR)
Question: When was the episode written by Albert Kim aired for the first time?
Here is the SQLite query ... | Here is the corrected SQLite query to find out when the episode written by Albert Kim aired for the first time:
```
SELECT MIN(original_air_date) FROM table_20704243_4 WHERE written_by = "Albert Kim"
```
This query will return the earliest air date of the episodes written by Albert Kim. | 34,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_20704243_4 (original_air_date VARCHAR, written_by VARCHAR)\n\n Question: When was the episode written by Albert Kim aired fo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20704243_5 (series__number VARCHAR, written_by VARCHAR)
Question: Name the series number for m. scott veach & rebecca kirsch
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question:
```
SELECT series__number FROM table_20704243_5 WHERE written_by = "M. Scott Veach & Rebecca Kirsch";
``` | 34,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_20704243_5 (series__number VARCHAR, written_by VARCHAR)\n\n Question: Name the series number for m. scott veach & rebecca k... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20704243_5 (us_viewers__in_millions_ VARCHAR, series__number VARCHAR)
Question: Name the number of viewers for series number 50
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the number of viewers for series number 50:
```
SELECT us_viewers__in_millions_ FROM table_20704243_5 WHERE series__number = '50'
```
Note that I enclosed the series number in quotes because it is defined as a `VARCHAR` in the schema. | 34,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_20704243_5 (us_viewers__in_millions_ VARCHAR, series__number VARCHAR)\n\n Question: Name the number of viewers for series nu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20704243_5 (directed_by VARCHAR, season__number VARCHAR)
Question: Name who directed season 1
Here is the SQLite query to answer to the question: Name who directed... | Here is the SQLite query to answer the question regarding who directed season 1:
```sql
SELECT directed_by FROM table_20704243_5 WHERE season__number = '1'
``` | 34,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_20704243_5 (directed_by VARCHAR, season__number VARCHAR)\n\n Question: Name who directed season 1\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_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, beam_height__mm_ VARCHAR)
Question: What is the moment of intertia in torsion (j) Cm4) for the beam hei... | To retrieve the moment of inertia in torsion (j) in Cm⁴ for the specified beam height of 120 mm, you should select the relevant column instead of counting it. Here’s how you can write the query:
```sql
SELECT moment_of_inertia_in_torsion__j___cm_4__ FROM table_2071644_1 WHERE beam_height__mm_ = '120'
```
Note that th... | 34,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_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, beam_height__mm_ VARCHAR)\n\n Question: What is the moment of i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2071644_1 (cross_section_area__cm_2__ VARCHAR, moment_of_inertia_in_torsion__j___cm_4__ VARCHAR)
Question: What is the cross section area (cm 2) for the moment of i... | Here's the SQLite query to find the cross section area for the specified moment of inertia in torsion:
```
SELECT cross_section_area__cm_2__ FROM table_2071644_1 WHERE moment_of_inertia_in_torsion__j___cm_4__ = '2.54';
``` | 34,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_2071644_1 (cross_section_area__cm_2__ VARCHAR, moment_of_inertia_in_torsion__j___cm_4__ VARCHAR)\n\n Question: What is the c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2071644_1 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR)
Question: What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg
Here is the SQLite query ... | The SQLite query you provided is almost correct, but it seems there's a typo in the weight condition ("6.0?Wg"). It's important to match the exact value in the database. If you're looking for a specific value like "6.0" without the "?Wg" suffix, your current query is fine. However, if the actual weight in the database ... | 34,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_2071644_1 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR)\n\n Question: What is the flange thickness (mm) for the wei... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, web_thickness__mm_ VARCHAR)
Question: What is the number for the moment of intertia in torsion (j) (cm ... | Your query appears to count the number of entries with a web thickness of 4.7 mm, but it doesn't directly retrieve the moment of inertia in torsion (j) value corresponding to that web thickness.
If you want to retrieve the moment of inertia value for that specific web thickness, you should modify your SQL query to se... | 34,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_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, web_thickness__mm_ VARCHAR)\n\n Question: What is the number fo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2071644_1 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR)
Question: What is the flange thickness (mm) for the weight (kg/m) 10.4?
Here is the SQLite query t... | Here is the SQLite query to answer the question regarding the flange thickness for the specified weight:
```
SELECT flange_thickness__mm_ FROM table_2071644_1 WHERE weight__kg_m_ = "10.4"
``` | 34,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_2071644_1 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR)\n\n Question: What is the flange thickness (mm) for the wei... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2071644_1 (flange_width__mm_ VARCHAR, cross_section_area__cm_2__ VARCHAR)
Question: What is the flange width (mm) for cross section area (cm 2) 16.4?
Here is the S... | The query you provided counts the number of flange widths for a specific cross-section area. However, to retrieve the actual flange width corresponding to the cross-section area of 16.4 cm², you need to select the `flange_width__mm_` instead of counting them.
Here is the corrected SQLite query to obtain the flange wid... | 34,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_2071644_1 (flange_width__mm_ VARCHAR, cross_section_area__cm_2__ VARCHAR)\n\n Question: What is the flange width (mm) for cr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20711545_1 (lyon__32_ VARCHAR, seed VARCHAR)
Question: In what round was lyon (32) a 5 seed?
Here is the SQLite query to answer to the question: In what round was ... | To answer the question "In what round was lyon (32) a 5 seed?", you need to select the round information corresponding to the specified conditions. Assuming that the "round" is represented by the `lyon__32_` column in your table, the correct SQLite query should filter for the specific seed and the specific team. Here i... | 34,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_20711545_1 (lyon__32_ VARCHAR, seed VARCHAR)\n\n Question: In what round was lyon (32) a 5 seed?\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_20711545_1 (marseille__32_draw_ VARCHAR, seed VARCHAR)
Question: How many items were recorded marseille (32 draw) was a 2 seed?
Here is the SQLite query to answer ... | Here is the corrected SQLite query to answer the question regarding how many items were recorded where marseille (32 draw) was a 2 seed:
```sql
SELECT COUNT(*) FROM table_20711545_1 WHERE seed = '2' AND marseille__32_draw_ IS NOT NULL;
```
Note: It's important to check if `seed` is treated as a string or an integer ... | 34,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_20711545_1 (marseille__32_draw_ VARCHAR, seed VARCHAR)\n\n Question: How many items were recorded marseille (32 draw) was a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20711545_1 (seed INTEGER, lyon__32_ VARCHAR)
Question: What is the seed for lyon (32) was DNQ?
Here is the SQLite query to answer to the question: What is the seed... | Certainly! Here’s the SQLite query wrapped in code formatting:
```
SELECT MAX(seed) FROM table_20711545_1 WHERE lyon__32_ = "DNQ"
``` | 34,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_20711545_1 (seed INTEGER, lyon__32_ VARCHAR)\n\n Question: What is the seed for lyon (32) was DNQ?\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_20711545_1 (paris__48___byes_ VARCHAR, seed VARCHAR)
Question: What was the result for Paris(48-byes) for 3 seed?
Here is the SQLite query to answer to the questio... | Here is the corrected SQLite query to answer your question based on the provided schema:
```
SELECT paris__48___byes_ FROM table_20711545_1 WHERE seed = '3'
```
Make sure that the data type for `seed` is compatible (VARCHAR) as it is stored as a string in the database, hence the seed value should be enclosed in quot... | 34,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_20711545_1 (paris__48___byes_ VARCHAR, seed VARCHAR)\n\n Question: What was the result for Paris(48-byes) for 3 seed?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20722805_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR)
Question: What was McCain's percentage when Obama had 64.39% of the vote?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding McCain's percentage when Obama had 64.39% of the vote:
```
SELECT mccain_percentage FROM table_20722805_1 WHERE obama_percentage = "64.39%"
``` | 34,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_20722805_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR)\n\n Question: What was McCain's percentage when Obama had 6... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20722805_1 (mccain_number INTEGER, obama_percentage VARCHAR)
Question: What was McCain's vote when Obama had 48.35%
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question: What was McCain's vote when Obama had 48.35%:
```
SELECT mccain_number FROM table_20722805_1 WHERE obama_percentage = "48.35%"
``` | 34,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_20722805_1 (mccain_number INTEGER, obama_percentage VARCHAR)\n\n Question: What was McCain's vote when Obama had 48.35%\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20722805_1 (obama_number INTEGER, obama_percentage VARCHAR)
Question: How many votes did Obama have at 32.12%
Here is the SQLite query to answer to the question: H... | Here is the SQLite query to answer the question regarding how many votes Obama had at 32.12%:
```
SELECT obama_number FROM table_20722805_1 WHERE obama_percentage = '32.12%'
``` | 34,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_20722805_1 (obama_number INTEGER, obama_percentage VARCHAR)\n\n Question: How many votes did Obama have at 32.12%\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_20722805_1 (parish VARCHAR, mccain_percentage VARCHAR)
Question: What parish did McCain have 45.37% of the votes?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about the parish where McCain had 45.37% of the votes:
```
SELECT parish FROM table_20722805_1 WHERE mccain_percentage = "45.37%";
``` | 34,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_20722805_1 (parish VARCHAR, mccain_percentage VARCHAR)\n\n Question: What parish did McCain have 45.37% of the votes?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20722805_1 (mccain_number INTEGER, parish VARCHAR)
Question: What is the total number of votes McCain had in Webster?
Here is the SQLite query to answer to the que... | Your query is almost correct, but to calculate the total number of votes, you should use the `SUM` function instead of `MAX`. Here is the corrected SQLite query:
```
SELECT SUM(mccain_number) FROM table_20722805_1 WHERE parish = "Webster"
``` | 34,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_20722805_1 (mccain_number INTEGER, parish VARCHAR)\n\n Question: What is the total number of votes McCain had in Webster?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20726262_2 (originalairdate VARCHAR, production_code VARCHAR)
Question: What was the original air date for the episode with production code 1wab06?
Here is the SQL... | Here is the SQLite query to answer the question regarding the original air date for the episode with production code 1wab06:
```
SELECT originalairdate FROM table_20726262_2 WHERE production_code = "1wab06";
``` | 34,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_20726262_2 (originalairdate VARCHAR, production_code VARCHAR)\n\n Question: What was the original air date for the episode w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20726262_2 (title VARCHAR, directedby VARCHAR)
Question: What title episode did Paris Barclay direct?
Here is the SQLite query to answer to the question: What titl... | Here is the SQLite query to answer the question about what title episode Paris Barclay directed:
```
SELECT title FROM table_20726262_2 WHERE directedby = "Paris Barclay";
``` | 34,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_20726262_2 (title VARCHAR, directedby VARCHAR)\n\n Question: What title episode did Paris Barclay direct?\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_20726262_2 (production_code VARCHAR, no_in_series VARCHAR)
Question: What was the production code for episode #1?
Here is the SQLite query to answer to the questio... | Here is the correct SQLite query to answer the question regarding the production code for episode #1:
```
SELECT production_code FROM table_20726262_2 WHERE no_in_series = '1'
```
(Note: The value for `no_in_series` should be enclosed in single quotes because it is indicated as a VARCHAR type.) | 34,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_20726262_2 (production_code VARCHAR, no_in_series VARCHAR)\n\n Question: What was the production code for episode #1?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20726262_2 (no_in_series INTEGER, writtenby VARCHAR)
Question: What number episode was written by kurt sutter & jack logiudice?
Here is the SQLite query to answer ... | Your provided SQL query correctly addresses the question of finding the maximum episode number written by Kurt Sutter and Jack Logiudice, assuming they are represented as a single string in the `writtenby` field. Here’s the query wrapped in code format:
```sql
SELECT MAX(no_in_series) FROM table_20726262_2 WHERE writt... | 34,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_20726262_2 (no_in_series INTEGER, writtenby VARCHAR)\n\n Question: What number episode was written by kurt sutter & jack log... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20726262_3 (production_code VARCHAR, usviewers__million_ VARCHAR)
Question: What was the production code for the episode with 3.38 million viewers?
Here is the SQL... | Here is the SQLite query to answer the question about the production code for the episode with 3.38 million viewers:
```
SELECT production_code FROM table_20726262_3 WHERE usviewers__million_ = "3.38"
``` | 34,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_20726262_3 (production_code VARCHAR, usviewers__million_ VARCHAR)\n\n Question: What was the production code for the episode... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20726262_3 (no_in_season VARCHAR, production_code VARCHAR)
Question: What season number did production code 2wab12?
Here is the SQLite query to answer to the ques... | Your SQLite query is almost correct, but keep in mind that the production code may be case-sensitive depending on how it is stored in the database. If you want to ensure case insensitivity, you can convert both the column and the search string to the same case using the `UPPER` or `LOWER` function.
Here’s the refined ... | 34,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_20726262_3 (no_in_season VARCHAR, production_code VARCHAR)\n\n Question: What season number did production code 2wab12?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20726262_3 (no_in_season VARCHAR, writtenby VARCHAR)
Question: How many numbers in the season were written by Brett Conrad & Liz Sagal?
Here is the SQLite query t... | Here is the SQLite query to answer the question about how many numbers in the season were written by Brett Conrad & Liz Sagal:
```
SELECT COUNT(no_in_season) FROM table_20726262_3 WHERE writtenby IN ("Brett Conrad", "Liz Sagal");
```
This query counts the number of entries in the `no_in_season` column where the `wri... | 34,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_20726262_3 (no_in_season VARCHAR, writtenby VARCHAR)\n\n Question: How many numbers in the season were written by Brett Con... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20726262_4 (no_in_series INTEGER, production_code VARCHAR)
Question: what i the maximum number in the series where the production code is 3wab07?
Here is the SQLit... | Here is the corrected SQLite query to find the maximum number in the series where the production code is '3wab07':
```
SELECT MAX(no_in_series) FROM table_20726262_4 WHERE production_code = "3wab07";
```
Note: Make sure the production code matches the case used in your database, and it's good practice to use single ... | 34,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_20726262_4 (no_in_series INTEGER, production_code VARCHAR)\n\n Question: what i the maximum number in the series where the p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20726262_4 (no_in_season INTEGER, usviewers__million_ VARCHAR)
Question: what is the maximum number in the season wher the us viewers is 2.59?
Here is the SQLite q... | Here is the SQLite query to answer the question regarding the maximum number in the season where the US viewers is 2.59:
```
SELECT MAX(no_in_season) FROM table_20726262_4 WHERE usviewers__million_ = "2.59";
``` | 34,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_20726262_4 (no_in_season INTEGER, usviewers__million_ VARCHAR)\n\n Question: what is the maximum number in the season wher t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20726262_4 (writtenby VARCHAR, production_code VARCHAR)
Question: what is the written by and production code is 3wab03?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question:
```
SELECT writtenby FROM table_20726262_4 WHERE production_code = "3wab03";
``` | 34,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_20726262_4 (writtenby VARCHAR, production_code VARCHAR)\n\n Question: what is the written by and production code is 3wab03?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20728138_1 (seats_won VARCHAR, seats_contested VARCHAR)
Question: How many seats were won, when the seats contested was 48?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question:
```
SELECT seats_won FROM table_20728138_1 WHERE seats_contested = '48'
```
Please note that since `seats_won` and `seats_contested` are defined as `VARCHAR`, the value '48' should be treated as a string in the query. | 34,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_20728138_1 (seats_won VARCHAR, seats_contested VARCHAR)\n\n Question: How many seats were won, when the seats contested was ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20728138_1 (seats_contested VARCHAR, party VARCHAR)
Question: How many seats are contested for independents?
Here is the SQLite query to answer to the question: Ho... | To count the number of seats contested for independents, you should use the `SUM` function in your SQL query. Here's the corrected query:
```
SELECT SUM(seats_contested) AS total_seats_contested
FROM table_20728138_1
WHERE party = "Independents";
```
This query will sum up all the `seats_contested` values where the `... | 34,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_20728138_1 (seats_contested VARCHAR, party VARCHAR)\n\n Question: How many seats are contested for independents?\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_20728138_1 (_percentage_in_seats_contested VARCHAR, party VARCHAR)
Question: What is the percentage seats contested for the revolutionary socialist party?
Here is ... | Here is the SQLite query to find the percentage of seats contested for the Revolutionary Socialist party:
```
SELECT _percentage_in_seats_contested FROM table_20728138_1 WHERE party = "Revolutionary Socialist party"
``` | 34,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_20728138_1 (_percentage_in_seats_contested VARCHAR, party VARCHAR)\n\n Question: What is the percentage seats contested for ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20728138_1 (_percentage_in_seats_contested VARCHAR)
Question: What is the 2003 seat number, when seats contested was at 38.23%
Here is the SQLite query to answer t... | It looks like there are a couple of issues in the provided SQL query. First, the aggregate function `MIN` is incorrectly used with an alias in the SELECT clause. Second, if you're trying to find a specific seat number when the percentage of contested seats is given, the query syntax should be adjusted.
Assuming that ... | 34,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_20728138_1 (_percentage_in_seats_contested VARCHAR)\n\n Question: What is the 2003 seat number, when seats contested was at ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20728138_1 (seats_forfeited VARCHAR, party VARCHAR)
Question: How many seats were forfeited in the revolutionary socialist party?
Here is the SQLite query to answe... | Your SQLite query is almost correct, but if you want to count the total number of seats forfeited, you should be summing up the values in the `seats_forfeited` column instead of counting the rows. Assuming that `seats_forfeited` contains numeric data stored as VARCHAR, you would convert it to a numeric type for summati... | 34,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_20728138_1 (seats_forfeited VARCHAR, party VARCHAR)\n\n Question: How many seats were forfeited in the revolutionary sociali... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20745685_1 (opponent VARCHAR, attendance VARCHAR)
Question: Who was the opponent when the attendance was exactly 16642?
Here is the SQLite query to answer to the q... | It seems there is a small issue in your SQL query regarding how the `attendance` value should be compared. Since the `attendance` column is defined as `VARCHAR`, the value `16642` should be enclosed in quotes.
Here is the corrected SQLite query:
```
SELECT opponent FROM table_20745685_1 WHERE attendance = '16642'
``... | 34,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_20745685_1 (opponent VARCHAR, attendance VARCHAR)\n\n Question: Who was the opponent when the attendance was exactly 16642?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20745685_1 (score VARCHAR, _number VARCHAR)
Question: What is the score for game #7?
Here is the SQLite query to answer to the question: What is the score for game... | Here is the SQLite query to answer the question about the score for game #7:
```
SELECT score FROM table_20745685_1 WHERE _number = '7'
``` | 34,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_20745685_1 (score VARCHAR, _number VARCHAR)\n\n Question: What is the score for game #7?\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_20745685_1 (opponent VARCHAR, date VARCHAR)
Question: Who was the opponent on February 28, 1991
Here is the SQLite query to answer to the question: Who was the opp... | Here is the SQLite query to answer the question: Who was the opponent on February 28, 1991:
```
SELECT opponent FROM table_20745685_1 WHERE date = "February 28, 1991"
``` | 34,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_20745685_1 (opponent VARCHAR, date VARCHAR)\n\n Question: Who was the opponent on February 28, 1991\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_20745444_1 (date VARCHAR, record VARCHAR)
Question: What was the date when the record was 1-0?
Here is the SQLite query to answer to the question: What was the dat... | Here is the SQLite query to answer the question regarding the date when the record was 1-0:
```
SELECT date FROM table_20745444_1 WHERE record = "1-0"
``` | 34,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_20745444_1 (date VARCHAR, record VARCHAR)\n\n Question: What was the date when the record was 1-0?\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_20745444_1 (tar_heels_points VARCHAR, result VARCHAR)
Question: How many results finished in a loss?
Here is the SQLite query to answer to the question: How many r... | Here is the SQLite query to answer the question: How many results finished in a loss?:
```
SELECT COUNT(*) FROM table_20745444_1 WHERE result = "Loss";
``` | 34,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_20745444_1 (tar_heels_points VARCHAR, result VARCHAR)\n\n Question: How many results finished in a loss?\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_20745444_1 (game INTEGER, opponent VARCHAR)
Question: How many games were against Furman?
Here is the SQLite query to answer to the question: How many games were a... | The provided query is not quite correct for counting the number of games against Furman. Instead of using `MAX(game)`, you should use the `COUNT()` function to get the total number of games. Here is the corrected SQLite query:
```
SELECT COUNT(*) FROM table_20745444_1 WHERE opponent = "Furman";
``` | 34,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_20745444_1 (game INTEGER, opponent VARCHAR)\n\n Question: How many games were against Furman?\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_20745444_1 (opponents VARCHAR, opponent VARCHAR)
Question: How many times were Duke the opponents?
Here is the SQLite query to answer to the question: How many tim... | Your query is almost correct, but it seems there's a mix-up in identifying the correct column. If you want to count how many times "Duke" was an opponent, you should be looking at the `opponent` column. Here's the corrected query:
```sql
SELECT COUNT(*) FROM table_20745444_1 WHERE opponents = "Duke";
```
This query c... | 34,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_20745444_1 (opponents VARCHAR, opponent VARCHAR)\n\n Question: How many times were Duke the opponents?\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_20745444_1 (opponents INTEGER, record VARCHAR)
Question: How many losses were there when the record was 4-0?
Here is the SQLite query to answer to the question: Ho... | The provided query is not correct for determining the number of losses when the record was 4-0. Instead, we need to consider the fact that a record of "4-0" means there were 4 wins and 0 losses. Therefore, to find out how many losses there were during this time, we need to understand what "losses" means in the context ... | 34,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_20745444_1 (opponents INTEGER, record VARCHAR)\n\n Question: How many losses were there when the record was 4-0?\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_20745754_1 (at_vs VARCHAR, _number VARCHAR)
Question: What was the game #7, at or versus (home or at)?
Here is the SQLite query to answer to the question: What was... | Here is the SQLite query to answer the question about game #7, at or versus (home or at):
```
SELECT at_vs FROM table_20745754_1 WHERE _number = "7";
``` | 34,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_20745754_1 (at_vs VARCHAR, _number VARCHAR)\n\n Question: What was the game #7, at or versus (home or at)?\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_20745754_1 (opponent VARCHAR, _number VARCHAR)
Question: Who did they play against in game 7?
Here is the SQLite query to answer to the question: Who did they play... | Your SQLite query to find out who they played against in game 7 is correctly structured. Here it is wrapped in code formatting:
```sql
SELECT opponent FROM table_20745754_1 WHERE _number = "7";
``` | 34,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_20745754_1 (opponent VARCHAR, _number VARCHAR)\n\n Question: Who did they play against in game 7?\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_20745754_1 (_number VARCHAR, attendance VARCHAR)
Question: What game number had an attendance of 2813?
Here is the SQLite query to answer to the question: What gam... | Your query looks mostly correct, but the `attendance` column is defined as a `VARCHAR`, which means the value should be wrapped in quotes to ensure proper comparison. Here’s the corrected SQLite query:
```
SELECT _number FROM table_20745754_1 WHERE attendance = '2813'
```
This query will retrieve the game number(s) ... | 34,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_20745754_1 (_number VARCHAR, attendance VARCHAR)\n\n Question: What game number had an attendance of 2813?\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_20746062_1 (date VARCHAR, game VARCHAR)
Question: What day did the play game number 9?
Here is the SQLite query to answer to the question: What day did the play ga... | Here is the corrected SQLite query to find out what day the game number 9 was played:
```sql
SELECT date FROM table_20746062_1 WHERE game = '9';
```
Make sure that the value '9' is treated as a string since the `game` column is of type VARCHAR. | 34,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_20746062_1 (date VARCHAR, game VARCHAR)\n\n Question: What day did the play game number 9?\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_20746062_1 (result VARCHAR, record VARCHAR)
Question: What was the result of the game when they were 2-1?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question regarding the result of the game when the record was 2-1:
```
SELECT result FROM table_20746062_1 WHERE record = "2-1"
``` | 34,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_20746062_1 (result VARCHAR, record VARCHAR)\n\n Question: What was the result of the game when they were 2-1?\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_20760407_1 (record VARCHAR, bruins_points VARCHAR)
Question: What was the record when the Bruins had 41 points?
Here is the SQLite query to answer to the question:... | It looks like you have a small typo in your SQL query. Since the `bruins_points` column is defined as `VARCHAR`, you need to treat the value `41` as a string. Here's the corrected version of your query:
```
SELECT record FROM table_20760407_1 WHERE bruins_points = '41'
```
This query will correctly return the `recor... | 34,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_20760407_1 (record VARCHAR, bruins_points VARCHAR)\n\n Question: What was the record when the Bruins had 41 points?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20760407_1 (date VARCHAR, game VARCHAR)
Question: What was the date for game 9?
Here is the SQLite query to answer to the question: What was the date for game 9?:
... | Here's the SQLite query to answer the question about the date for game 9, wrapped appropriately:
```
SELECT date FROM table_20760407_1 WHERE game = '9'
```
Note: Depending on how the `game` values are stored, you may need to ensure that the value `'9'` is treated as a string, as it is defined as VARCHAR in the schem... | 34,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_20760407_1 (date VARCHAR, game VARCHAR)\n\n Question: What was the date for game 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_20760407_1 (game INTEGER, bruins_points VARCHAR)
Question: What game did the Bruins have 56 points?
Here is the SQLite query to answer to the question: What game d... | The provided query has an issue because `bruins_points` is declared as a `VARCHAR` type, and you should compare it with a string. Additionally, using `MAX(game)` might not accurately reflect the game where the Bruins had 56 points unless you strictly need the highest game number.
If you want to simply find out which ... | 34,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_20760407_1 (game INTEGER, bruins_points VARCHAR)\n\n Question: What game did the Bruins have 56 points?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20760802_1 (played VARCHAR, lost VARCHAR, drawn VARCHAR)
Question: What is the total of played where lost equals 4 and drawn equals 1?
Here is the SQLite query to ... | To get the total of the "played" column where "lost" equals 4 and "drawn" equals 1, you'll need to use an aggregate function such as `SUM`. Here is the corrected query:
```
SELECT SUM(played) AS total_played FROM table_20760802_1 WHERE lost = "4" AND drawn = "1"
```
Make sure that the "played" column can be summed, w... | 34,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_20760802_1 (played VARCHAR, lost VARCHAR, drawn VARCHAR)\n\n Question: What is the total of played where lost equals 4 and d... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20760802_1 (drawn VARCHAR, club VARCHAR)
Question: How many drawn are there where the Club is new ross?
Here is the SQLite query to answer to the question: How man... | To count the number of drawn entries where the Club is "New Ross", you should use the `COUNT` function in your SQL query. Here’s the corrected version of the SQL query:
```
SELECT COUNT(drawn) FROM table_20760802_1 WHERE club = "New Ross";
``` | 34,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_20760802_1 (drawn VARCHAR, club VARCHAR)\n\n Question: How many drawn are there where the Club is new ross?\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_20760802_1 (drawn VARCHAR, points_against VARCHAR)
Question: How may drawn equal points against at 129?
Here is the SQLite query to answer to the question: How may... | Your SQLite query is correctly structured to retrieve the values of the `drawn` column where the `points_against` column is equal to "129". Here’s the query wrapped in code formatting:
```
SELECT drawn FROM table_20760802_1 WHERE points_against = "129";
```
This query will return all rows from the `table_20760802_1`... | 34,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_20760802_1 (drawn VARCHAR, points_against VARCHAR)\n\n Question: How may drawn equal points against at 129?\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_20760802_1 (points_difference VARCHAR, points_for VARCHAR)
Question: How many points differ from 134?
Here is the SQLite query to answer to the question: How many ... | To answer the question "How many points differ from 134?" based on the schema provided, you would likely want to calculate how many entries have a points difference different from 134. If we want to get the count of points that differ from 134, you could use the following query:
```sql
SELECT COUNT(*) FROM table_20760... | 34,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_20760802_1 (points_difference VARCHAR, points_for VARCHAR)\n\n Question: How many points differ from 134?\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_20760802_1 (points_difference VARCHAR, lost VARCHAR)
Question: How many of the points difference lost equal 10?
Here is the SQLite query to answer to the question:... | The query you provided checks for entries where the `lost` column equals `"10"` and selects the `points_difference` for those rows. However, to directly answer the question "How many of the points difference lost equal 10?", you need to count the number of rows where `lost` equals `"10"`. Here is the corrected query:
... | 34,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_20760802_1 (points_difference VARCHAR, lost VARCHAR)\n\n Question: How many of the points difference lost equal 10?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20760802_1 (played VARCHAR, won VARCHAR)
Question: How many teams that played won 0 games?
Here is the SQLite query to answer to the question: How many teams that ... | To count the number of teams that played and won 0 games, you need to modify your SQL query to use `COUNT(*)` and ensure you are grouping by the `played` column. Here is the corrected query:
```sql
SELECT COUNT(*) AS teams_with_zero_wins
FROM table_20760802_1
WHERE won = '0';
```
This will give you the total count o... | 34,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_20760802_1 (played VARCHAR, won VARCHAR)\n\n Question: How many teams that played won 0 games?\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_2076595_1 (location_s_ VARCHAR, control VARCHAR, type VARCHAR)
Question: What are the public schools with a master's university?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question regarding public schools with a master's university:
```
SELECT location_s_ FROM table_2076595_1 WHERE control = "Public" AND type = "Master's university"
``` | 34,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_2076595_1 (location_s_ VARCHAR, control VARCHAR, type VARCHAR)\n\n Question: What are the public schools with a master's uni... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2076595_1 (enrollment__2009_ INTEGER, location_s_ VARCHAR)
Question: What is the minimum enrollment for Plainfield?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question: What is the minimum enrollment for Plainfield?:
```
SELECT MIN(enrollment__2009_) FROM table_2076595_1 WHERE location_s_ = "Plainfield"
``` | 34,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_2076595_1 (enrollment__2009_ INTEGER, location_s_ VARCHAR)\n\n Question: What is the minimum enrollment for Plainfield?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2076595_1 (type VARCHAR, enrollment__2009_ VARCHAR)
Question: What type of school had an enrollment in 2009 of 224?
Here is the SQLite query to answer to the quest... | Your SQLite query has a slight issue regarding the data type of the `enrollment__2009_` column. It is defined as `VARCHAR`, so the value you need to search for (224) should be enclosed in quotes. Here's the corrected query:
```
SELECT type FROM table_2076595_1 WHERE enrollment__2009_ = '224'
``` | 34,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_2076595_1 (type VARCHAR, enrollment__2009_ VARCHAR)\n\n Question: What type of school had an enrollment in 2009 of 224?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2076595_1 (founded INTEGER, school VARCHAR)
Question: When was Southern Vermont College founded?
Here is the SQLite query to answer to the question: When was South... | Here is the SQLite query to answer the question: When was Southern Vermont College founded?:
```
SELECT founded FROM table_2076595_1 WHERE school = "Southern Vermont College"
``` | 34,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_2076595_1 (founded INTEGER, school VARCHAR)\n\n Question: When was Southern Vermont College founded?\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_2076595_1 (control VARCHAR, type VARCHAR)
Question: Is art school public or private?
Here is the SQLite query to answer to the question: Is art school public or pr... | Here is the SQLite query to answer the question: Is art school public or private?:
```
SELECT control FROM table_2076595_1 WHERE type = "Art school"
``` | 34,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_2076595_1 (control VARCHAR, type VARCHAR)\n\n Question: Is art school public or private?\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_2076595_1 (school VARCHAR, founded VARCHAR)
Question: What school was founded in 1791?
Here is the SQLite query to answer to the question: What school was founded ... | Here is the SQLite query to answer the question about which school was founded in 1791:
```
SELECT school FROM table_2076595_1 WHERE founded = '1791'
``` | 34,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_2076595_1 (school VARCHAR, founded VARCHAR)\n\n Question: What school was founded in 1791?\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_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR)
Question: Name the number of spring enrollment for sioux falls seminary
Here is the SQLite query to an... | Here is the SQLite query to answer the question regarding the number of spring enrollments for Sioux Falls Seminary:
```
SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = "Sioux Falls Seminary"
``` | 34,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_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR)\n\n Question: Name the number of spring enrollment for sioux fa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2076557_2 (accreditation VARCHAR, school VARCHAR)
Question: Name the accrediatation for southeast technical institute
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the accreditation for Southeast Technical Institute:
```sql
SELECT accreditation FROM table_2076557_2 WHERE school = "Southeast Technical Institute";
``` | 34,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_2076557_2 (accreditation VARCHAR, school VARCHAR)\n\n Question: Name the accrediatation for southeast technical institute\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2076557_2 (founded VARCHAR, location_s_ VARCHAR)
Question: Name the total number of founded for yankton
Here is the SQLite query to answer to the question: Name th... | Here is the SQLite query to answer the question regarding the total number of founded entries for Yankton:
```
SELECT COUNT(founded) FROM table_2076557_2 WHERE location_s_ = 'Yankton';
``` | 34,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_2076557_2 (founded VARCHAR, location_s_ VARCHAR)\n\n Question: Name the total number of founded for yankton\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_2077192_2 (italian VARCHAR, english VARCHAR)
Question: What is the Italian word for the English word "otter"?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question "What is the Italian word for the English word 'otter'?":
```
SELECT italian FROM table_2077192_2 WHERE english = "otter"
``` | 34,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_2077192_2 (italian VARCHAR, english VARCHAR)\n\n Question: What is the Italian word for the English word \"otter\"?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2077192_2 (french VARCHAR, central_southern_calabrian VARCHAR)
Question: How many French words does zinnapòtamu in Central-Southern Calabrian translate to?
Here is... | Here is the SQLite query to answer the question about how many French words the term "zinnapòtamu" translates to in Central-Southern Calabrian:
```
SELECT COUNT(french) FROM table_2077192_2 WHERE central_southern_calabrian = "zinnapòtamu"
``` | 34,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_2077192_2 (french VARCHAR, central_southern_calabrian VARCHAR)\n\n Question: How many French words does zinnapòtamu in Centr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2077192_2 (french VARCHAR, english VARCHAR)
Question: What is the French translation for the English word "orange"?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to find the French translation for the English word "orange":
```sql
SELECT french FROM table_2077192_2 WHERE english = "orange";
``` | 34,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_2077192_2 (french VARCHAR, english VARCHAR)\n\n Question: What is the French translation for the English word \"orange\"?\n\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.