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_2818164_2 (title VARCHAR, original_air_date VARCHAR)
Question: How many different titles does the episode originally aired on September 27, 1984 have?
Here is the ... | To count the number of different titles for episodes that originally aired on September 27, 1984, you should use the `COUNT(DISTINCT title)` function. This ensures that only unique titles are counted. Here is the corrected SQLite query:
```
SELECT COUNT(DISTINCT title) FROM table_2818164_2 WHERE original_air_date = 'S... | 40,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_2818164_2 (title VARCHAR, original_air_date VARCHAR)\n\n Question: How many different titles does the episode originally air... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2818164_2 (production_code INTEGER, original_air_date VARCHAR)
Question: What's the production code of the episode originally aired on February 21, 1985?
Here is t... | Here is the SQLite query to answer the question about the production code of the episode originally aired on February 21, 1985:
```sql
SELECT production_code FROM table_2818164_2 WHERE original_air_date = "February 21, 1985";
``` | 40,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_2818164_2 (production_code INTEGER, original_air_date VARCHAR)\n\n Question: What's the production code of the episode origi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28181401_4 (round VARCHAR, scorers VARCHAR)
Question: when roberts 86' is the scorer what is the round?
Here is the SQLite query to answer to the question: when ro... | Here is the SQLite query to answer the question regarding the round when "Roberts 86'" is the scorer:
```
SELECT round FROM table_28181401_4 WHERE scorers = "Roberts 86'";
``` | 40,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_28181401_4 (round VARCHAR, scorers VARCHAR)\n\n Question: when roberts 86' is the scorer what is the round?\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_28181401_4 (attendance INTEGER, round VARCHAR)
Question: When semi final (2nd leg) is the round what is the highest attendance?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding the highest attendance when the round is "Semi Final (2nd leg)":
```
SELECT MAX(attendance) FROM table_28181401_4 WHERE round = "Semi Final (2nd leg)"
``` | 40,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_28181401_4 (attendance INTEGER, round VARCHAR)\n\n Question: When semi final (2nd leg) is the round what is the highest atte... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28181347_6 (position_in_table VARCHAR, replaced_by VARCHAR)
Question: When Mark Stimson started his job in 2007-08 what posiiton was the team on the table
Here is ... | To accurately answer the question regarding the team position held when Mark Stimson started his job in 2007-08, we need to include a condition that checks for the specific date and not just the replacement information. However, given the schema you provided, the `replaced_by` field does not include date information, s... | 40,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_28181347_6 (position_in_table VARCHAR, replaced_by VARCHAR)\n\n Question: When Mark Stimson started his job in 2007-08 what ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28181347_6 (replaced_by VARCHAR, date_of_vacancy VARCHAR)
Question: In football league one, what coach was hired as a replacement on 8 October 2007
Here is the SQL... | Here is the SQLite query to answer the question about the coach hired as a replacement on 8 October 2007:
```
SELECT replaced_by FROM table_28181347_6 WHERE date_of_vacancy = "8 October 2007"
``` | 40,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_28181347_6 (replaced_by VARCHAR, date_of_vacancy VARCHAR)\n\n Question: In football league one, what coach was hired as a re... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28181347_6 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
Question: One 6 November 2007 what was the manner of departure for the coach release in footba... | Here is the SQLite query to answer the question regarding the manner of departure for the coach release in football league one on 6 November 2007:
```sql
SELECT manner_of_departure FROM table_28181347_6 WHERE date_of_appointment = "6 November 2007";
``` | 40,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_28181347_6 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)\n\n Question: One 6 November 2007 what was the manner ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2818164_4 (no_in_series INTEGER, written_by VARCHAR)
Question: What is the series number for the episode written by janet leahy?
Here is the SQLite query to answer... | Your SQLite query to find the series number for the episode written by Janet Leahy looks good. However, if you want to ensure using consistent casing in the comparison (if the names might vary in casing), you can convert both sides to the same case using the `LOWER` function. Here's the modified query:
```
SELECT MIN(... | 40,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_2818164_4 (no_in_series INTEGER, written_by VARCHAR)\n\n Question: What is the series number for the episode written by jane... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2818164_4 (original_air_date VARCHAR, production_code VARCHAR)
Question: What was the air date of the episode with the production code of 322?
Here is the SQLite q... | Your SQL query needs a small adjustment to ensure that the `production_code` is treated as a string since it is specified as a VARCHAR type in the schema. Here's the corrected query:
```
SELECT original_air_date FROM table_2818164_4 WHERE production_code = '322';
``` | 40,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_2818164_4 (original_air_date VARCHAR, production_code VARCHAR)\n\n Question: What was the air date of the episode with the p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2818164_4 (no_in_series INTEGER, directed_by VARCHAR, original_air_date VARCHAR)
Question: What is the series number for the episode directed by jay sandrich that ... | Here is the SQLite query that answers the question about the series number for the episode directed by Jay Sandrich that aired on October 23, 1986:
```
SELECT no_in_series FROM table_2818164_4 WHERE directed_by = "Jay Sandrich" AND original_air_date = "October 23, 1986";
``` | 40,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_2818164_4 (no_in_series INTEGER, directed_by VARCHAR, original_air_date VARCHAR)\n\n Question: What is the series number for... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28195971_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)
Question: What are the title(s) of episodes directed by david solomon and written by marti noxon... | Here is the SQLite query to answer the question regarding the titles of episodes directed by David Solomon and written by Marti Noxon:
```
SELECT title FROM table_28195971_1 WHERE directed_by = "David Solomon" AND written_by = "Marti Noxon";
``` | 40,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_28195971_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)\n\n Question: What are the title(s) of episodes directed... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28196105_1 (_number VARCHAR, production_code VARCHAR)
Question: What was the number of episodes whose production code is 7ABB21?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about the number of episodes whose production code is 7ABB21:
```
SELECT COUNT(_number) FROM table_28196105_1 WHERE production_code = '7ABB21';
``` | 40,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_28196105_1 (_number VARCHAR, production_code VARCHAR)\n\n Question: What was the number of episodes whose production code is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28196105_1 (written_by VARCHAR, _number VARCHAR)
Question: Who wrote episode number 18?
Here is the SQLite query to answer to the question: Who wrote episode numbe... | Here is the SQLite query to answer the question: Who wrote episode number 18?:
```
SELECT written_by FROM table_28196105_1 WHERE _number = '18'
``` | 40,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_28196105_1 (written_by VARCHAR, _number VARCHAR)\n\n Question: Who wrote episode number 18?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28204447_3 (tries_for VARCHAR, l INTEGER)
Question: Name the tries for when L is less than 2.0
Here is the SQLite query to answer to the question: Name the tries f... | Here is the SQLite query to answer the question about naming the tries when L is less than 2.0:
```
SELECT tries_for FROM table_28204447_3 WHERE l < 2.0
``` | 40,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_28204447_3 (tries_for VARCHAR, l INTEGER)\n\n Question: Name the tries for when L is less than 2.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_2820584_2 (year INTEGER)
Question: What is the most recent year shown for Betty Stove?
Here is the SQLite query to answer to the question: What is the most recent ... | To answer the question about the most recent year shown for Betty Stove using the provided schema, you will need to join the relevant tables or apply any necessary filters specific to Betty Stove, which the provided schema does not detail. However, based solely on the schema and correcting the understanding of your ori... | 40,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_2820584_2 (year INTEGER)\n\n Question: What is the most recent year shown for Betty Stove?\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_2820584_2 (partner VARCHAR, surface VARCHAR)
Question: Who was Betty's partner when the surface is hard?
Here is the SQLite query to answer to the question: Who wa... | Here is the corrected SQLite query to answer the question about Betty's partner when the surface is hard:
```
SELECT partner FROM table_2820584_2 WHERE surface = "Hard" AND partner = "Betty"
``` | 40,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_2820584_2 (partner VARCHAR, surface VARCHAR)\n\n Question: Who was Betty's partner when the surface is hard?\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_28201906_1 (drawn INTEGER)
Question: What is the lowest number of drawn games by a team?
Here is the SQLite query to answer to the question: What is the lowest num... | Your SQLite query is correct for finding the lowest number of drawn games from the `table_28201906_1`. Here it is wrapped in code formatting as requested:
```
SELECT MIN(drawn) FROM table_28201906_1;
``` | 40,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_28201906_1 (drawn INTEGER)\n\n Question: What is the lowest number of drawn games by a team?\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_28201906_1 (pts_for VARCHAR, won VARCHAR)
Question: How many points did the team that won 5 games make?
Here is the SQLite query to answer to the question: How man... | The provided query seems to be incorrect because you need to select points from the rows where the number of games won is actually 5, not the string '5'. You should use a condition to count the won games correctly. Here's the corrected SQLite query:
```sql
SELECT pts_for FROM table_28201906_1 WHERE won = '5'
```
This... | 40,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_28201906_1 (pts_for VARCHAR, won VARCHAR)\n\n Question: How many points did the team that won 5 games make?\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_28201906_1 (points VARCHAR, pts_agst VARCHAR)
Question: How many points does the club that had 45 points against it have?
Here is the SQLite query to answer to the... | Your query looks correct based on the given schema and the question you want to answer. Here’s the SQLite query wrapped in the appropriate code block:
```
SELECT points FROM table_28201906_1 WHERE pts_agst = '45'
```
Note: If `pts_agst` is stored as a VARCHAR, comparing it with the string `'45'` is necessary. If `pts... | 40,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_28201906_1 (points VARCHAR, pts_agst VARCHAR)\n\n Question: How many points does the club that had 45 points against it have... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28211213_2 (institution VARCHAR, team_nickname VARCHAR)
Question: When gray wolves is the team nickname how many institutions are there?
Here is the SQLite query t... | Here is the SQLite query to answer the question about how many institutions have the team nickname "Gray Wolves":
```sql
SELECT COUNT(institution) FROM table_28211213_2 WHERE team_nickname = "Gray Wolves";
``` | 40,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_28211213_2 (institution VARCHAR, team_nickname VARCHAR)\n\n Question: When gray wolves is the team nickname how many institu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28211213_2 (team_nickname VARCHAR, location VARCHAR)
Question: When sylvania, oh is the location what is the team nickname?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question:
```
SELECT team_nickname FROM table_28211213_2 WHERE location = "Sylvania, OH"
``` | 40,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_28211213_2 (team_nickname VARCHAR, location VARCHAR)\n\n Question: When sylvania, oh is the location what is the team nickna... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28211213_2 (institution VARCHAR, location VARCHAR)
Question: When indianapolis, indiana is the location what is the institution?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question:
```sql
SELECT institution FROM table_28211213_2 WHERE location = "Indianapolis, Indiana";
``` | 40,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_28211213_2 (institution VARCHAR, location VARCHAR)\n\n Question: When indianapolis, indiana is the location what is the inst... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28211213_2 (team_nickname VARCHAR, affiliation VARCHAR)
Question: When private/ nonsectarian is the the affiliation what is the team nickname?
Here is the SQLite q... | Here is the SQLite query to answer your question:
```
SELECT team_nickname FROM table_28211213_2 WHERE affiliation = "Private/ Nonsectarian";
``` | 40,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_28211213_2 (team_nickname VARCHAR, affiliation VARCHAR)\n\n Question: When private/ nonsectarian is the the affiliation what... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28211213_2 (team_nickname VARCHAR, enrollment VARCHAR)
Question: 4512 is the enrollment what is the team nickname?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question regarding the team nickname for the enrollment of 4512:
```
SELECT team_nickname FROM table_28211213_2 WHERE enrollment = '4512'
```
Note: The enrollment value is enclosed in single quotes since it is a VARCHAR type. | 40,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_28211213_2 (team_nickname VARCHAR, enrollment VARCHAR)\n\n Question: 4512 is the enrollment what is the team nickname?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2820584_3 (championship VARCHAR, partner VARCHAR)
Question: What championship was played with Allan Stone as a partner?
Here is the SQLite query to answer to the q... | Your SQLite query is correct. Here it is wrapped in the required format:
```
SELECT championship FROM table_2820584_3 WHERE partner = "Allan Stone"
``` | 40,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_2820584_3 (championship VARCHAR, partner VARCHAR)\n\n Question: What championship was played with Allan Stone as a partner?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2820584_3 (partner VARCHAR, year VARCHAR)
Question: How many different partners played in the finale in 1973?
Here is the SQLite query to answer to the question: H... | Here is the SQLite query to answer the question about how many different partners played in the finale in 1973:
```
SELECT COUNT(DISTINCT partner) FROM table_2820584_3 WHERE year = '1973'
```
This query counts the number of distinct partners for the year specified. | 40,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_2820584_3 (partner VARCHAR, year VARCHAR)\n\n Question: How many different partners played in the finale in 1973?\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_2820584_3 (score_in_the_final VARCHAR, partner VARCHAR)
Question: What was the score in the final played with Fred McNair as partner?
Here is the SQLite query to a... | Here is the SQLite query to answer the question:
```
SELECT score_in_the_final FROM table_2820584_3 WHERE partner = "Fred McNair";
``` | 40,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_2820584_3 (score_in_the_final VARCHAR, partner VARCHAR)\n\n Question: What was the score in the final played with Fred McNai... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28210383_1 (original_air_date VARCHAR, prod_code VARCHAR)
Question: What was the orginal air date for episodes with production code 2acx12?
Here is the SQLite quer... | Here is the SQLite query to answer the question regarding the original air date for episodes with production code 2ACX12:
```
SELECT original_air_date FROM table_28210383_1 WHERE prod_code = "2ACX12"
``` | 40,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_28210383_1 (original_air_date VARCHAR, prod_code VARCHAR)\n\n Question: What was the orginal air date for episodes with prod... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28210383_1 (written_by VARCHAR, prod_code VARCHAR)
Question: Who wrote the episode with production code 2acx12?
Here is the SQLite query to answer to the question:... | Here's the SQLite query to answer the question about who wrote the episode with production code 2acx12:
```
SELECT written_by FROM table_28210383_1 WHERE prod_code = "2acx12"
``` | 40,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_28210383_1 (written_by VARCHAR, prod_code VARCHAR)\n\n Question: Who wrote the episode with production code 2acx12?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28210383_1 (no__episode__number_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)
Question: What numbered episode was directed by greg colton and written by patric... | Here is the SQLite query to answer the question about which numbered episode was directed by Greg Colton and written by Patrick Meighan:
```
SELECT no__episode__number_ FROM table_28210383_1 WHERE directed_by = "Greg Colton" AND written_by = "Patrick Meighan"
``` | 40,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_28210383_1 (no__episode__number_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)\n\n Question: What numbered episode was d... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28210383_1 (directed_by VARCHAR, _number__season__number_ VARCHAR)
Question: Who directed # (season #) is 1 ( 2 )?
Here is the SQLite query to answer to the questi... | Your provided SQLite query looks correct for finding the director of the specified season number. Here it is formatted properly:
```
SELECT directed_by FROM table_28210383_1 WHERE _number__season__number_ = "1 ( 2 )"
```
Make sure that the data you are querying matches the format specified in the `WHERE` clause. If ... | 40,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_28210383_1 (directed_by VARCHAR, _number__season__number_ VARCHAR)\n\n Question: Who directed # (season #) is 1 ( 2 )?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28211988_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
Question: Who is everyone on the men's doubles when men's singles is Ma Wenge?
Here is the SQLite query to ... | ```sql
SELECT mens_doubles FROM table_28211988_1 WHERE mens_singles = 'Ma Wenge';
``` | 40,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_28211988_1 (mens_doubles VARCHAR, mens_singles VARCHAR)\n\n Question: Who is everyone on the men's doubles when men's single... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28211988_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
Question: Who are all men's doubles when men's singles is Jean-Michel Saive?
Here is the SQLite query to an... | Your SQLite query to find all men's doubles when men's singles is Jean-Michel Saive is correct. Here it is again wrapped in code formatting:
```
SELECT mens_doubles FROM table_28211988_1 WHERE mens_singles = "Jean-Michel Saive"
``` | 40,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_28211988_1 (mens_doubles VARCHAR, mens_singles VARCHAR)\n\n Question: Who are all men's doubles when men's singles is Jean-M... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28211988_1 (host VARCHAR, mens_singles VARCHAR)
Question: Who are all hosts when men's singles is Ma Wenge?
Here is the SQLite query to answer to the question: Who... | Your provided SQLite query is correct for retrieving the hosts when the men's singles entry is "Ma Wenge". Here is the query wrapped in the appropriate format:
```
SELECT host FROM table_28211988_1 WHERE mens_singles = "Ma Wenge";
``` | 40,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_28211988_1 (host VARCHAR, mens_singles VARCHAR)\n\n Question: Who are all hosts when men's singles is Ma Wenge?\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_28211988_1 (womens_singles VARCHAR, season VARCHAR)
Question: How many people are women's singles in the season of 2000/01?
Here is the SQLite query to answer to t... | Here's the SQLite query to determine how many entries there are for women's singles in the season of 2000/01:
```
SELECT COUNT(womens_singles) FROM table_28211988_1 WHERE season = '2000/01';
``` | 40,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_28211988_1 (womens_singles VARCHAR, season VARCHAR)\n\n Question: How many people are women's singles in the season of 2000/... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28211988_4 (mens_doubles VARCHAR, season VARCHAR)
Question: Name the winners of the mens doubles in the season of 1963/64.
Here is the SQLite query to answer to th... | Here's the SQLite query to retrieve the winners of the men's doubles in the season of 1963/64:
```
SELECT mens_doubles FROM table_28211988_4 WHERE season = '1963/64';
``` | 40,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_28211988_4 (mens_doubles VARCHAR, season VARCHAR)\n\n Question: Name the winners of the mens doubles in the season of 1963/6... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28212888_2 (directed_by VARCHAR, no_in_series VARCHAR)
Question: Who was the director of the episode with series number 116?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about the director of the episode with series number 116:
```
SELECT directed_by FROM table_28212888_2 WHERE no_in_series = '116'
``` | 40,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_28212888_2 (directed_by VARCHAR, no_in_series VARCHAR)\n\n Question: Who was the director of the episode with series number ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28212888_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
Question: What's the title of the episode seen by 12.85 millions of people in the US?
Here is the SQLite ... | Here is the SQLite query to answer the question:
```
SELECT title FROM table_28212888_2 WHERE us_viewers__millions_ = "12.85";
``` | 40,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_28212888_2 (title VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: What's the title of the episode seen by 12.85 millio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28215780_4 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR)
Question: How many episodes had 11.86 million US viewers?
Here is the SQLite query to answer to th... | Here's the SQLite query to answer the question about how many episodes had 11.86 million US viewers, wrapped as requested:
```
SELECT COUNT(no_in_series) FROM table_28215780_4 WHERE us_viewers__millions_ = "11.86"
``` | 40,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_28215780_4 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: How many episodes had 11.86 million US viewer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28215780_4 (title VARCHAR, written_by VARCHAR)
Question: What is the title(s) of episodes written by aron eli coleite?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about the titles of episodes written by Aron Eli Coleite:
```
SELECT title FROM table_28215780_4 WHERE written_by = "aron eli coleite"
``` | 40,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_28215780_4 (title VARCHAR, written_by VARCHAR)\n\n Question: What is the title(s) of episodes written by aron eli coleite?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28215780_4 (original_air_date VARCHAR, written_by VARCHAR)
Question: What are the original air date(s) for episodes written by aron eli coleite?
Here is the SQLite... | Here is the SQLite query to answer the question regarding the original air dates for episodes written by Aron Eli Coleite:
```
SELECT original_air_date FROM table_28215780_4 WHERE written_by = "Aron Eli Coleite";
``` | 40,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_28215780_4 (original_air_date VARCHAR, written_by VARCHAR)\n\n Question: What are the original air date(s) for episodes writ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28232443_1 (producer__s_ VARCHAR, song__s_ VARCHAR)
Question: how many producers are responsible for the song 'calling out to marlboro?
Here is the SQLite query to... | Here is the SQLite query to answer the question about how many producers are responsible for the song 'Calling Out to Marlboro':
```
SELECT COUNT(producer__s_) FROM table_28232443_1 WHERE song__s_ = "Calling Out to Marlboro";
``` | 40,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_28232443_1 (producer__s_ VARCHAR, song__s_ VARCHAR)\n\n Question: how many producers are responsible for the song 'calling o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28232443_1 (year INTEGER, artist VARCHAR)
Question: what was the first year that kid creole and the coconuts recorded with I Too Have Seen The Woods / Sire Records?... | Here is the SQLite query to answer your question regarding the first year that Kid Creole and the Coconuts recorded with "I Too Have Seen The Woods" / Sire Records:
```sql
SELECT MIN(year)
FROM table_28232443_1
WHERE artist = "Kid Creole and the Coconuts" AND
song = "I Too Have Seen The Woods" AND
labe... | 40,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_28232443_1 (year INTEGER, artist VARCHAR)\n\n Question: what was the first year that kid creole and the coconuts recorded wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2822193_1 (seasons VARCHAR, series VARCHAR)
Question: How many seasons are there with Formula Holden?
Here is the SQLite query to answer to the question: How many ... | Here is the SQLite query to answer the question: How many seasons are there with Formula Holden?:
```
SELECT COUNT(seasons) FROM table_2822193_1 WHERE series = "Formula Holden"
``` | 40,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_2822193_1 (seasons VARCHAR, series VARCHAR)\n\n Question: How many seasons are there with Formula Holden?\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_2822193_1 (poles INTEGER, races VARCHAR)
Question: How many poles are there with 2 races?
Here is the SQLite query to answer to the question: How many poles are th... | The SQLite query you've provided seems to have a small issue. The condition `races = 2` is trying to find rows where the `races` column equals 2, but since the `races` column is of type VARCHAR, it would need to match the string value '2'.
However, considering you want to count how many unique `poles` have exactly 2 ... | 40,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_2822193_1 (poles INTEGER, races VARCHAR)\n\n Question: How many poles are there with 2 races?\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_2822193_1 (point_finishes__non_podium_ INTEGER, series VARCHAR)
Question: What's the most amount of point finishes for v8supercar?
Here is the SQLite query to answ... | Your SQLite query to find the most amount of point finishes for the V8Supercar series is correct. Here's the query wrapped in the requested format:
```
SELECT MAX(point_finishes__non_podium_) FROM table_2822193_1 WHERE series = "V8Supercar";
``` | 40,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_2822193_1 (point_finishes__non_podium_ INTEGER, series VARCHAR)\n\n Question: What's the most amount of point finishes for v... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28220778_21 (high_rebounds VARCHAR, game VARCHAR)
Question: How many people had high rebounds in game 14?
Here is the SQLite query to answer to the question: How m... | Here is the SQLite query to answer the question of how many people had high rebounds in game 14:
```
SELECT COUNT(high_rebounds) FROM table_28220778_21 WHERE game = '14'
```
Note: Make sure to enclose '14' in quotes since the `game` column is of type `VARCHAR`. | 40,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_28220778_21 (high_rebounds VARCHAR, game VARCHAR)\n\n Question: How many people had high rebounds in game 14?\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_28220778_21 (score VARCHAR, date VARCHAR)
Question: What is every score when the date is January 2?
Here is the SQLite query to answer to the question: What is eve... | Your SQLite query to retrieve every score when the date is January 2 is correct. Here it is wrapped in code formatting:
```
SELECT score FROM table_28220778_21 WHERE date = "January 2";
``` | 40,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_28220778_21 (score VARCHAR, date VARCHAR)\n\n Question: What is every score when the date is January 2?\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_28243691_1 (enrollment INTEGER, institution VARCHAR)
Question: What was the highest number of students in attendance for the university of north texas?
Here is the... | Your SQLite query is correct for retrieving the highest number of students in attendance for the University of North Texas. Here it is, wrapped as requested:
```
SELECT MAX(enrollment) FROM table_28243691_1 WHERE institution = "University of North Texas";
``` | 40,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_28243691_1 (enrollment INTEGER, institution VARCHAR)\n\n Question: What was the highest number of students in attendance for... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243691_1 (team_nickname VARCHAR, institution VARCHAR)
Question: What is the mascot for texas tech university?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the mascot for Texas Tech University:
```
SELECT team_nickname FROM table_28243691_1 WHERE institution = "Texas Tech University"
``` | 40,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_28243691_1 (team_nickname VARCHAR, institution VARCHAR)\n\n Question: What is the mascot for texas tech university?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243691_1 (enrollment VARCHAR, affiliation VARCHAR)
Question: What is the total enrollment for private/ disciples of christ?
Here is the SQLite query to answer to... | To get the total enrollment for "Private/ Disciples of Christ", you would typically want to sum up the enrollment values. However, since the `enrollment` field is of type `VARCHAR`, you need to convert it to an integer before summing. Here's the correct SQLite query:
```sql
SELECT SUM(CAST(enrollment AS INTEGER)) AS t... | 40,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_28243691_1 (enrollment VARCHAR, affiliation VARCHAR)\n\n Question: What is the total enrollment for private/ disciples of ch... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243691_1 (team_nickname VARCHAR, location VARCHAR)
Question: How many mascotts are there for college station, texas
Here is the SQLite query to answer to the que... | Your SQL query looks correct for counting the number of mascots in College Station, Texas. Here it is wrapped with the appropriate formatting:
```
SELECT COUNT(team_nickname) FROM table_28243691_1 WHERE location = "College Station, Texas";
```
This query counts the number of entries in the `table_28243691_1` table w... | 40,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_28243691_1 (team_nickname VARCHAR, location VARCHAR)\n\n Question: How many mascotts are there for college station, texas\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243691_1 (enrollment INTEGER, founded VARCHAR)
Question: List the highest number of students in attendance for the institution that started in 1923.
Here is the ... | Your query is almost correct but there's a small adjustment needed regarding how the year is compared. Since the `founded` column is of type `VARCHAR`, you should compare it as a string. Here’s the corrected version of the query:
```
SELECT MAX(enrollment) FROM table_28243691_1 WHERE founded = '1923'
```
This ensure... | 40,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_28243691_1 (enrollment INTEGER, founded VARCHAR)\n\n Question: List the highest number of students in attendance for the ins... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28241890_2 (next_in_line VARCHAR, heir VARCHAR)
Question: How many next in lines had heirs of Archduke Karl?
Here is the SQLite query to answer to the question: Ho... | Your SQLite query to count how many next in lines had heirs of Archduke Karl is correct. Here it is wrapped in the code block as you requested:
```
SELECT COUNT(next_in_line) FROM table_28241890_2 WHERE heir = "Archduke Karl";
``` | 40,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_28241890_2 (next_in_line VARCHAR, heir VARCHAR)\n\n Question: How many next in lines had heirs of Archduke Karl?\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_28243323_1 (club_name VARCHAR, writer_composer VARCHAR)
Question: Name the team that has a song writer named larry spokes.
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the team that has a songwriter named Larry Spokes:
```sql
SELECT club_name FROM table_28243323_1 WHERE writer_composer = 'Larry Spokes';
``` | 40,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_28243323_1 (club_name VARCHAR, writer_composer VARCHAR)\n\n Question: Name the team that has a song writer named larry spoke... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243323_1 (name_of_team_song VARCHAR, writer_composer VARCHAR)
Question: How man teams have a writer named harry angus?
Here is the SQLite query to answer to the ... | Your SQLite query needs a small correction regarding the case sensitivity in the string comparison. SQLite usually uses case-insensitive comparisons for strings, but it’s best to ensure consistency in how the name is referenced. Assuming you want to find teams with a writer exactly named "Harry Angus", but also conside... | 40,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_28243323_1 (name_of_team_song VARCHAR, writer_composer VARCHAR)\n\n Question: How man teams have a writer named harry angus?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243323_1 (name_of_team_song VARCHAR, writer_composer VARCHAR)
Question: Name the team anthem that was written by quentin eyers and les kaczmarek.
Here is the SQL... | Here is the SQLite query to answer the question regarding the team anthem written by Quentin Eyers and Les Kaczmarek:
```
SELECT name_of_team_song FROM table_28243323_1 WHERE writer_composer = "Quentin Eyers and Les Kaczmarek";
``` | 40,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_28243323_1 (name_of_team_song VARCHAR, writer_composer VARCHAR)\n\n Question: Name the team anthem that was written by quent... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243323_1 (basis_for_team_song VARCHAR, club_name VARCHAR)
Question: How many team songs does fremantle have?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question of how many team songs Fremantle has:
```
SELECT COUNT(basis_for_team_song) FROM table_28243323_1 WHERE club_name = "Fremantle";
``` | 40,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_28243323_1 (basis_for_team_song VARCHAR, club_name VARCHAR)\n\n Question: How many team songs does fremantle have?\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_28243323_1 (basis_for_team_song VARCHAR, writer_composer VARCHAR)
Question: What is the name of the team song written by ken walther?
Here is the SQLite query to a... | Here's the SQLite query wrapped as you requested:
```
SELECT basis_for_team_song FROM table_28243323_1 WHERE writer_composer = "Ken Walther";
``` | 40,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_28243323_1 (basis_for_team_song VARCHAR, writer_composer VARCHAR)\n\n Question: What is the name of the team song written by... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243691_2 (founded VARCHAR, team_nickname VARCHAR)
Question: In how many different years was the team nicknamed Comets founded?
Here is the SQLite query to answer... | To accurately count the distinct years in which the team nicknamed "Comets" was founded, you should use the `DISTINCT` keyword in your query. Here is the corrected SQLite query:
```
SELECT COUNT(DISTINCT founded) FROM table_28243691_2 WHERE team_nickname = "Comets"
```
This query will give you the number of differen... | 40,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_28243691_2 (founded VARCHAR, team_nickname VARCHAR)\n\n Question: In how many different years was the team nicknamed Comets ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243691_2 (team_nickname VARCHAR, enrollment VARCHAR)
Question: What's the nickname of the team with enrollment of 40747?
Here is the SQLite query to answer to th... | Here's the SQLite query to answer the question about the nickname of the team with an enrollment of 40747:
```
SELECT team_nickname FROM table_28243691_2 WHERE enrollment = '40747'
```
Note: The enrollment value should be enclosed in quotes since it is defined as a VARCHAR type in the schema. | 40,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_28243691_2 (team_nickname VARCHAR, enrollment VARCHAR)\n\n Question: What's the nickname of the team with enrollment of 4074... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28243691_2 (institution VARCHAR, location VARCHAR)
Question: What school is located in Huntsville, Texas?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question about which school is located in Huntsville, Texas:
```
SELECT institution FROM table_28243691_2 WHERE location = "Huntsville, Texas";
``` | 40,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_28243691_2 (institution VARCHAR, location VARCHAR)\n\n Question: What school is located in Huntsville, Texas?\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_28243691_2 (enrollment VARCHAR, team_nickname VARCHAR)
Question: How many students are enrolled in the team nicknamed Comets?
Here is the SQLite query to answer to... | To count the number of students enrolled in the team nicknamed "Comets", you should modify your query to use the `COUNT()` function. Here is the correct SQL query wrapped in code formatting:
```
SELECT COUNT(enrollment) AS student_count FROM table_28243691_2 WHERE team_nickname = "Comets";
``` | 40,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_28243691_2 (enrollment VARCHAR, team_nickname VARCHAR)\n\n Question: How many students are enrolled in the team nicknamed Co... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28281704_1 (tenant VARCHAR, country VARCHAR, stadium VARCHAR)
Question: Name the number of tenants for russia at the saransk stadium
Here is the SQLite query to an... | Here is the SQLite query to answer the question about the number of tenants for Russia at the Saransk stadium:
```
SELECT COUNT(tenant) FROM table_28281704_1 WHERE country = "Russia" AND stadium = "Saransk stadium";
``` | 40,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_28281704_1 (tenant VARCHAR, country VARCHAR, stadium VARCHAR)\n\n Question: Name the number of tenants for russia at the sar... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28281704_1 (country VARCHAR, stadium VARCHAR)
Question: Name the country for lusail national stadium
Here is the SQLite query to answer to the question: Name the c... | Here is the SQLite query to answer the question:
```
SELECT country FROM table_28281704_1 WHERE stadium = "Lusail National stadium"
``` | 40,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_28281704_1 (country VARCHAR, stadium VARCHAR)\n\n Question: Name the country for lusail national stadium\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_28281704_1 (city VARCHAR, stadium VARCHAR)
Question: Name the city for los angeles stadium
Here is the SQLite query to answer to the question: Name the city for lo... | Here's the SQLite query to answer the question about the city for the Los Angeles stadium:
```
SELECT city FROM table_28281704_1 WHERE stadium = "Los Angeles stadium"
``` | 40,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_28281704_1 (city VARCHAR, stadium VARCHAR)\n\n Question: Name the city for los angeles stadium\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_28281704_1 (stadium VARCHAR, city VARCHAR)
Question: Name the stadium for nizhny novgorod
Here is the SQLite query to answer to the question: Name the stadium for ... | Your SQLite query is correct. Here's the query wrapped in the code block:
```
SELECT stadium FROM table_28281704_1 WHERE city = "Nizhny Novgorod"
``` | 40,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_28281704_1 (stadium VARCHAR, city VARCHAR)\n\n Question: Name the stadium for nizhny novgorod\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_28281704_1 (country VARCHAR, city VARCHAR)
Question: Name the country for athens
Here is the SQLite query to answer to the question: Name the country for athens:
`... | The query you provided counts the number of countries with a city named "Athens." However, if you want to retrieve the name of the country for Athens instead, you should use the following query:
```
SELECT country FROM table_28281704_1 WHERE city = "Athens"
``` | 40,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_28281704_1 (country VARCHAR, city VARCHAR)\n\n Question: Name the country for athens\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28283535_4 (date_aired VARCHAR, episode VARCHAR)
Question: When did the episode 1.13 air for the first time?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question of when the episode 1.13 aired for the first time:
```
SELECT date_aired
FROM table_28283535_4
WHERE episode = "1.13"
ORDER BY date_aired
LIMIT 1;
``` | 40,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_28283535_4 (date_aired VARCHAR, episode VARCHAR)\n\n Question: When did the episode 1.13 air for the first time?\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_28283535_4 (weekly_rank VARCHAR, episode VARCHAR)
Question: What's the weekly rank of episode 1.03?
Here is the SQLite query to answer to the question: What's the ... | Here is the SQLite query to answer the question: What's the weekly rank of episode 1.03?:
```
SELECT weekly_rank FROM table_28283535_4 WHERE episode = "1.03";
``` | 40,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_28283535_4 (weekly_rank VARCHAR, episode VARCHAR)\n\n Question: What's the weekly rank of episode 1.03?\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_28283535_4 (rating VARCHAR, episode VARCHAR)
Question: What is the rating of episode 1.04?
Here is the SQLite query to answer to the question: What is the rating o... | Here is the SQLite query to answer the question about the rating of episode 1.04:
```
SELECT rating FROM table_28283535_4 WHERE episode = "1.04";
``` | 40,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_28283535_4 (rating VARCHAR, episode VARCHAR)\n\n Question: What is the rating of episode 1.04?\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_28286776_12 (cap_s_ VARCHAR, club_s_ VARCHAR)
Question: How many items are listed under caps when burnley is the club team?
Here is the SQLite query to answer to t... | Your SQLite query is correct for answering the question about how many caps are listed when Burnley is the club team. Here it is wrapped in code formatting:
```
SELECT COUNT(cap_s_) FROM table_28286776_12 WHERE club_s_ = "Burnley";
``` | 40,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_28286776_12 (cap_s_ VARCHAR, club_s_ VARCHAR)\n\n Question: How many items are listed under caps when burnley is the club te... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28286776_12 (club_s_ VARCHAR, goal_s_ VARCHAR)
Question: What club did the championship player come from who had 10 goals?
Here is the SQLite query to answer to th... | The correct SQLite query to find the club of the championship player who had 10 goals should ensure that the `goal_s_` field is properly compared to the integer value 10. If `goal_s_` is stored as a string (which it likely is, given the VARCHAR type), you should either convert it to an integer or compare it as a string... | 40,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_28286776_12 (club_s_ VARCHAR, goal_s_ VARCHAR)\n\n Question: What club did the championship player come from who had 10 goal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28286776_12 (goal_s_ INTEGER, club_s_ VARCHAR)
Question: How many goals did the player from Ipswich town score?
Here is the SQLite query to answer to the question:... | The query you provided does not correctly answer the question about the total number of goals scored by the player from Ipswich Town. Instead, it retrieves the minimum number of goals, which is not the intended outcome.
To find the total number of goals scored by the player from Ipswich Town, you should use the `SUM()... | 40,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_28286776_12 (goal_s_ INTEGER, club_s_ VARCHAR)\n\n Question: How many goals did the player from Ipswich town score?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28286776_50 (player VARCHAR, cap_s_ VARCHAR)
Question: When 16 is the cap who is the player?
Here is the SQLite query to answer to the question: When 16 is the cap... | Your query is almost correct, but since the `cap_s_` column is of type `VARCHAR`, you need to compare it with a string. So, you should use quotes around the number 16 in your query. Here's the corrected query:
```
SELECT player FROM table_28286776_50 WHERE cap_s_ = '16'
``` | 40,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_28286776_50 (player VARCHAR, cap_s_ VARCHAR)\n\n Question: When 16 is the cap who is the player?\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_28286776_50 (club_s_ VARCHAR, international_debut VARCHAR)
Question: When 2010 v australia is the interantional debut what is the club?
Here is the SQLite query to... | Here is the SQLite query to answer the question:
```
SELECT club_s_ FROM table_28286776_50 WHERE international_debut = "2010 v Australia"
``` | 40,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_28286776_50 (club_s_ VARCHAR, international_debut VARCHAR)\n\n Question: When 2010 v australia is the interantional debut wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28286776_50 (club_s_ VARCHAR, player VARCHAR)
Question: When winston reid category:articles with hcards is the player what is the club?
Here is the SQLite query to... | Based on your query request, it seems like you want to retrieve the club associated with the player "Winston Reid" from the specified table. However, the phrasing "Winston Reid category:articles with hcards" is ambiguous, as it seems to suggest a category rather than a straightforward player name.
Assuming you meant ... | 40,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_28286776_50 (club_s_ VARCHAR, player VARCHAR)\n\n Question: When winston reid category:articles with hcards is the player wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28286776_50 (cap_s_ VARCHAR, goal_s_ VARCHAR, player VARCHAR)
Question: When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(... | Here is the SQLite query to answer the question:
```
SELECT COUNT(cap_s_) FROM table_28286776_50 WHERE goal_s_ = '1' AND player = 'tommy smith category:articles with hcards';
``` | 40,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_28286776_50 (cap_s_ VARCHAR, goal_s_ VARCHAR, player VARCHAR)\n\n Question: When tommy smith category:articles with hcards i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28286776_50 (international_debut VARCHAR, player VARCHAR)
Question: When rory fallon category:articles with hcards is the player when is the international debut?
... | It looks like there may be a misunderstanding in the structure of the query. The player should be referenced correctly, and the term "Category:Articles with hCards" appears to be a category instead of part of the player's name. If you are looking for the international debut of the player "Rory Fallon," the query should... | 40,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_28286776_50 (international_debut VARCHAR, player VARCHAR)\n\n Question: When rory fallon category:articles with hcards is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2828803_1 (title VARCHAR, written_by VARCHAR)
Question: What is th title of the episode written by Nick Thiel?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about the title of the episode written by Nick Thiel:
```
SELECT title FROM table_2828803_1 WHERE written_by = "Nick Thiel";
``` | 40,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_2828803_1 (title VARCHAR, written_by VARCHAR)\n\n Question: What is th title of the episode written by Nick Thiel?\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_2828803_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
Question: How many million u.s. viewers watched the episode with a production code of 2t7004?
He... | Here is the SQLite query to answer the question about how many million U.S. viewers watched the episode with a production code of 2t7004:
```
SELECT us_viewers__millions_ FROM table_2828803_1 WHERE production_code = "2t7004"
``` | 40,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_2828803_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)\n\n Question: How many million u.s. viewers watched the e... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2828803_1 (title VARCHAR, directed_by VARCHAR)
Question: What is the name of the episode that was directed by Dennis Smith?
Here is the SQLite query to answer to t... | Your SQLite query is correct. Here it is wrapped in the appropriate code format:
```
SELECT title FROM table_2828803_1 WHERE directed_by = "Dennis Smith";
``` | 40,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_2828803_1 (title VARCHAR, directed_by VARCHAR)\n\n Question: What is the name of the episode that was directed by Dennis Smi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28298589_2 (site VARCHAR, time VARCHAR, visiting_team VARCHAR)
Question: How many site entries are there at 3:30pm and the visiting team is coastal carolina?
Here ... | Here is the SQLite query to answer the question regarding the number of site entries at 3:30pm with the visiting team being Coastal Carolina:
```
SELECT COUNT(site) FROM table_28298589_2 WHERE time = "3:30pm" AND visiting_team = "Coastal Carolina"
``` | 40,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_28298589_2 (site VARCHAR, time VARCHAR, visiting_team VARCHAR)\n\n Question: How many site entries are there at 3:30pm and t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28298589_2 (result VARCHAR, visiting_team VARCHAR)
Question: What is the result when the visiting team is syracuse?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question: What is the result when the visiting team is syracuse?:
```
SELECT result FROM table_28298589_2 WHERE visiting_team = "syracuse"
``` | 40,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_28298589_2 (result VARCHAR, visiting_team VARCHAR)\n\n Question: What is the result when the visiting team is syracuse?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28298471_14 (stage INTEGER, winner VARCHAR)
Question: When svein tuft is the winner what is the highest stage?
Here is the SQLite query to answer to the question: ... | Your SQLite query to find the highest stage where Svein Tuft is the winner is correctly structured. Here it is, wrapped in code formatting:
```
SELECT MAX(stage) FROM table_28298471_14 WHERE winner = "Svein Tuft";
``` | 40,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_28298471_14 (stage INTEGER, winner VARCHAR)\n\n Question: When svein tuft is the winner what is the highest stage?\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_28298471_14 (stage VARCHAR, winner VARCHAR)
Question: when svein tuft is the winner how many stages are there?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding how many stages there are when Svein Tuft is the winner:
```
SELECT COUNT(stage) FROM table_28298471_14 WHERE winner = "Svein Tuft"
``` | 40,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_28298471_14 (stage VARCHAR, winner VARCHAR)\n\n Question: when svein tuft is the winner how many stages are there?\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_28298471_14 (team_classification VARCHAR, winner VARCHAR)
Question: when hayden roulston is the winner what is the team classification?
Here is the SQLite query to... | Your SQLite query is correct. Here's the formatted code:
```
SELECT team_classification FROM table_28298471_14 WHERE winner = "Hayden Roulston";
```
This query will retrieve the team classification for entries where Hayden Roulston is listed as the winner. | 40,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_28298471_14 (team_classification VARCHAR, winner VARCHAR)\n\n Question: when hayden roulston is the winner what is the team ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28298471_14 (stage VARCHAR, mountains_classification VARCHAR)
Question: When michael reihs is the mountains classification what is the stage?
Here is the SQLite qu... | Here is the SQLite query to answer the question:
```
SELECT stage FROM table_28298471_14 WHERE mountains_classification = "Michael Reihs";
``` | 40,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_28298471_14 (stage VARCHAR, mountains_classification VARCHAR)\n\n Question: When michael reihs is the mountains classificati... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28298471_14 (team_classification VARCHAR, points_classification VARCHAR)
Question: When michael van stayen is the points classification what is the team classificat... | Here is the SQLite query to answer the question. When Michael Van Stayen is the points classification, we are looking for the corresponding team classification:
```
SELECT team_classification FROM table_28298471_14 WHERE points_classification = "Michael Van Stayen";
``` | 40,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_28298471_14 (team_classification VARCHAR, points_classification VARCHAR)\n\n Question: When michael van stayen is the points... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28298471_14 (stage VARCHAR, winner VARCHAR)
Question: When hayden roulston is the winner what is the stage?
Here is the SQLite query to answer to the question: Whe... | Here is the SQLite query to answer the question: When Hayden Roulston is the winner, what is the stage?:
```
SELECT stage FROM table_28298471_14 WHERE winner = "Hayden Roulston";
``` | 40,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_28298471_14 (stage VARCHAR, winner VARCHAR)\n\n Question: When hayden roulston is the winner what is the stage?\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_28298589_4 (date VARCHAR, visiting_team VARCHAR)
Question: What date was the game where Texas Southern was the visiting team?
Here is the SQLite query to answer to... | Here is the SQLite query to find the date of the game where Texas Southern was the visiting team:
```
SELECT date FROM table_28298589_4 WHERE visiting_team = 'Texas Southern';
``` | 40,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_28298589_4 (date VARCHAR, visiting_team VARCHAR)\n\n Question: What date was the game where Texas Southern was the visiting ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28298589_4 (broadcast VARCHAR, home_team VARCHAR)
Question: How many Connecticut home games were broadcast?
Here is the SQLite query to answer to the question: How... | Your provided SQLite query is correct for counting the number of Connecticut home games that were broadcast. To present it clearly, here it is wrapped in the requested format:
```
SELECT COUNT(broadcast) FROM table_28298589_4 WHERE home_team = "Connecticut";
```
This query counts the number of records in the `table_... | 40,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_28298589_4 (broadcast VARCHAR, home_team VARCHAR)\n\n Question: How many Connecticut home games were broadcast?\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_28298589_4 (site VARCHAR, home_team VARCHAR)
Question: In what facility was Pittsburgh's home game played?
Here is the SQLite query to answer to the question: In w... | Here is the SQLite query to answer the question about the facility where Pittsburgh's home game was played:
```
SELECT site FROM table_28298589_4 WHERE home_team = "Pittsburgh"
``` | 40,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_28298589_4 (site VARCHAR, home_team VARCHAR)\n\n Question: In what facility was Pittsburgh's home game played?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28298589_4 (result VARCHAR, home_team VARCHAR)
Question: What was the final score of Washington's home game?
Here is the SQLite query to answer to the question: Wh... | Your SQLite query to find the final score of Washington's home game is correct. Here is the wrapped code answer:
```
SELECT result FROM table_28298589_4 WHERE home_team = "Washington"
``` | 40,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_28298589_4 (result VARCHAR, home_team VARCHAR)\n\n Question: What was the final score of Washington's home game?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_283203_1 (location VARCHAR, capacity VARCHAR)
Question: Where is the team that has a stadium capable of a capacity of 10,517 5,006 located?
Here is the SQLite quer... | It seems there might be a misunderstanding with the `capacity` you're looking for. The value "10,517 5,006" appears to be a combination of two capacities. If you're looking for teams with stadiums that have a capacity of either 10,517 or 5,006, you would need to use the `OR` condition in your SQL query.
Here’s the cor... | 40,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_283203_1 (location VARCHAR, capacity VARCHAR)\n\n Question: Where is the team that has a stadium capable of a capacity of 10... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_283203_1 (home_venue VARCHAR, founded VARCHAR)
Question: Where is the home venue of the team founded in 1993?
Here is the SQLite query to answer to the question: W... | Your SQLite query is almost correct, but since the `founded` column is defined as a `VARCHAR`, the value should be enclosed in quotes. Here is the corrected query:
```
SELECT home_venue FROM table_283203_1 WHERE founded = '1993'
``` | 40,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_283203_1 (home_venue VARCHAR, founded VARCHAR)\n\n Question: Where is the home venue of the team founded in 1993?\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_283203_1 (years_active VARCHAR, home_venue VARCHAR)
Question: How long has the team who owns North Shore Events Centre Vector Arena been active?
Here is the SQLite... | Your SQLite query is correctly formulated to retrieve the information about how long the team owning the North Shore Events Centre Vector Arena has been active. Here is your query wrapped appropriately:
```
SELECT years_active FROM table_283203_1 WHERE home_venue = "North Shore Events Centre Vector Arena";
``` | 40,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_283203_1 (years_active VARCHAR, home_venue VARCHAR)\n\n Question: How long has the team who owns North Shore Events Centre V... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_283203_1 (capacity VARCHAR, club VARCHAR)
Question: What is the capacity for the Home Venue of the New Zealand Breakers club?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the capacity for the Home Venue of the New Zealand Breakers club:
```
SELECT capacity FROM table_283203_1 WHERE club = "New Zealand Breakers"
``` | 40,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_283203_1 (capacity VARCHAR, club VARCHAR)\n\n Question: What is the capacity for the Home Venue of the New Zealand Breakers ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28334498_3 (no_in_season INTEGER, directed_by VARCHAR, us_viewers__millions_ VARCHAR)
Question: How many episodes were directed by Jeff Melman and 1.21million viewe... | The provided SQLite query is not correct for counting the number of episodes. Instead, you should use the `COUNT` function to get the total number of episodes directed by Jeff Melman with 1.21 million viewers. Here’s the correct query wrapped in triple backticks:
```
SELECT COUNT(*) FROM table_28334498_3 WHERE directe... | 40,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_28334498_3 (no_in_season INTEGER, directed_by VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: How many episodes were d... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28334498_3 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
Question: What air date had 1.01 million U.S. viewers?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding the air date that had 1.01 million U.S. viewers:
```
SELECT original_air_date FROM table_28334498_3 WHERE us_viewers__millions_ = "1.01"
``` | 40,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_28334498_3 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: What air date had 1.01 million U.S. view... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.