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_15909409_2 (total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)
Question: In Pakistan, what was the total freshwat... | Here is the SQLite query to answer the question regarding total freshwater withdrawal in Pakistan where the agricultural use is "1029(96%)":
```sql
SELECT total_freshwater_withdrawal__km_3__yr_
FROM table_15909409_2
WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1029(96%)"
``` | 31,100 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15909409_2 (total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)\n\n Questi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15909409_2 (country VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)
Question: What was the country in which the agricultural use (m 3 /p/yr)(in %) wa... | Here is the SQLite query to answer your question about the country with the specified agricultural use percentage:
```
SELECT country FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = '794(86%)'
``` | 31,101 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15909409_2 (country VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)\n\n Question: What was the country in whi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15909409_2 (country VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR)
Question: In how many countries was the total freshwater withdrawal (km 3 /yr) 169.39?
... | Here is the SQLite query to answer the question regarding the total freshwater withdrawal of 169.39 (km³/yr):
```
SELECT COUNT(country) FROM table_15909409_2 WHERE total_freshwater_withdrawal__km_3__yr_ = "169.39"
``` | 31,102 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15909409_2 (country VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR)\n\n Question: In how many countries was the tot... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1590652_4 (date VARCHAR, winning_score VARCHAR)
Question: Name the date of winning score being 67-67-63=197
Here is the SQLite query to answer to the question: Nam... | The provided SQL query needs to be corrected to properly check for the winning score of '67-67-63=197'. The correct way to express this in SQL should be to use the winning_score as a string that matches '67-67-63'.
Here's the correct SQLite query:
```
SELECT date FROM table_1590652_4 WHERE winning_score = '67-67-63'... | 31,103 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1590652_4 (date VARCHAR, winning_score VARCHAR)\n\n Question: Name the date of winning score being 67-67-63=197\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_1590652_4 (runner_s__up VARCHAR, tournament VARCHAR)
Question: Name the runners up for when tournament is wgc-accenture match play championship
Here is the SQLite ... | Here is the SQLite query to answer the question regarding the runners up for the tournament "WGC-Accenture Match Play Championship":
```
SELECT runner_s__up FROM table_1590652_4 WHERE tournament = "WGC-Accenture Match Play Championship"
``` | 31,104 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1590652_4 (runner_s__up VARCHAR, tournament VARCHAR)\n\n Question: Name the runners up for when tournament is wgc-accenture ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1590652_4 (no VARCHAR, date VARCHAR)
Question: Name the total number when date is 30 may 2010
Here is the SQLite query to answer to the question: Name the total nu... | Here is the SQLite query to answer the question:
```
SELECT COUNT(no) FROM table_1590652_4 WHERE date = "30 May 2010"
``` | 31,105 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1590652_4 (no VARCHAR, date VARCHAR)\n\n Question: Name the total number when date is 30 may 2010\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_1590652_4 (margin_of_victory VARCHAR, date VARCHAR)
Question: Name th margin of victory when date is 10 jul 2011
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question:
```
SELECT margin_of_victory FROM table_1590652_4 WHERE date = "10 Jul 2011"
``` | 31,106 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1590652_4 (margin_of_victory VARCHAR, date VARCHAR)\n\n Question: Name th margin of victory when date is 10 jul 2011\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1590652_4 (no INTEGER, tournament VARCHAR)
Question: Name the most number when tournament is madrid masters
Here is the SQLite query to answer to the question: Nam... | Here is the SQLite query to answer the question:
```
SELECT MAX(no) FROM table_1590652_4 WHERE tournament = 'Madrid Masters';
``` | 31,107 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1590652_4 (no INTEGER, tournament VARCHAR)\n\n Question: Name the most number when tournament is madrid masters\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_1590967_2 (episode_number INTEGER, air_date VARCHAR)
Question: Name the most episode numbers of 6 january 2006
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the most episode numbers for the air date of 6 January 2006:
```
SELECT MAX(episode_number) FROM table_1590967_2 WHERE air_date = '6 January 2006';
``` | 31,108 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1590967_2 (episode_number INTEGER, air_date VARCHAR)\n\n Question: Name the most episode numbers of 6 january 2006\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_15905399_1 (validation VARCHAR, iin_ranges VARCHAR)
Question: How many validations are listed for the iin range 36?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about how many validations are listed for the iin range 36:
```
SELECT COUNT(validation) FROM table_15905399_1 WHERE iin_ranges = '36';
``` | 31,109 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15905399_1 (validation VARCHAR, iin_ranges VARCHAR)\n\n Question: How many validations are listed for the iin range 36?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15905399_1 (validation VARCHAR, iin_ranges VARCHAR)
Question: What is the validation for iin ranges 5610, 560221-560225?
Here is the SQLite query to answer to the... | The query you provided is close, but it may not return the desired results because it is looking for an exact match of the `iin_ranges` string. Instead, you may want to check for the presence of overlapping ranges. Here’s an improved query that handles this situation by checking if any range contains "5610" or overlaps... | 31,110 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15905399_1 (validation VARCHAR, iin_ranges VARCHAR)\n\n Question: What is the validation for iin ranges 5610, 560221-560225... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15905399_1 (length VARCHAR, iin_ranges VARCHAR)
Question: What is the length for iin range 51-55?
Here is the SQLite query to answer to the question: What is the l... | Here is the SQLite query to answer the question about the length for the iin range 51-55:
```
SELECT length FROM table_15905399_1 WHERE iin_ranges = "51-55";
``` | 31,111 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15905399_1 (length VARCHAR, iin_ranges VARCHAR)\n\n Question: What is the length for iin range 51-55?\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_15905399_1 (active VARCHAR, iin_ranges VARCHAR)
Question: Is the iin range 4 active?
Here is the SQLite query to answer to the question: Is the iin range 4 active?... | Here is the SQLite query to answer the question: Is the iin range 4 active?:
```
SELECT active FROM table_15905399_1 WHERE iin_ranges = '4';
``` | 31,112 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15905399_1 (active VARCHAR, iin_ranges VARCHAR)\n\n Question: Is the iin range 4 active?\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_1590967_7 (episode_number VARCHAR, guest_host VARCHAR)
Question: What episode did Pamela Anderson guest host.
Here is the SQLite query to answer to the question: W... | To find out which episode Pamela Anderson guest hosted, you need to select the `episode_number` where `guest_host` is "Pamela Anderson". The query you provided counts the episodes, but to get the episode number(s), you should modify it as follows:
```sql
SELECT episode_number FROM table_1590967_7 WHERE guest_host = 'P... | 31,113 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1590967_7 (episode_number VARCHAR, guest_host VARCHAR)\n\n Question: What episode did Pamela Anderson guest host.\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_1590967_7 (musical_guest__song_performed_ VARCHAR, guest_host VARCHAR)
Question: What song was performed when Barbara Windsor was the guest host?
Here is the SQLit... | Here is the SQLite query to answer the question regarding the song performed when Barbara Windsor was the guest host:
```
SELECT musical_guest__song_performed_ FROM table_1590967_7 WHERE guest_host = "Barbara Windsor";
``` | 31,114 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1590967_7 (musical_guest__song_performed_ VARCHAR, guest_host VARCHAR)\n\n Question: What song was performed when Barbara Wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15926991_1 (weight__kg_ VARCHAR, jockey VARCHAR)
Question: What is the entry for weight in kilograms of jockey D. Nikolic?
Here is the SQLite query to answer to th... | Here is the SQLite query that answers the question regarding the weight in kilograms of jockey D. Nikolic:
```
SELECT weight__kg_ FROM table_15926991_1 WHERE jockey = "D. Nikolic";
``` | 31,115 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15926991_1 (weight__kg_ VARCHAR, jockey VARCHAR)\n\n Question: What is the entry for weight in kilograms of jockey D. Nikoli... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15926991_1 (group VARCHAR, time VARCHAR)
Question: Which group had the time 1:11.65?
Here is the SQLite query to answer to the question: Which group had the time 1... | Here is the SQLite query to answer the question: Which group had the time 1:11.65?:
```
SELECT group FROM table_15926991_1 WHERE time = '1:11.65';
``` | 31,116 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15926991_1 (group VARCHAR, time VARCHAR)\n\n Question: Which group had the time 1:11.65?\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_15926991_1 (winner_2nd VARCHAR, time VARCHAR)
Question: Which horse won with a time of 1:35.98 and what was their position?
Here is the SQLite query to answer to t... | ```sql
SELECT winner_2nd FROM table_15926991_1 WHERE time = "1:35.98";
``` | 31,117 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15926991_1 (winner_2nd VARCHAR, time VARCHAR)\n\n Question: Which horse won with a time of 1:35.98 and what was their positi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15944_5 (engine_type VARCHAR, scenario VARCHAR)
Question: What engine type is used in a Space Shuttle Vacuum scenario?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding the engine type used in a Space Shuttle Vacuum scenario:
```
SELECT engine_type FROM table_15944_5 WHERE scenario = "Space shuttle vacuum";
``` | 31,118 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15944_5 (engine_type VARCHAR, scenario VARCHAR)\n\n Question: What engine type is used in a Space Shuttle Vacuum scenario?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15944_5 (effective_exhaust_velocity__m_s_ VARCHAR, scenario VARCHAR)
Question: What is the effective exhaust velocity in a Space Shuttle Vacuum?
Here is the SQLite... | To get the effective exhaust velocity in a Space Shuttle Vacuum from the provided schema, you should retrieve the value of `effective_exhaust_velocity__m_s_` for the scenario "Space shuttle vacuum" instead of counting the records. Here’s the corrected SQLite query:
```
SELECT effective_exhaust_velocity__m_s_ FROM tabl... | 31,119 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15944_5 (effective_exhaust_velocity__m_s_ VARCHAR, scenario VARCHAR)\n\n Question: What is the effective exhaust velocity in... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15944_5 (specific_impulse__s_ INTEGER, effective_exhaust_velocity__m_s_ VARCHAR)
Question: What is the maximum specific impulse with a 4423 m/s effective exhaust ve... | Here is the corrected SQLite query to find the maximum specific impulse with an effective exhaust velocity of 4423 m/s:
```
SELECT MAX(specific_impulse__s_) FROM table_15944_5 WHERE effective_exhaust_velocity__m_s_ = '4423'
```
In this query, I have enclosed the value `4423` in single quotes because the `effective_ex... | 31,120 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15944_5 (specific_impulse__s_ INTEGER, effective_exhaust_velocity__m_s_ VARCHAR)\n\n Question: What is the maximum specific ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15944_5 (sfc_in_g__kn·s_ VARCHAR, specific_impulse__s_ VARCHAR)
Question: What is the SFC when the specific impulse is 453?
Here is the SQLite query to answer to t... | Your SQLite query is almost correct, but there are a couple of adjustments needed. Specifically, the value for `specific_impulse__s_` should be wrapped in quotes, as it is stored as a VARCHAR. Additionally, the character used in the column name `sfc_in_g__kn·s_` seems to contain a special character (dot instead of unde... | 31,121 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15944_5 (sfc_in_g__kn·s_ VARCHAR, specific_impulse__s_ VARCHAR)\n\n Question: What is the SFC when the specific impulse is 4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_159359_2 (start_date__1st_night_ VARCHAR, season VARCHAR)
Question: When are start dates (1st night) for the season of 1966?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about the start dates for the season of 1966:
```
SELECT start_date__1st_night_ FROM table_159359_2 WHERE season = "1966"
``` | 31,122 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_159359_2 (start_date__1st_night_ VARCHAR, season VARCHAR)\n\n Question: When are start dates (1st night) for the season of 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_159359_2 (end_date__last_night_ VARCHAR, season VARCHAR)
Question: When are end dates (last night) for the season of 1918?
Here is the SQLite query to answer to th... | Your SQLite query to fetch the end dates for the season of 1918 is correct. Here it is wrapped in code formatting:
```
SELECT end_date__last_night_ FROM table_159359_2 WHERE season = "1918";
``` | 31,123 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_159359_2 (end_date__last_night_ VARCHAR, season VARCHAR)\n\n Question: When are end dates (last night) for the season of 191... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_159614_2 (harris VARCHAR, party VARCHAR)
Question: What is the percentage of the Labour Party on the Harris Poll
Here is the SQLite query to answer to the question... | The query you've provided retrieves the names from the Harris Poll where the party is Labour, but it doesn't calculate the percentage of the Labour Party. To calculate the percentage, you need to find the total number of respondents and the number who support the Labour Party. Here's the correct query to compute the pe... | 31,124 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_159614_2 (harris VARCHAR, party VARCHAR)\n\n Question: What is the percentage of the Labour Party on the Harris Poll\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_159614_2 (opinion_research_centre__opc_ VARCHAR, national_opinion_polls__nop_ VARCHAR)
Question: On all other parties the National option polls are at 1.3% where as... | Your SQLite query should be updated to accurately extract the percentage associated with opinion research polls when the national opinion polls are at 1.3%. Here's the corrected version of the query:
```sql
SELECT opinion_research_centre__opc_
FROM table_159614_2
WHERE national_opinion_polls__nop_ = "1.3%";
```
Th... | 31,125 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_159614_2 (opinion_research_centre__opc_ VARCHAR, national_opinion_polls__nop_ VARCHAR)\n\n Question: On all other parties th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR)
Question: Name the del pueblo for centennial 1988
Here is the SQLite query to answer to the question: Name the ... | Here is the SQLite query to answer the question about naming the "del pueblo" for centennial 1988:
```
SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "1988"
``` | 31,126 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR)\n\n Question: Name the del pueblo for centennial 1988\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_15977768_1 (centennial VARCHAR, akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR)
Question: Name the centennial for 1992 akimel
Here is the ... | Here is the SQLite query to answer the question:
```
SELECT centennial FROM table_15977768_1 WHERE akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river = "1992"
``` | 31,127 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15977768_1 (centennial VARCHAR, akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR)\n\n Question: Name ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR)
Question: Name the del pueblo for red/black
Here is the SQLite query to answer to the question: Name the del pu... | Here is the SQLite query to answer the question "Name the del pueblo for red/black":
```sql
SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "Red/black";
``` | 31,128 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR)\n\n Question: Name the del pueblo for red/black\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_15977768_1 (centennial VARCHAR, information VARCHAR)
Question: Name the centennial for location
Here is the SQLite query to answer to the question: Name the centen... | Here is the SQLite query to answer the question "Name the centennial for location":
```
SELECT centennial FROM table_15977768_1 WHERE information = "Location"
``` | 31,129 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15977768_1 (centennial VARCHAR, information VARCHAR)\n\n Question: Name the centennial for location\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_1597866_3 (host VARCHAR, first_premiere VARCHAR)
Question: Name the host when first premiere is august 3, 2007
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: Name the host when first premiere is August 3, 2007:
```
SELECT host FROM table_1597866_3 WHERE first_premiere = "August 3, 2007";
``` | 31,130 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1597866_3 (host VARCHAR, first_premiere VARCHAR)\n\n Question: Name the host when first premiere is august 3, 2007\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_1597866_3 (regular_judge VARCHAR, host VARCHAR)
Question: Name the regular judge when host is anja rubik
Here is the SQLite query to answer to the question: Name t... | Here is the SQLite query to answer the question: Name the regular judge when host is anja rubik:
```
SELECT regular_judge FROM table_1597866_3 WHERE host = "anja rubik"
``` | 31,131 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR)\n\n Question: Name the regular judge when host is anja rubik\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_1597866_3 (regular_judge VARCHAR, host VARCHAR)
Question: Name the number of regular judge when host is bernie chan
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question:
```
SELECT COUNT(regular_judge) FROM table_1597866_3 WHERE host = "bernie chan"
``` | 31,132 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR)\n\n Question: Name the number of regular judge when host is bernie chan\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1594772_2 (s_no INTEGER, margin VARCHAR)
Question: Name the most number for 74 runs margins
Here is the SQLite query to answer to the question: Name the most numbe... | Here is the SQLite query to answer the question about naming the most number for 74 runs margins:
```
SELECT MAX(s_no) FROM table_1594772_2 WHERE margin = "74 runs"
``` | 31,133 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1594772_2 (s_no INTEGER, margin VARCHAR)\n\n Question: Name the most number for 74 runs margins\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_1594772_2 (team__b_ VARCHAR, margin VARCHAR, winner VARCHAR)
Question: Name the number of team for 35 runs margin and india winner
Here is the SQLite query to answ... | Here is the SQLite query to answer the question regarding the number of teams for a 35 runs margin and "India" as the winner:
```
SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = "35 runs" AND winner = "India"
``` | 31,134 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1594772_2 (team__b_ VARCHAR, margin VARCHAR, winner VARCHAR)\n\n Question: Name the number of team for 35 runs margin and in... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1594772_2 (team__a_ VARCHAR, match_date VARCHAR)
Question: Namethe team for feb 27, 1996
Here is the SQLite query to answer to the question: Namethe team for feb 2... | Here is the SQLite query to answer the question about naming the team for February 27, 1996:
```
SELECT team__a_ FROM table_1594772_2 WHERE match_date = "Feb 27, 1996";
``` | 31,135 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1594772_2 (team__a_ VARCHAR, match_date VARCHAR)\n\n Question: Namethe team for feb 27, 1996\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_1594772_2 (s_no VARCHAR, match_date VARCHAR)
Question: Name the numbers for date of feb 27, 1996
Here is the SQLite query to answer to the question: Name the numbe... | Here is the SQLite query to answer the question about naming the numbers for the date of February 27, 1996:
```
SELECT s_no FROM table_1594772_2 WHERE match_date = "Feb 27, 1996";
``` | 31,136 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1594772_2 (s_no VARCHAR, match_date VARCHAR)\n\n Question: Name the numbers for date of feb 27, 1996\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_1594772_2 (team__b_ VARCHAR, match_date VARCHAR)
Question: Name the team for oct 30, 1989
Here is the SQLite query to answer to the question: Name the team for oct... | ```sql
SELECT team__b_ FROM table_1594772_2 WHERE match_date = "Oct 30, 1989";
``` | 31,137 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1594772_2 (team__b_ VARCHAR, match_date VARCHAR)\n\n Question: Name the team for oct 30, 1989\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_1594772_2 (winner VARCHAR, match_date VARCHAR)
Question: Name the winner for date of nov 5, 1987
Here is the SQLite query to answer to the question: Name the winne... | Here is the SQLite query to answer the question regarding the winner for the date of November 5, 1987:
```
SELECT winner FROM table_1594772_2 WHERE match_date = "Nov 5, 1987"
``` | 31,138 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1594772_2 (winner VARCHAR, match_date VARCHAR)\n\n Question: Name the winner for date of nov 5, 1987\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_15984957_2 (oilers_first_downs VARCHAR, date VARCHAR)
Question: On Sept. 17, how many first downs did the oilers have?
Here is the SQLite query to answer to the qu... | Your SQLite query seems to be on the right track, but I noticed that you are counting the number of first downs rather than summing them up, which is likely the intended operation if `oilers_first_downs` represents a numerical value.
Assuming `oilers_first_downs` holds the number of first downs (and is stored consist... | 31,139 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15984957_2 (oilers_first_downs VARCHAR, date VARCHAR)\n\n Question: On Sept. 17, how many first downs did the oilers have?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15984957_2 (game INTEGER, opponent VARCHAR)
Question: How many games were against the los angeles rams?
Here is the SQLite query to answer to the question: How man... | The query you provided does not correctly address the question of how many games were against the Los Angeles Rams. Instead of using the `MIN()` function, you should use the `COUNT()` function to count the number of games. Here is the corrected query:
```
SELECT COUNT(*) FROM table_15984957_2 WHERE opponent = 'Los Ang... | 31,140 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15984957_2 (game INTEGER, opponent VARCHAR)\n\n Question: How many games were against the los angeles rams?\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_1598533_8 (annual_change__percentage_of_gdp__2012_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR)
Question: What is the annual change of GDP with a 20.5% GDP of EU ... | Here is the SQLite query to answer the question about the annual change of GDP with a 20.5% GDP of EU in 2012:
```
SELECT annual_change__percentage_of_gdp__2012_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = "20.5%"
``` | 31,141 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1598533_8 (annual_change__percentage_of_gdp__2012_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR)\n\n Question: What is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1598533_8 (public_debt__percentage_of_gdp__2013_q1_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR)
Question: What is the public debt % of GDP in 2013 Q1 with a 4.7%... | Here is the SQLite query to answer the question regarding the public debt percentage of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012:
```
SELECT public_debt__percentage_of_gdp__2013_q1_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = "4.7%"
``` | 31,142 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1598533_8 (public_debt__percentage_of_gdp__2013_q1_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR)\n\n Question: What is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1598533_8 (inflation__percentage_annual__2012_ VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR)
Question: What is the annual inflation % when GDP per capita in pp... | It looks like there is a small mistake in your SQLite query regarding the data type of `gdp_per_capita_in_ppp_us$__2012_`. Since it's defined as `VARCHAR`, the value `24505` should be treated as a string. Here is the corrected SQLite query:
```
SELECT inflation__percentage_annual__2012_ FROM table_1598533_8 WHERE gdp_... | 31,143 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1598533_8 (inflation__percentage_annual__2012_ VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR)\n\n Question: What is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15988037_24 (place VARCHAR, perfect_40s VARCHAR, average VARCHAR)
Question: What are all the places where the number of perfect 40s is 0 and the average is 27.25?
... | Your provided query is almost correct, but since `perfect_40s` is defined as a `VARCHAR` type in your schema, you should compare it against the string representation of 0, which is "0". Here is the corrected query:
```
SELECT place FROM table_15988037_24 WHERE perfect_40s = '0' AND average = '27.25';
``` | 31,144 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15988037_24 (place VARCHAR, perfect_40s VARCHAR, average VARCHAR)\n\n Question: What are all the places where the number of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_15988037_24 (total INTEGER, average VARCHAR)
Question: What is the maximum total in which the average is 28.5?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to find the maximum total where the average is 28.5:
```
SELECT MAX(total) FROM table_15988037_24 WHERE average = "28.5";
``` | 31,145 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15988037_24 (total INTEGER, average VARCHAR)\n\n Question: What is the maximum total in which the average is 28.5?\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_15988037_24 (perfect_40s INTEGER)
Question: What is the minimum number of perfect 40s?
Here is the SQLite query to answer to the question: What is the minimum numb... | Your SQLite query to find the minimum number of perfect 40s in the table is correctly written. Here is the query wrapped in code format:
```
SELECT MIN(perfect_40s) FROM table_15988037_24;
``` | 31,146 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_15988037_24 (perfect_40s INTEGER)\n\n Question: What is the minimum number of perfect 40s?\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_16010376_1 (muzzle_velocity VARCHAR, cartridge VARCHAR)
Question: When using a .375 Remington Ultra Magnum, what is the muzzle velocity?
Here is the SQLite query t... | Here is the SQLite query to answer the question about the muzzle velocity for the .375 Remington Ultra Magnum:
```
SELECT muzzle_velocity FROM table_16010376_1 WHERE cartridge = ".375 Remington Ultra Magnum"
``` | 31,147 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16010376_1 (muzzle_velocity VARCHAR, cartridge VARCHAR)\n\n Question: When using a .375 Remington Ultra Magnum, what is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR)
Question: What type of cartridge is used by a Weatherby?
Here is the SQLite query to answer to the question: What ty... | Sure! Here is the SQLite query that will return the type of cartridge used by a Weatherby, formatted as you requested:
```
SELECT cartridge FROM table_16010376_1 WHERE source = "Weatherby"
``` | 31,148 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR)\n\n Question: What type of cartridge is used by a Weatherby?\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_16010376_1 (cartridge VARCHAR, source VARCHAR)
Question: What type of cartridge is used by a Winchester?
Here is the SQLite query to answer to the question: What t... | Here is the SQLite query to answer the question: What type of cartridge is used by a Winchester?:
```
SELECT cartridge FROM table_16010376_1 WHERE source = 'Winchester'
``` | 31,149 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR)\n\n Question: What type of cartridge is used by a Winchester?\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_16010376_1 (bullet_weight VARCHAR, source VARCHAR)
Question: What is the weight of the bullet used in a Weatherby?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question regarding the weight of the bullet used in a Weatherby:
```
SELECT bullet_weight FROM table_16010376_1 WHERE source = "Weatherby"
``` | 31,150 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR)\n\n Question: What is the weight of the bullet used in a Weatherby?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR)
Question: What is the weight of the bullet used in a Remington?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the weight of the bullet used in a Remington:
```
SELECT bullet_weight FROM table_16010376_1 WHERE source = "Remington"
``` | 31,151 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR)\n\n Question: What is the weight of the bullet used in a Remington?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16010376_1 (muzzle_energy VARCHAR, cartridge VARCHAR)
Question: When using a .375 Winchester, what is the muzzle energy?
Here is the SQLite query to answer to the ... | Your SQLite query is correct. Here it is properly wrapped as requested:
```
SELECT muzzle_energy FROM table_16010376_1 WHERE cartridge = ".375 Winchester";
``` | 31,152 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16010376_1 (muzzle_energy VARCHAR, cartridge VARCHAR)\n\n Question: When using a .375 Winchester, what is the muzzle energy?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1601027_1 (headphone_model VARCHAR, us_msrp VARCHAR)
Question: Which headphone models correspond to the US MSRP of $150?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about headphone models that correspond to the US MSRP of $150:
```
SELECT headphone_model FROM table_1601027_1 WHERE us_msrp = '$150';
``` | 31,153 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1601027_1 (headphone_model VARCHAR, us_msrp VARCHAR)\n\n Question: Which headphone models correspond to the US MSRP of $150?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1601027_1 (termination VARCHAR, us_msrp VARCHAR)
Question: Which terminations correspond to a US MSRP of $49?
Here is the SQLite query to answer to the question: W... | Here's the SQLite query to answer the question regarding terminations that correspond to a US MSRP of $49:
```
SELECT termination FROM table_1601027_1 WHERE us_msrp = "$49";
``` | 31,154 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1601027_1 (termination VARCHAR, us_msrp VARCHAR)\n\n Question: Which terminations correspond to a US MSRP of $49?\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_1601027_1 (headphone_class VARCHAR, us_msrp VARCHAR)
Question: How many headphone classes have a US MSRP of $150?
Here is the SQLite query to answer to the questio... | Your query is almost correct, but it's better to use single quotes for string literals in SQL. Here's the corrected version of the query:
```
SELECT COUNT(headphone_class) FROM table_1601027_1 WHERE us_msrp = '$150'
``` | 31,155 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1601027_1 (headphone_class VARCHAR, us_msrp VARCHAR)\n\n Question: How many headphone classes have a US MSRP of $150?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1601027_1 (earpads VARCHAR, headphone_class VARCHAR, us_msrp VARCHAR)
Question: How many values for earpads correspond to the headphone class Prestige and a US MSRP... | Here is the SQLite query to answer your question:
```
SELECT COUNT(earpads) FROM table_1601027_1 WHERE headphone_class = "Prestige" AND us_msrp = "$79";
``` | 31,156 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1601027_1 (earpads VARCHAR, headphone_class VARCHAR, us_msrp VARCHAR)\n\n Question: How many values for earpads correspond t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1601027_1 (headphone_model VARCHAR, driver_matched_db VARCHAR, us_msrp VARCHAR)
Question: Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $4... | Here is the SQLite query to answer the question regarding headphone models with a driver-matched DB of 0.1 and a US MSRP of $49:
```
SELECT headphone_model FROM table_1601027_1 WHERE driver_matched_db = "0.1" AND us_msrp = "$49"
``` | 31,157 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1601027_1 (headphone_model VARCHAR, driver_matched_db VARCHAR, us_msrp VARCHAR)\n\n Question: Which headphone models have a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1601027_1 (termination VARCHAR, headphone_model VARCHAR)
Question: Which terminations correspond with headphone model SR80I?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question: Which terminations correspond with headphone model SR80I?:
```
SELECT termination FROM table_1601027_1 WHERE headphone_model = 'SR80I';
``` | 31,158 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1601027_1 (termination VARCHAR, headphone_model VARCHAR)\n\n Question: Which terminations correspond with headphone model SR... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1602620_1 (type VARCHAR, office VARCHAR)
Question: What type are State Assemblyman
Here is the SQLite query to answer to the question: What type are State Assembly... | Here is the SQLite query to answer the question about what type State Assemblyman is:
```
SELECT type FROM table_1602620_1 WHERE office = "State Assemblyman";
``` | 31,159 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1602620_1 (type VARCHAR, office VARCHAR)\n\n Question: What type are State Assemblyman\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_1602620_1 (type VARCHAR, term_began VARCHAR)
Question: What type had a beginning term of December 8, 1980
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question: What type had a beginning term of December 8, 1980:
```
SELECT type FROM table_1602620_1 WHERE term_began = "December 8, 1980";
``` | 31,160 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1602620_1 (type VARCHAR, term_began VARCHAR)\n\n Question: What type had a beginning term of December 8, 1980\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_1602620_1 (type VARCHAR, elected VARCHAR)
Question: What type had an election day in 1980
Here is the SQLite query to answer to the question: What type had an elec... | Your query is almost correct, but it should specify the appropriate condition for the election year. Assuming `elected` is a string type, you should use quotes around the year 1980. Here's the corrected query:
```sql
SELECT type FROM table_1602620_1 WHERE elected = '1980';
``` | 31,161 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1602620_1 (type VARCHAR, elected VARCHAR)\n\n Question: What type had an election day in 1980\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_1602620_1 (term_ended VARCHAR, elected VARCHAR)
Question: What year did the term end for those elected in 1990
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about the year when the term ended for those elected in 1990:
```
SELECT term_ended FROM table_1602620_1 WHERE elected = '1990'
``` | 31,162 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1602620_1 (term_ended VARCHAR, elected VARCHAR)\n\n Question: What year did the term end for those elected in 1990\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_1602620_1 (location VARCHAR, term_ended VARCHAR)
Question: What is the location for the office whose term ended December 2, 1976
Here is the SQLite query to answer... | Here is the SQLite query to answer the question:
```
SELECT location FROM table_1602620_1 WHERE term_ended = "December 2, 1976"
``` | 31,163 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1602620_1 (location VARCHAR, term_ended VARCHAR)\n\n Question: What is the location for the office whose term ended December... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1602620_1 (term_ended VARCHAR, elected VARCHAR)
Question: What year did the term end for the office elected in 1984
Here is the SQLite query to answer to the quest... | Here is the corrected SQLite query to answer the question about what year the term ended for the office elected in 1984:
```sql
SELECT term_ended FROM table_1602620_1 WHERE elected = '1984';
```
In this query, I've enclosed `1984` in single quotes since the `elected` column is likely defined as a `VARCHAR` type. | 31,164 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1602620_1 (term_ended VARCHAR, elected VARCHAR)\n\n Question: What year did the term end for the office elected in 1984\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16028499_2 (record VARCHAR, date VARCHAR)
Question: What was the record on October 8, 1989?
Here is the SQLite query to answer to the question: What was the record... | Here is the SQLite query to answer the question of what the record was on October 8, 1989:
```
SELECT record FROM table_16028499_2 WHERE date = "October 8, 1989";
``` | 31,165 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16028499_2 (record VARCHAR, date VARCHAR)\n\n Question: What was the record on October 8, 1989?\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_16028499_2 (game_site VARCHAR, date VARCHAR)
Question: Where was the game site on October 29, 1989?
Here is the SQLite query to answer to the question: Where was t... | Here is the SQLite query to answer the question regarding the game site on October 29, 1989:
```
SELECT game_site FROM table_16028499_2 WHERE date = 'October 29, 1989';
``` | 31,166 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16028499_2 (game_site VARCHAR, date VARCHAR)\n\n Question: Where was the game site on October 29, 1989?\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_16028499_2 (attendance INTEGER, opponent VARCHAR)
Question: What was the minimum attendance against the New Orleans Saints?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question about the minimum attendance against the New Orleans Saints:
```
SELECT MIN(attendance) FROM table_16028499_2 WHERE opponent = "New Orleans Saints"
``` | 31,167 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16028499_2 (attendance INTEGER, opponent VARCHAR)\n\n Question: What was the minimum attendance against the New Orleans Sain... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16028499_2 (result VARCHAR, week VARCHAR)
Question: What was the result of week 2?
Here is the SQLite query to answer to the question: What was the result of week ... | Here is the correct SQLite query wrapped in code formatting:
```
SELECT result FROM table_16028499_2 WHERE week = '2';
```
Note that the value '2' is wrapped in single quotes because `week` is of type VARCHAR. | 31,168 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16028499_2 (result VARCHAR, week VARCHAR)\n\n Question: What was the result of week 2?\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_16028499_2 (date VARCHAR, opponent VARCHAR)
Question: What date did the team play the New York Jets?
Here is the SQLite query to answer to the question: What date ... | Sure! Here is the SQLite query to find the date when the team played against the New York Jets:
```
SELECT date FROM table_16028499_2 WHERE opponent = "New York Jets"
``` | 31,169 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16028499_2 (date VARCHAR, opponent VARCHAR)\n\n Question: What date did the team play the New York Jets?\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_16025095_1 (attendance INTEGER, date VARCHAR)
Question: What was the minimum crowd on January 24, 1987?
Here is the SQLite query to answer to the question: What wa... | Here's the SQLite query to find the minimum crowd on January 24, 1987:
```sql
SELECT MIN(attendance) FROM table_16025095_1 WHERE date = "January 24, 1987";
``` | 31,170 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16025095_1 (attendance INTEGER, date VARCHAR)\n\n Question: What was the minimum crowd on January 24, 1987?\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_1601935_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
Question: How many millions of viewers were there for the episode with a run time of 18:00?
Here is the... | Here is the SQLite query to answer the question regarding the number of millions of viewers for the episode with a run time of 18:00:
```
SELECT viewers__in_millions_ FROM table_1601935_1 WHERE run_time = "18:00"
``` | 31,171 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1601935_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)\n\n Question: How many millions of viewers were there for the ep... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1601935_1 (archive VARCHAR, viewers__in_millions_ VARCHAR)
Question: What was the archive for episode with 6.6 million viewers?
Here is the SQLite query to answer ... | Your SQLite query is correct for retrieving the archive for the episode with 6.6 million viewers. Here it is, properly formatted:
```
SELECT archive FROM table_1601935_1 WHERE viewers__in_millions_ = "6.6"
``` | 31,172 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1601935_1 (archive VARCHAR, viewers__in_millions_ VARCHAR)\n\n Question: What was the archive for episode with 6.6 million v... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16028459_2 (game INTEGER, bills_first_downs VARCHAR)
Question: When is the latest game the bills had 21 first downs
Here is the SQLite query to answer to the quest... | Your query has a slight mistake in the logic for retrieving the latest game. To find the latest game where the Bills had 21 first downs, you should use `MAX` instead of `MIN`, since you're looking for the maximum game number (which presumably represents the latest game) when the first downs equal 21.
Here's the corre... | 31,173 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16028459_2 (game INTEGER, bills_first_downs VARCHAR)\n\n Question: When is the latest game the bills had 21 first downs\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16028459_2 (bills_first_downs INTEGER, opponents VARCHAR)
Question: How many first downs did the bills have when their opponent had 6
Here is the SQLite query to a... | The provided SQLite query contains an error because the `opponents` column is defined as a `VARCHAR`, which means it holds string data, not integers. Therefore, the condition `opponents = 6` is incorrect. You need to compare it to the string that represents the integer value.
To answer the question, assuming you want ... | 31,174 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16028459_2 (bills_first_downs INTEGER, opponents VARCHAR)\n\n Question: How many first downs did the bills have when their o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16028459_2 (bills_points VARCHAR, opponents VARCHAR)
Question: How many points did the bills score when their opponent had 14
Here is the SQLite query to answer to... | You have the right idea, but there is a small adjustment needed in your query. Since `bills_points` is defined as a `VARCHAR` type, we need to use appropriate syntax when querying. Additionally, assuming we want to sum the points they scored in those cases, we might want to use an aggregate function.
Here's the correc... | 31,175 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16028459_2 (bills_points VARCHAR, opponents VARCHAR)\n\n Question: How many points did the bills score when their opponent h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16028459_2 (opponents INTEGER, opponent VARCHAR)
Question: What is the minimum number of points given up to the Baltimore Colts
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding the minimum number of points given up to the Baltimore Colts:
```
SELECT MIN(opponents) FROM table_16028459_2 WHERE opponent = "Baltimore Colts"
``` | 31,176 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16028459_2 (opponents INTEGER, opponent VARCHAR)\n\n Question: What is the minimum number of points given up to the Baltimor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1602858_1 (runner_s__up VARCHAR, tournament VARCHAR)
Question: Who was the runner-up in the Memorial Tournament?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question: Who was the runner-up in the Memorial Tournament?:
```sql
SELECT runner_s__up FROM table_1602858_1 WHERE tournament = "Memorial Tournament";
``` | 31,177 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1602858_1 (runner_s__up VARCHAR, tournament VARCHAR)\n\n Question: Who was the runner-up in the Memorial Tournament?\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1602858_1 (winning_score VARCHAR, runner_s__up VARCHAR)
Question: What was the winning score for the tournament with runner-up Rory Sabbatini?
Here is the SQLite q... | Here's the SQLite query you've provided, wrapped in the appropriate code formatting:
```
SELECT winning_score FROM table_1602858_1 WHERE runner_s__up = "Rory Sabbatini"
``` | 31,178 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1602858_1 (winning_score VARCHAR, runner_s__up VARCHAR)\n\n Question: What was the winning score for the tournament with run... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1602858_1 (margin_of_victory VARCHAR, winning_score VARCHAR)
Question: What was the margin of victory with the winning score "63-68-68-68=267"?
Here is the SQLite ... | The SQL query you've written contains a syntax error in the WHERE clause due to the way the winning score is being compared. The winning score should be compared as a string rather than as an expression. Here’s the corrected query:
```
SELECT margin_of_victory FROM table_1602858_1 WHERE winning_score = '63-68-68-68=26... | 31,179 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1602858_1 (margin_of_victory VARCHAR, winning_score VARCHAR)\n\n Question: What was the margin of victory with the winning s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16034882_5 (position INTEGER)
Question: Name the least position
Here is the SQLite query to answer to the question: Name the least position:
```
SELECT MIN(positio... | Here is the SQLite query to answer the question regarding the least position:
```
SELECT MIN(position) FROM table_16034882_5;
``` | 31,180 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16034882_5 (position INTEGER)\n\n Question: Name the least position\n\nHere is the SQLite query to answer to the question: N... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16034882_5 (goals_scored INTEGER, position VARCHAR)
Question: Name the most goals scored for position 4
Here is the SQLite query to answer to the question: Name th... | Here is the SQLite query to answer your question regarding the most goals scored for position 4:
```
SELECT MAX(goals_scored) FROM table_16034882_5 WHERE position = '4'
``` | 31,181 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16034882_5 (goals_scored INTEGER, position VARCHAR)\n\n Question: Name the most goals scored for position 4\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_16046689_29 (bowl_game VARCHAR, city VARCHAR)
Question: What is the name of the bowl game that was played in Tempe, Arizona?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about the bowl game that was played in Tempe, Arizona:
```
SELECT bowl_game FROM table_16046689_29 WHERE city = "Tempe, Arizona"
``` | 31,182 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16046689_29 (bowl_game VARCHAR, city VARCHAR)\n\n Question: What is the name of the bowl game that was played in Tempe, Ariz... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16046689_29 (city VARCHAR, stadium VARCHAR, television VARCHAR)
Question: What city in the Citrus Bowl aired on ABC?
Here is the SQLite query to answer to the ques... | Your SQLite query is correct for the given question. Here it is again, wrapped in code formatting for clarity:
```
SELECT city FROM table_16046689_29 WHERE stadium = "Citrus Bowl" AND television = "ABC"
``` | 31,183 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16046689_29 (city VARCHAR, stadium VARCHAR, television VARCHAR)\n\n Question: What city in the Citrus Bowl aired on ABC?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16046689_29 (conference_matchups VARCHAR, date VARCHAR, bowl_game VARCHAR)
Question: What teams played in the Capital One bowl game on January 1, 2009?
Here is the... | Here is the SQLite query wrapped as requested:
```
SELECT conference_matchups FROM table_16046689_29 WHERE date = "January 1, 2009" AND bowl_game = "Capital One"
``` | 31,184 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16046689_29 (conference_matchups VARCHAR, date VARCHAR, bowl_game VARCHAR)\n\n Question: What teams played in the Capital On... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16046689_29 (stadium VARCHAR, payout___us$__ VARCHAR)
Question: Which stadium has a payout of $3 million?
Here is the SQLite query to answer to the question: Which... | Your provided query is almost correct, but to ensure it works properly, we should consider potential formatting issues, such as leading/trailing spaces or differences in string representation. Here's a refined version of the query:
```sql
SELECT stadium FROM table_16046689_29 WHERE payout___us$__ = '$3 Million';
```
... | 31,185 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16046689_29 (stadium VARCHAR, payout___us$__ VARCHAR)\n\n Question: Which stadium has a payout of $3 million?\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_16048129_5 (number_of_people INTEGER, average_family_size VARCHAR)
Question: What is the largest population in regions where the average family size is 2.8 people?
... | Here is the SQLite query that answers the question about the largest population in regions where the average family size is 2.8 people:
```sql
SELECT MAX(number_of_people) FROM table_16048129_5 WHERE average_family_size = "2.8";
``` | 31,186 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16048129_5 (number_of_people INTEGER, average_family_size VARCHAR)\n\n Question: What is the largest population in regions w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16048129_5 (_percentage_of_total_deportees VARCHAR, average_family_size VARCHAR)
Question: What is the total number of regions where the average family size is 2.8?... | Here's the SQLite query to answer the question about the total number of regions where the average family size is 2.8:
```
SELECT COUNT(_percentage_of_total_deportees) FROM table_16048129_5 WHERE average_family_size = '2.8';
``` | 31,187 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16048129_5 (_percentage_of_total_deportees VARCHAR, average_family_size VARCHAR)\n\n Question: What is the total number of r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16048129_5 (region_of_ussr VARCHAR, _percentage_of_total_deportees VARCHAR)
Question: What regions of the USSR have a percentage of deportees of 10.6?
Here is the ... | Here is the SQLite query to answer the question about the regions of the USSR that have a percentage of deportees of 10.6:
```
SELECT region_of_ussr FROM table_16048129_5 WHERE _percentage_of_total_deportees = "10.6"
``` | 31,188 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16048129_5 (region_of_ussr VARCHAR, _percentage_of_total_deportees VARCHAR)\n\n Question: What regions of the USSR have a pe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16048129_5 (number_of_families INTEGER, average_family_size VARCHAR)
Question: What is the most number of families in regions where average family size is 2.7?
Her... | Here is the SQLite query to answer the question about finding the most number of families in regions where the average family size is 2.7:
```sql
SELECT MAX(number_of_families) FROM table_16048129_5 WHERE average_family_size = '2.7';
``` | 31,189 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16048129_5 (number_of_families INTEGER, average_family_size VARCHAR)\n\n Question: What is the most number of families in re... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16048129_5 (number_of_families VARCHAR, _percentage_of_total_deportees VARCHAR)
Question: How many total families are there in regions with 5.8 percent of the popul... | Here is the SQLite query to answer the question:
```
SELECT SUM(number_of_families) FROM table_16048129_5 WHERE _percentage_of_total_deportees = "5.8"
```
Note: I changed `COUNT` to `SUM` to get the total number of families in regions with 5.8 percent of the population being made up of deportees. Please ensure that ... | 31,190 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16048129_5 (number_of_families VARCHAR, _percentage_of_total_deportees VARCHAR)\n\n Question: How many total families are th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_16048129_5 (number_of_families INTEGER, _percentage_of_total_deportees VARCHAR)
Question: What is the most number of families among regions where the population is ... | Here is the SQLite query that answers your question:
```sql
SELECT MAX(number_of_families)
FROM table_16048129_5
WHERE _percentage_of_total_deportees = "5.8"
``` | 31,191 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_16048129_5 (number_of_families INTEGER, _percentage_of_total_deportees VARCHAR)\n\n Question: What is the most number of fam... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1603807_2 (operator VARCHAR, line VARCHAR)
Question: Which operator runs the Mamariga shuttle line?
Here is the SQLite query to answer to the question: Which opera... | Here is the SQLite query to answer the question: Which operator runs the Mamariga shuttle line?:
```
SELECT operator FROM table_1603807_2 WHERE line = "Mamariga shuttle";
``` | 31,192 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1603807_2 (operator VARCHAR, line VARCHAR)\n\n Question: Which operator runs the Mamariga shuttle line?\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_1603807_2 (length VARCHAR, line VARCHAR)
Question: How many lengths of line 3 are given?
Here is the SQLite query to answer to the question: How many lengths of li... | Here is the SQLite query to answer the question about how many lengths of line 3 are given:
```
SELECT COUNT(length) FROM table_1603807_2 WHERE line = "line 3";
``` | 31,193 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1603807_2 (length VARCHAR, line VARCHAR)\n\n Question: How many lengths of line 3 are given?\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_1603807_2 (terminals VARCHAR, line VARCHAR)
Question: What are the terminals for line 2?
Here is the SQLite query to answer to the question: What are the terminals... | Here is the SQLite query to answer the question about the terminals for line 2:
```
SELECT terminals FROM table_1603807_2 WHERE line = 'line 2';
``` | 31,194 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1603807_2 (terminals VARCHAR, line VARCHAR)\n\n Question: What are the terminals for line 2?\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_1603807_2 (status VARCHAR, line VARCHAR)
Question: What is the status of the airport line?
Here is the SQLite query to answer to the question: What is the status o... | Here is the SQLite query to answer the question about the status of the airport line:
```
SELECT status FROM table_1603807_2 WHERE line = "Airport line"
``` | 31,195 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1603807_2 (status VARCHAR, line VARCHAR)\n\n Question: What is the status of the airport line?\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_160510_5 (hangul_chosongul VARCHAR, area VARCHAR)
Question: Name the total number of hangul chosongul for 8,352
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the total number of hangul chosongul for the area "8,352":
```
SELECT COUNT(hangul_chosongul) FROM table_160510_5 WHERE area = "8,352";
``` | 31,196 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_160510_5 (hangul_chosongul VARCHAR, area VARCHAR)\n\n Question: Name the total number of hangul chosongul for 8,352\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_160510_5 (iso VARCHAR, rr_romaja VARCHAR)
Question: Name the iso for chungcheongnam
Here is the SQLite query to answer to the question: Name the iso for chungcheon... | Here is the SQLite query to answer the question of naming the iso for chungcheongnam:
```
SELECT iso FROM table_160510_5 WHERE rr_romaja = "chungcheongnam"
``` | 31,197 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_160510_5 (iso VARCHAR, rr_romaja VARCHAR)\n\n Question: Name the iso for chungcheongnam\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_160510_5 (country VARCHAR, area VARCHAR)
Question: Name the country for 11,891 area
Here is the SQLite query to answer to the question: Name the country for 11,891... | Here is the SQLite query to answer the question, formatted as you requested:
```
SELECT country FROM table_160510_5 WHERE area = "11,891"
``` | 31,198 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_160510_5 (country VARCHAR, area VARCHAR)\n\n Question: Name the country for 11,891 area\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_160510_5 (region VARCHAR, hangul_chosongul VARCHAR)
Question: Name the number of region for 경상남도
Here is the SQLite query to answer to the question: Name the numb... | Here is the SQLite query to answer the question: Name the number of regions for 경상남도:
```
SELECT COUNT(region) FROM table_160510_5 WHERE hangul_chosongul = "경상남도"
``` | 31,199 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_160510_5 (region VARCHAR, hangul_chosongul VARCHAR)\n\n Question: Name the number of region for 경상남도\n\nHere is the SQLite ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.