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_28621502_1 (title VARCHAR, publisher VARCHAR)
Question: Which titles have been published by Gamehouse Live?
Here is the SQLite query to answer to the question: Whi... | Here is the SQLite query to answer the question about which titles have been published by Gamehouse Live:
```
SELECT title FROM table_28621502_1 WHERE publisher = "Gamehouse Live";
``` | 8,300 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28621502_1 (title VARCHAR, publisher VARCHAR)\n\n Question: Which titles have been published by Gamehouse Live?\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_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR)
Question: What was pinky's bmi at the reunion?
Here is the SQLite query to answer to the question: What was pi... | Here is the SQLite query to answer the question regarding Pinky's BMI at the reunion:
```
SELECT reunion_bmi FROM table_28654454_5 WHERE contestant = "Pinky"
``` | 8,301 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR)\n\n Question: What was pinky's bmi at the reunion?\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_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR)
Question: What was miles's bmi att the reunion?
Here is the SQLite query to answer to the question: What was m... | It seems that the query you provided is counting the number of entries for "Miles" rather than retrieving his BMI. To get Miles's BMI at the reunion, you should use a `SELECT` statement to retrieve the `reunion_bmi` directly. Here is the correct query:
```
SELECT reunion_bmi FROM table_28654454_5 WHERE contestant = "M... | 8,302 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR)\n\n Question: What was miles's bmi att the reunion?\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_28654454_5 (lbs_lost_reunion VARCHAR, finale_weight VARCHAR)
Question: How many lbs were lost at the reunion by the contestant whose finale weight was 151.4?
Here ... | Your SQLite query is correctly constructed to retrieve the pounds lost at the reunion for the contestant with a finale weight of 151.4. Here it is wrapped in the requested format:
```
SELECT lbs_lost_reunion FROM table_28654454_5 WHERE finale_weight = "151.4"
``` | 8,303 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28654454_5 (lbs_lost_reunion VARCHAR, finale_weight VARCHAR)\n\n Question: How many lbs were lost at the reunion by the cont... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28654454_5 (finale_weight VARCHAR, starting_bmi VARCHAR)
Question: How many contestants had a starting bmi of 33.1?
Here is the SQLite query to answer to the quest... | Your SQLite query to find the count of contestants with a starting BMI of 33.1 is correct. Here it is wrapped in code format:
```
SELECT COUNT(finale_weight) FROM table_28654454_5 WHERE starting_bmi = '33.1';
```
Notice that single quotes are typically used for string literals in SQL. However, double quotes might wo... | 8,304 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28654454_5 (finale_weight VARCHAR, starting_bmi VARCHAR)\n\n Question: How many contestants had a starting bmi of 33.1?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_reunion VARCHAR)
Question: What is the reunion weight of the contestant that lost 52 lbs at the reunion?
Here is the S... | Your SQLite query is almost correct, but it should use a numerical comparison instead of string comparison for the `lbs_lost_reunion` field, assuming that it is stored as a numeric type rather than a string. Here's the revised version of the query:
```sql
SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_reun... | 8,305 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_reunion VARCHAR)\n\n Question: What is the reunion weight of the contestant tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_finale VARCHAR)
Question: What is the reunion weight of the contestant who lost 74.4 lbs at the finale?
Here is the SQ... | Here is the SQLite query to answer the question regarding the reunion weight of the contestant who lost 74.4 lbs at the finale:
```
SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_finale = "74.4"
``` | 8,306 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_finale VARCHAR)\n\n Question: What is the reunion weight of the contestant who ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28628309_8 (team VARCHAR, category VARCHAR)
Question: Who is the team when the category is blocks per game?
Here is the SQLite query to answer to the question: Who... | Here is the SQLite query to answer the question about which team corresponds to the category "blocks per game":
```sql
SELECT team FROM table_28628309_8 WHERE category = "blocks per game";
``` | 8,307 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_8 (team VARCHAR, category VARCHAR)\n\n Question: Who is the team when the category is blocks per game?\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_28628309_8 (games_played VARCHAR, player VARCHAR)
Question: What is the listed in games played when the player is jimmy alapag?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the games played by the player "Jimmy Alapag":
```
SELECT games_played FROM table_28628309_8 WHERE player = "Jimmy Alapag";
``` | 8,308 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_8 (games_played VARCHAR, player VARCHAR)\n\n Question: What is the listed in games played when the player is jimmy ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28628309_8 (team VARCHAR, player VARCHAR)
Question: What is the team when player is listed as Ronjay Buenafe?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question of what team Ronjay Buenafe is listed on:
```
SELECT team FROM table_28628309_8 WHERE player = "Ronjay Buenafe";
``` | 8,309 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_8 (team VARCHAR, player VARCHAR)\n\n Question: What is the team when player is listed as Ronjay Buenafe?\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_28628309_8 (player VARCHAR, category VARCHAR)
Question: What is the name of the player when the category is listed as field goal percentage?
Here is the SQLite que... | Here is the SQLite query to answer the question regarding the player name when the category is listed as field goal percentage:
```
SELECT player FROM table_28628309_8 WHERE category = "Field goal percentage";
``` | 8,310 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_8 (player VARCHAR, category VARCHAR)\n\n Question: What is the name of the player when the category is listed as fi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28628309_8 (games_played INTEGER, category VARCHAR)
Question: What is the games played when the category is points per game?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question of the games played when the category is "Points per game":
```
SELECT games_played FROM table_28628309_8 WHERE category = "Points per game"
``` | 8,311 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_8 (games_played INTEGER, category VARCHAR)\n\n Question: What is the games played when the category is points per g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR)
Question: Who is the player when the category is steals per game?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about who the player is when the category is "steals per game":
```
SELECT player FROM table_28628309_9 WHERE category = "steals per game"
``` | 8,312 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR)\n\n Question: Who is the player when the category is steals per game?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28628309_9 (category VARCHAR, player VARCHAR)
Question: What are the names of the categories when the player is olsen racela?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the categories associated with the player "Olsen Racela":
```
SELECT category FROM table_28628309_9 WHERE player = "Olsen Racela"
``` | 8,313 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_9 (category VARCHAR, player VARCHAR)\n\n Question: What are the names of the categories when the player is olsen ra... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28628309_9 (totals VARCHAR, player VARCHAR)
Question: How many times is a total listed when the player is Jay Washington?
Here is the SQLite query to answer to the... | Your provided SQLite query is correct for counting the number of times a total is listed for the player named Jay Washington. Here it is wrapped in code format:
```
SELECT COUNT(totals) FROM table_28628309_9 WHERE player = "Jay Washington";
``` | 8,314 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_9 (totals VARCHAR, player VARCHAR)\n\n Question: How many times is a total listed when the player is Jay Washington... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28628309_9 (totals VARCHAR, average VARCHAR, category VARCHAR)
Question: What is the total listed when the average is 0.667 and the category is 3-pt field goal perc... | Here is the SQLite query you requested, wrapped as you specified:
```
SELECT totals FROM table_28628309_9 WHERE average = "0.667" AND category = "3-pt field goal percentage"
``` | 8,315 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_9 (totals VARCHAR, average VARCHAR, category VARCHAR)\n\n Question: What is the total listed when the average is 0.... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR)
Question: What is the name of the player when the category is 3-pt field goal percentage?
Here is the SQLite query to... | Here is the SQLite query to find the name of the player when the category is 3-pt field goal percentage:
```
SELECT player FROM table_28628309_9 WHERE category = "3-pt field goal percentage";
``` | 8,316 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR)\n\n Question: What is the name of the player when the category is 3-pt field g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2866514_1 (title VARCHAR, us_viewers__million_ VARCHAR)
Question: What are the titles of episodes with 5.66 million US viewers?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the titles of episodes with 5.66 million US viewers:
```
SELECT title FROM table_2866514_1 WHERE us_viewers__million_ = "5.66"
``` | 8,317 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2866514_1 (title VARCHAR, us_viewers__million_ VARCHAR)\n\n Question: What are the titles of episodes with 5.66 million US v... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2866514_1 (title VARCHAR, directed_by VARCHAR)
Question: What are the titles of episodes directed by whitney ransick?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the titles of episodes directed by Whitney Ransick:
```
SELECT title FROM table_2866514_1 WHERE directed_by = "Whitney Ransick";
``` | 8,318 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2866514_1 (title VARCHAR, directed_by VARCHAR)\n\n Question: What are the titles of episodes directed by whitney ransick?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2866514_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
Question: Who wrote the episode with 3.96 million US viewers?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question: Who wrote the episode with 3.96 million US viewers?:
```
SELECT written_by FROM table_2866514_1 WHERE us_viewers__million_ = '3.96';
``` | 8,319 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2866514_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)\n\n Question: Who wrote the episode with 3.96 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_28677723_8 (christer_tornell INTEGER, trine_dehli_cleve VARCHAR)
Question: What was the maximum value that Christer Tornell gave when Trine Dehli Cleve gave a 9?
H... | The SQLite query you provided contains a mistake in the condition for `trine_dehli_cleve`, since `trine_dehli_cleve` is of type `VARCHAR` and thus should be compared to a string '9', not an integer.
Here's the corrected query:
```
SELECT MAX(christer_tornell) FROM table_28677723_8 WHERE trine_dehli_cleve = '9'
``` | 8,320 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28677723_8 (christer_tornell INTEGER, trine_dehli_cleve VARCHAR)\n\n Question: What was the maximum value that Christer Torn... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28693349_2 (games INTEGER, player VARCHAR)
Question: How many games did Robert Peare play?
Here is the SQLite query to answer to the question: How many games did R... | The query you provided retrieves the maximum number of games played by Robert Peare, but to get the total number of games he played, you should use the `SUM` function instead. Here is the corrected SQLite query:
```
SELECT SUM(games) FROM table_28693349_2 WHERE player = "Robert Peare"
``` | 8,321 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28693349_2 (games INTEGER, player VARCHAR)\n\n Question: How many games did Robert Peare play?\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_28693349_2 (free_throws INTEGER, player VARCHAR)
Question: How many free throws did Charles Pearman score?
Here is the SQLite query to answer to the question: How ... | Your query is almost correct, but using `MAX(free_throws)` is unnecessary if you are looking for the total number of free throws scored by Charles Pearman. Instead, you would typically want to sum the free throws scored by the player. Here’s how you can rewrite the SQL query:
```sql
SELECT SUM(free_throws) FROM table_... | 8,322 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28693349_2 (free_throws INTEGER, player VARCHAR)\n\n Question: How many free throws did Charles Pearman score?\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_2869837_1 (Shared VARCHAR, last_final VARCHAR)
Question: How many shared titles does the club whose last final was 2012 have?
Here is the SQLite query to answer to... | To count the number of shared titles for the club whose last final was 2012, you can use the `COUNT()` function. Here's the corrected SQLite query:
```
SELECT COUNT(Shared) AS number_of_shared_titles
FROM table_2869837_1
WHERE last_final = '2012';
```
This query counts the number of entries in the `Shared` column ... | 8,323 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2869837_1 (Shared VARCHAR, last_final VARCHAR)\n\n Question: How many shared titles does the club whose last final was 2012 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2869837_1 (last_final VARCHAR, last_title VARCHAR)
Question: What was the year of the last final for the club whose last title was 1990?
Here is the SQLite query t... | Your SQLite query to find the year of the last final for the club whose last title was 1990 looks correct. Here it is wrapped in code formatting:
```
SELECT last_final FROM table_2869837_1 WHERE last_title = "1990"
```
This query retrieves the `last_final` year for records where the `last_title` year is 1990. | 8,324 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2869837_1 (last_final VARCHAR, last_title VARCHAR)\n\n Question: What was the year of the last final for the club whose last... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2869837_1 (Shared INTEGER, last_final VARCHAR)
Question: What is the minimum number of shared titles for the club whose last final was in 2006?
Here is the SQLite ... | Your provided SQLite query is mostly correct, but the value for the `last_final` column needs to be compared as a string since it is defined as `VARCHAR`. Here's the corrected version wrapped in the appropriate code block:
```
SELECT MIN(Shared) AS titles FROM table_2869837_1 WHERE last_final = '2006'
```
This query... | 8,325 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2869837_1 (Shared INTEGER, last_final VARCHAR)\n\n Question: What is the minimum number of shared titles for the club whose ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2869837_1 (last_final INTEGER, last_title VARCHAR)
Question: What is the latest year of last final for the club whose last title was in 1994?
Here is the SQLite qu... | Here is the SQLite query to answer the question about the latest year of last final for the club whose last title was in 1994:
```
SELECT MAX(last_final) FROM table_2869837_1 WHERE last_title = '1994';
``` | 8,326 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2869837_1 (last_final INTEGER, last_title VARCHAR)\n\n Question: What is the latest year of last final for the club whose la... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2869837_1 (runners_up VARCHAR, school VARCHAR)
Question: What are the number of runners up for Royal School Dungannon?
Here is the SQLite query to answer to the qu... | To count the number of runners up for "Royal School Dungannon", you should modify your query to use the `COUNT` function. Here is the corrected SQLite query:
```
SELECT COUNT(runners_up) AS number_of_runners_up
FROM table_2869837_1
WHERE school = "Royal School Dungannon";
``` | 8,327 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2869837_1 (runners_up VARCHAR, school VARCHAR)\n\n Question: What are the number of runners up for Royal School Dungannon?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28715942_5 (track VARCHAR, vocal_percussionist VARCHAR)
Question: What is the track whent the vocal percussionist is unknown?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question about tracks when the vocal percussionist is unknown:
```
SELECT track FROM table_28715942_5 WHERE vocal_percussionist = 'unknown';
``` | 8,328 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28715942_5 (track VARCHAR, vocal_percussionist VARCHAR)\n\n Question: What is the track whent the vocal percussionist is unk... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28715942_5 (arranger_s_ VARCHAR, vocal_percussionist VARCHAR)
Question: Who is the arranger when the vocal percussionist is Alexei Kalveks and Dave Brennan?
Here i... | The provided query will not correctly answer the question because it uses a single string to search for both names, "Alexei Kalveks and Dave Brennan." Instead, you should use the SQL `IN` clause or a combination of `OR` conditions to find the arrangers for both vocal percussionists. Here's the corrected SQL query:
```... | 8,329 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28715942_5 (arranger_s_ VARCHAR, vocal_percussionist VARCHAR)\n\n Question: Who is the arranger when the vocal percussionist... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28715942_5 (original_artist VARCHAR, vocal_percussionist VARCHAR)
Question: What is the original artist when the vocal percussionist is Alexei Kalveks?
Here is the... | Here is the SQLite query to answer the question about the original artist when the vocal percussionist is Alexei Kalveks:
```
SELECT original_artist FROM table_28715942_5 WHERE vocal_percussionist = "Alexei Kalveks";
``` | 8,330 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28715942_5 (original_artist VARCHAR, vocal_percussionist VARCHAR)\n\n Question: What is the original artist when the vocal p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28741_1 (area__km_2__ INTEGER, capital VARCHAR)
Question: How few km 2 does the area with Nay Pyi Taw as capital cover?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the area covered by Nay Pyi Taw as capital:
```
SELECT MIN(area__km_2__) FROM table_28741_1 WHERE capital = "Nay Pyi Taw"
``` | 8,331 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28741_1 (area__km_2__ INTEGER, capital VARCHAR)\n\n Question: How few km 2 does the area with Nay Pyi Taw as capital cover?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28741_1 (population_2012_ VARCHAR, country VARCHAR)
Question: What is the 2012 population of Indonesia?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about the 2012 population of Indonesia:
```
SELECT population_2012_ FROM table_28741_1 WHERE country = "Indonesia"
``` | 8,332 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28741_1 (population_2012_ VARCHAR, country VARCHAR)\n\n Question: What is the 2012 population of Indonesia?\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_28741_1 (_usd__2012_ VARCHAR, gdp__nominal__per_capita VARCHAR, capital VARCHAR)
Question: What are the numbers for GDP (nominal) per capita and USD (2012) of the a... | It looks like you're trying to retrieve the GDP (nominal) per capita and the USD (2012) values specifically for the capital of Phnom Penh. However, the COUNT function is not appropriate here since you want to get the actual values instead of the count.
Here's the corrected SQLite query:
```
SELECT gdp__nominal__per_... | 8,333 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28741_1 (_usd__2012_ VARCHAR, gdp__nominal__per_capita VARCHAR, capital VARCHAR)\n\n Question: What are the numbers for GDP ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28750142_1 (distance VARCHAR, jockey VARCHAR)
Question: What is the distance of jockey Jason Titley?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question: What is the distance of jockey Jason Titley?:
```
SELECT distance FROM table_28750142_1 WHERE jockey = "Jason Titley";
``` | 8,334 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28750142_1 (distance VARCHAR, jockey VARCHAR)\n\n Question: What is the distance of jockey Jason Titley?\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_28750142_1 (jockey VARCHAR, name VARCHAR)
Question: What is the name of the jockey for Pink Gin?
Here is the SQLite query to answer to the question: What is the na... | Here is the SQLite query to answer the question: What is the name of the jockey for Pink Gin?:
```
SELECT jockey FROM table_28750142_1 WHERE name = "Pink Gin"
``` | 8,335 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28750142_1 (jockey VARCHAR, name VARCHAR)\n\n Question: What is the name of the jockey for Pink Gin?\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_28768469_10 (date VARCHAR, location_attendance VARCHAR)
Question: The location attendance is ford center 17,021 on what dates?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the dates when the location attendance is "Ford Center 17,021":
```sql
SELECT date FROM table_28768469_10 WHERE location_attendance = "Ford Center 17,021";
``` | 8,336 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28768469_10 (date VARCHAR, location_attendance VARCHAR)\n\n Question: The location attendance is ford center 17,021 on what ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28768469_10 (high_assists VARCHAR, game VARCHAR)
Question: In game 73, what were the total number of high assists?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question:
```
SELECT COUNT(high_assists) FROM table_28768469_10 WHERE game = '73'
```
Note that if the `game` identifier is stored as a string (VARCHAR), it's important to include the game number in quotes. | 8,337 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28768469_10 (high_assists VARCHAR, game VARCHAR)\n\n Question: In game 73, what were the total number of high assists?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28768469_2 (location_attendance VARCHAR, date VARCHAR)
Question: What is the location for the game on October 20 with it's corresponding attendance?
Here is the SQ... | To retrieve both the location and the corresponding attendance for the game on October 20, you should select both the `location_attendance` and `date`. Here’s the correct SQLite query wrapped in code blocks:
```
SELECT location_attendance FROM table_28768469_2 WHERE date = 'October 20';
```
Just a note: In SQLite, i... | 8,338 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28768469_2 (location_attendance VARCHAR, date VARCHAR)\n\n Question: What is the location for the game on October 20 with it... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28785738_1 (director VARCHAR, no_in_season VARCHAR)
Question: Who directed episode 11 of the season?
Here is the SQLite query to answer to the question: Who direct... | Your SQLite query looks mostly correct, but the column `no_in_season` seems to be of type `VARCHAR`, and you're comparing it to an integer (11). You need to ensure that you're comparing the string representation of the episode number. Here's a corrected version of the query:
```
SELECT director FROM table_28785738_1 W... | 8,339 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28785738_1 (director VARCHAR, no_in_season VARCHAR)\n\n Question: Who directed episode 11 of the season?\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_28802668_3 (title VARCHAR, no_in_season VARCHAR)
Question: How many episode titles does episode 19 in the season have?
Here is the SQLite query to answer to the qu... | Your SQL query is almost correct, but it needs to be modified slightly to ensure that "episode 19" is correctly interpreted by the `no_in_season` column. Since `no_in_season` is a VARCHAR, we should treat the value as a string. Here's the revised query:
```sql
SELECT COUNT(title) FROM table_28802668_3 WHERE no_in_seas... | 8,340 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28802668_3 (title VARCHAR, no_in_season VARCHAR)\n\n Question: How many episode titles does episode 19 in the season have?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR)
Question: if the bbi is 4/39 what is the average
Here is the SQLite query to answer to the question: if the bbi is 4/39 w... | Here is the SQLite query to answer the question: if the bbi is 4/39 what is the average:
```
SELECT average FROM table_28798161_3 WHERE bbi = "4/39"
``` | 8,341 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR)\n\n Question: if the bbi is 4/39 what is the average\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_28798161_3 (bbi VARCHAR, economy VARCHAR)
Question: if the economy is 3.63 what is the bbi
Here is the SQLite query to answer to the question: if the economy is 3.... | Here is the SQLite query to answer the question: if the economy is 3.63 what is the bbi:
```
SELECT bbi FROM table_28798161_3 WHERE economy = "3.63"
``` | 8,342 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28798161_3 (bbi VARCHAR, economy VARCHAR)\n\n Question: if the economy is 3.63 what is the bbi\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_28798161_3 (Id VARCHAR)
Question: in the leage what was the minimum 4wi
Here is the SQLite query to answer to the question: in the leage what was the minimum 4wi:
... | It seems there might be a misunderstanding in the structure of your query and the context of your question. Based on the provided schema `CREATE TABLE table_28798161_3 (Id VARCHAR)`, it looks like the table only has one column containing string data, and there's no direct reference to a '4wi' or a related numeric field... | 8,343 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28798161_3 (Id VARCHAR)\n\n Question: in the leage what was the minimum 4wi\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28802165_1 (poor_law_union VARCHAR, townland VARCHAR)
Question: What is the poor law union on Marshalstown?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the poor law union on Marshalstown:
```
SELECT poor_law_union FROM table_28802165_1 WHERE townland = "Marshalstown";
``` | 8,344 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28802165_1 (poor_law_union VARCHAR, townland VARCHAR)\n\n Question: What is the poor law union on Marshalstown?\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_28802165_1 (s_acre INTEGER, civil_parish VARCHAR)
Question: What is the maximum acres in Castledermot?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question about the maximum acres in Castledermot:
```
SELECT MAX(s_acre) FROM table_28802165_1 WHERE civil_parish = "Castledermot";
``` | 8,345 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28802165_1 (s_acre INTEGER, civil_parish VARCHAR)\n\n Question: What is the maximum acres in Castledermot?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28802165_1 (civil_parish VARCHAR, townland VARCHAR)
Question: What is the civil parish of Aghafullim?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the civil parish of Aghafullim:
```
SELECT civil_parish FROM table_28802165_1 WHERE townland = "Aghafullim";
``` | 8,346 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28802165_1 (civil_parish VARCHAR, townland VARCHAR)\n\n Question: What is the civil parish of Aghafullim?\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_28802165_1 (s_acre VARCHAR, townland VARCHAR)
Question: How many acres is the townland of Maddenstown Middle?
Here is the SQLite query to answer to the question: H... | Here is the SQLite query to answer the question about how many acres the townland of Maddenstown Middle has:
```
SELECT s_acre FROM table_28802165_1 WHERE townland = 'Maddenstown Middle';
``` | 8,347 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28802165_1 (s_acre VARCHAR, townland VARCHAR)\n\n Question: How many acres is the townland of Maddenstown Middle?\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_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR)
Question: How many original air dates did the episode directed by Bethany rooney have?
Here is the SQLi... | Here is the SQLite query to answer the question regarding how many original air dates the episode directed by Bethany Rooney had:
```
SELECT COUNT(original_air_date) FROM table_28859177_3 WHERE directed_by = "Bethany Rooney";
``` | 8,348 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR)\n\n Question: How many original air dates did the episode direct... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28859177_3 (production_code VARCHAR, original_air_date VARCHAR)
Question: What is the production code for the episode that aired on October 15, 2004?
Here is the S... | Here is the SQLite query you requested, wrapped in the appropriate formatting:
```
SELECT production_code FROM table_28859177_3 WHERE original_air_date = "October 15, 2004";
``` | 8,349 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28859177_3 (production_code VARCHAR, original_air_date VARCHAR)\n\n Question: What is the production code for the episode th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
Question: What is the original air date for episode graeme clifford directed and lin... | Here is the SQLite query to answer the question about the original air date for the episode directed by Graeme Clifford and written by Lindsay Sturman:
```
SELECT original_air_date FROM table_28859177_3 WHERE directed_by = "Graeme Clifford" AND written_by = "Lindsay Sturman"
``` | 8,350 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)\n\n Question: What is the original air date ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2886617_6 (player VARCHAR, nhl_team VARCHAR)
Question: Who was the player that was picked by Los Angeles Kings?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the player picked by the Los Angeles Kings:
```
SELECT player FROM table_2886617_6 WHERE nhl_team = "Los Angeles Kings"
``` | 8,351 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_6 (player VARCHAR, nhl_team VARCHAR)\n\n Question: Who was the player that was picked by Los Angeles Kings?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2886617_6 (nationality VARCHAR, player VARCHAR)
Question: What nationality was peter slamiar?
Here is the SQLite query to answer to the question: What nationality ... | Here is the SQLite query to answer the question "What nationality was Peter Slamiar?":
```
SELECT nationality FROM table_2886617_6 WHERE player = "Peter Slamiar"
``` | 8,352 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_6 (nationality VARCHAR, player VARCHAR)\n\n Question: What nationality was peter slamiar?\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_2886617_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
Question: What team did the New York Rangers recruit a player from?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the team the New York Rangers recruited a player from:
```
SELECT college_junior_club_team FROM table_2886617_4 WHERE nhl_team = "New York Rangers"
``` | 8,353 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR)\n\n Question: What team did the New York Rangers recruit a pl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2886617_4 (nationality VARCHAR, player VARCHAR)
Question: How many countries had players named Marc Savard get picked?
Here is the SQLite query to answer to the qu... | Your SQLite query is almost correct, but to ensure you're counting distinct countries where Marc Savard is listed, you should use `COUNT(DISTINCT nationality)`. Here’s the corrected query wrapped in the code block:
```sql
SELECT COUNT(DISTINCT nationality) FROM table_2886617_4 WHERE player = "Marc Savard";
```
This ... | 8,354 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_4 (nationality VARCHAR, player VARCHAR)\n\n Question: How many countries had players named Marc Savard get picked?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR)
Question: What country does the player who joined the Vancouver Canucks originally hail from?
Here is the SQLite ... | Here is the SQLite query to answer the question about the nationality of the player who joined the Vancouver Canucks:
```
SELECT nationality FROM table_2886617_4 WHERE nhl_team = "Vancouver Canucks"
``` | 8,355 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR)\n\n Question: What country does the player who joined the Vancouver Canuck... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2886617_4 (pick VARCHAR, player VARCHAR)
Question: How many times did Alyn McCauley get picked?
Here is the SQLite query to answer to the question: How many times ... | Here is the SQLite query to answer the question about how many times Alyn McCauley got picked:
```
SELECT COUNT(pick) FROM table_2886617_4 WHERE player = "Alyn McCauley";
``` | 8,356 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_4 (pick VARCHAR, player VARCHAR)\n\n Question: How many times did Alyn McCauley get picked?\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_2886617_3 (nationality VARCHAR, position VARCHAR, college_junior_club_team VARCHAR)
Question: Which nationality has left wing as the position and college/junior/tea... | Here is the SQLite query to answer the question about which nationality has left wing as the position and college/junior team is "Portland Winterhawks (WHL)":
```sql
SELECT nationality FROM table_2886617_3 WHERE position = "Left Wing" AND college_junior_club_team = "Portland Winterhawks (WHL)";
``` | 8,357 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_3 (nationality VARCHAR, position VARCHAR, college_junior_club_team VARCHAR)\n\n Question: Which nationality has left... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2886617_3 (nhl_team VARCHAR, player VARCHAR)
Question: Which nhl team has the player kevin mckay?
Here is the SQLite query to answer to the question: Which nhl tea... | Here is the SQLite query to answer the question: Which NHL team has the player Kevin McKay?:
```
SELECT nhl_team FROM table_2886617_3 WHERE player = "Kevin McKay"
``` | 8,358 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_3 (nhl_team VARCHAR, player VARCHAR)\n\n Question: Which nhl team has the player kevin mckay?\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_2886617_3 (pick VARCHAR, nationality VARCHAR, player VARCHAR)
Question: How many picks have canada as the nationality and larry courville is the player?
Here is th... | Here is the SQLite query to answer the question about how many picks have Canada as the nationality and Larry Courville as the player:
```
SELECT COUNT(pick) FROM table_2886617_3 WHERE nationality = "Canada" AND player = "Larry Courville";
``` | 8,359 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_3 (pick VARCHAR, nationality VARCHAR, player VARCHAR)\n\n Question: How many picks have canada as the nationality an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2886617_3 (pick VARCHAR, player VARCHAR)
Question: Which pick has marko makinen as the player?
Here is the SQLite query to answer to the question: Which pick has m... | Here's the SQLite query to find out which pick has Marko Makinen as the player:
```
SELECT pick FROM table_2886617_3 WHERE player = "Marko Makinen"
``` | 8,360 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_3 (pick VARCHAR, player VARCHAR)\n\n Question: Which pick has marko makinen as the player?\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_2886617_9 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
Question: What college club team did the Dallas Stars choose their draft pick from?
Here is the SQLi... | Here is the SQLite query to answer the question about the college club team that the Dallas Stars chose their draft pick from:
```
SELECT college_junior_club_team FROM table_2886617_9 WHERE nhl_team = "Dallas Stars"
``` | 8,361 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_9 (college_junior_club_team VARCHAR, nhl_team VARCHAR)\n\n Question: What college club team did the Dallas Stars cho... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2886617_9 (player VARCHAR, nhl_team VARCHAR)
Question: Who was picked for the draft by St. Louis Blues?
Here is the SQLite query to answer to the question: Who was... | Here is the SQLite query to answer the question: Who was picked for the draft by St. Louis Blues?:
```
SELECT player FROM table_2886617_9 WHERE nhl_team = "St. Louis Blues"
``` | 8,362 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2886617_9 (player VARCHAR, nhl_team VARCHAR)\n\n Question: Who was picked for the draft by St. Louis Blues?\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_28885977_1 (stadium VARCHAR, location VARCHAR)
Question: Which stadium is located in Adelaide, South Australia?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question "Which stadium is located in Adelaide, South Australia?":
```sql
SELECT stadium FROM table_28885977_1 WHERE location = 'Adelaide, South Australia';
``` | 8,363 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28885977_1 (stadium VARCHAR, location VARCHAR)\n\n Question: Which stadium is located in Adelaide, South Australia? \n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28885977_1 (location VARCHAR, built_for VARCHAR)
Question: In what location was a stadium built for the St Kilda Football Club?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the location where a stadium was built for the St Kilda Football Club:
```
SELECT location FROM table_28885977_1 WHERE built_for = "St Kilda Football Club"
``` | 8,364 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28885977_1 (location VARCHAR, built_for VARCHAR)\n\n Question: In what location was a stadium built for the St Kilda Footbal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28885977_1 (location VARCHAR, stadium VARCHAR)
Question: What is the location of the Moorabbin Oval stadium?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to find the location of the Moorabbin Oval stadium:
```
SELECT location FROM table_28885977_1 WHERE stadium = "Moorabbin Oval";
``` | 8,365 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28885977_1 (location VARCHAR, stadium VARCHAR)\n\n Question: What is the location of the Moorabbin Oval stadium?\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_28885977_1 (built_for VARCHAR, location VARCHAR)
Question: What was the stadium in Adelaide, South Australia built for?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about what the stadium in Adelaide, South Australia was built for:
```
SELECT built_for FROM table_28885977_1 WHERE location = "Adelaide, South Australia";
``` | 8,366 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR)\n\n Question: What was the stadium in Adelaide, South Australia built for? ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR)
Question: What was the stadium in Moorabbin, Victoria built for?
Here is the SQLite query to answer to the questio... | Your SQLite query to find out what the stadium in Moorabbin, Victoria was built for is correctly stated. Here it is wrapped in the requested format:
```
SELECT built_for FROM table_28885977_1 WHERE location = "Moorabbin, Victoria";
``` | 8,367 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR)\n\n Question: What was the stadium in Moorabbin, Victoria built for?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28885977_1 (capacity_at_construction VARCHAR, location VARCHAR)
Question: What was the capacity at construction of the stadium in Gold Coast, Queensland?
Here is ... | Here is the SQLite query to answer the question about the capacity at construction of the stadium in Gold Coast, Queensland:
```
SELECT capacity_at_construction FROM table_28885977_1 WHERE location = "Gold Coast, Queensland";
``` | 8,368 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28885977_1 (capacity_at_construction VARCHAR, location VARCHAR)\n\n Question: What was the capacity at construction of the s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2889810_2 (moto2_250cc VARCHAR, country VARCHAR)
Question: how many total number of moto2/250cc when country is united states
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the total number of moto2/250cc when the country is the United States:
```
SELECT COUNT(moto2_250cc) FROM table_2889810_2 WHERE country = 'United States';
``` | 8,369 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2889810_2 (moto2_250cc VARCHAR, country VARCHAR)\n\n Question: how many total number of moto2/250cc when country is united s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2889810_2 (Id VARCHAR)
Question: how many minimum 350cc has
Here is the SQLite query to answer to the question: how many minimum 350cc has:
```
SELECT MIN(350 AS c... | It seems there is a misunderstanding in the query you've provided. The `MIN` function is typically used to find the minimum value of a column, not a static value like 350. Additionally, your table has only one column with the name `Id`, which appears to be a string type. Without further context on how to relate the `Id... | 8,370 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2889810_2 (Id VARCHAR)\n\n Question: how many minimum 350cc has\n\nHere is the SQLite query to answer to the question: how m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2889810_2 (country VARCHAR, moto3_125cc VARCHAR)
Question: how many country has moto3/125cc with 15
Here is the SQLite query to answer to the question: how many co... | To count the number of countries that have a moto3/125cc value of 15, you can use the following SQLite query:
```
SELECT COUNT(DISTINCT country) AS country_count FROM table_2889810_2 WHERE moto3_125cc = '15';
```
This query counts the distinct countries that have the specified moto3/125cc value. Note that I have wrap... | 8,371 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2889810_2 (country VARCHAR, moto3_125cc VARCHAR)\n\n Question: how many country has moto3/125cc with 15\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_28898948_3 (reason VARCHAR, winner VARCHAR)
Question: When arthur collins is the winner what is the reason?
Here is the SQLite query to answer to the question: Whe... | Here is the SQLite query to answer the question about the reason when Arthur Collins is the winner:
```
SELECT reason FROM table_28898948_3 WHERE winner = "Arthur Collins";
``` | 8,372 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28898948_3 (reason VARCHAR, winner VARCHAR)\n\n Question: When arthur collins is the winner what is the reason?\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_28898948_3 (date VARCHAR, incumbent VARCHAR)
Question: When ihaia tainui is the incumbent what is the date?
Here is the SQLite query to answer to the question: Whe... | Here is the SQLite query to answer the question:
```
SELECT date FROM table_28898948_3 WHERE incumbent = "Ihaia Tainui"
``` | 8,373 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28898948_3 (date VARCHAR, incumbent VARCHAR)\n\n Question: When ihaia tainui is the incumbent what is the date?\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_28898948_3 (winner VARCHAR, electorate VARCHAR)
Question: When rangitikei is the electorate who is the winner?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: When rangitikei is the electorate who is the winner?:
```
SELECT winner FROM table_28898948_3 WHERE electorate = "Rangitikei"
``` | 8,374 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28898948_3 (winner VARCHAR, electorate VARCHAR)\n\n Question: When rangitikei is the electorate who is the winner?\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_28898948_3 (by_election INTEGER, electorate VARCHAR)
Question: When waikaia is the electorate what is the highest by-election?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question: When waikaia is the electorate what is the highest by-election?:
```
SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia"
``` | 8,375 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28898948_3 (by_election INTEGER, electorate VARCHAR)\n\n Question: When waikaia is the electorate what is the highest by-ele... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28898948_3 (incumbent VARCHAR, reason VARCHAR, by_election VARCHAR)
Question: When 1881 is the by-election and death is the reason who is the incumbent?
Here is th... | Here is the SQLite query to answer the question:
```sql
SELECT incumbent FROM table_28898948_3 WHERE reason = "Death" AND by_election = "1881";
``` | 8,376 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28898948_3 (incumbent VARCHAR, reason VARCHAR, by_election VARCHAR)\n\n Question: When 1881 is the by-election and death is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28948937_3 (partner VARCHAR, outcome VARCHAR, surface VARCHAR)
Question: What is the name of the partner that has a winner outcome and a hard surface?
Here is the ... | Here's the SQLite query wrapped in code format to answer the question:
```
SELECT partner FROM table_28948937_3 WHERE outcome = "Winner" AND surface = "Hard";
``` | 8,377 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28948937_3 (partner VARCHAR, outcome VARCHAR, surface VARCHAR)\n\n Question: What is the name of the partner that has a winn... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28946565_2 (week_2 VARCHAR, week_7 VARCHAR)
Question: How many week 2 scores have a week 7 score of 40 + 40 = 80?
Here is the SQLite query to answer to the questio... | The provided SQLite query has a slight error in the condition used to compare the `week_7` score. The correct way to check if `week_7` equals 80 should be a direct comparison, rather than using an expression that evaluates to a boolean.
Here is the corrected SQLite query:
```
SELECT COUNT(week_2) FROM table_28946565_... | 8,378 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28946565_2 (week_2 VARCHAR, week_7 VARCHAR)\n\n Question: How many week 2 scores have a week 7 score of 40 + 40 = 80?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28946565_2 (week_3 INTEGER)
Question: What is the smallest week 3 score?
Here is the SQLite query to answer to the question: What is the smallest week 3 score?:
``... | Your provided SQLite query is correct for finding the smallest score in the `week_3` column. Here's the output wrapped as requested:
```
SELECT MIN(week_3) FROM table_28946565_2
``` | 8,379 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28946565_2 (week_3 INTEGER)\n\n Question: What is the smallest week 3 score?\n\nHere is the SQLite query to answer to the qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28946565_2 (couple VARCHAR, week_2 VARCHAR)
Question: Which couple had a week 2 score of exactly 23?
Here is the SQLite query to answer to the question: Which coup... | The SQLite query to find which couple had a week 2 score of exactly 23 is correctly structured, but it needs to ensure that the comparison is made with a string since the `week_2` column is defined as VARCHAR. Here is the adjusted query:
```sql
SELECT couple FROM table_28946565_2 WHERE week_2 = '23'
``` | 8,380 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28946565_2 (couple VARCHAR, week_2 VARCHAR)\n\n Question: Which couple had a week 2 score of exactly 23?\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_28967275_3 (series__number VARCHAR, episode__number VARCHAR)
Question: when 68 is the episode number what is the series number?
Here is the SQLite query to answer ... | Your SQLite query has a minor issue regarding the data type of `episode__number`, which is defined as `VARCHAR`. When querying for a string in a VARCHAR field, the number should be enclosed in quotes. Here is the corrected query:
```
SELECT series__number FROM table_28967275_3 WHERE episode__number = '68'
```
This w... | 8,381 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28967275_3 (series__number VARCHAR, episode__number VARCHAR)\n\n Question: when 68 is the episode number what is the series ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_28967275_3 (original_air_date VARCHAR, episode__number VARCHAR)
Question: when 69 is the episode number what is the air date?
Here is the SQLite query to answer to... | Here is the corrected SQLite query to answer the question regarding the air date when the episode number is 69:
```sql
SELECT original_air_date FROM table_28967275_3 WHERE episode__number = '69';
```
Note that I wrapped the episode number '69' in quotes because it is stored as a VARCHAR in the database schema. | 8,382 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_28967275_3 (original_air_date VARCHAR, episode__number VARCHAR)\n\n Question: when 69 is the episode number what is the air ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2897457_1 (pick__number VARCHAR, position VARCHAR)
Question: What draft pick is a goaltender?
Here is the SQLite query to answer to the question: What draft pick i... | Here is the SQLite query to answer the question: What draft pick is a goaltender?:
```
SELECT pick__number FROM table_2897457_1 WHERE position = 'Goaltender';
``` | 8,383 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2897457_1 (pick__number VARCHAR, position VARCHAR)\n\n Question: What draft pick is a goaltender?\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_2897457_1 (position VARCHAR, player VARCHAR)
Question: What position does Olaf Kolzig play?
Here is the SQLite query to answer to the question: What position does ... | Here is the SQLite query to answer the question: What position does Olaf Kolzig play?:
```
SELECT position FROM table_2897457_1 WHERE player = "Olaf Kolzig"
``` | 8,384 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2897457_1 (position VARCHAR, player VARCHAR)\n\n Question: What position does Olaf Kolzig play?\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_2897457_1 (nhl_team VARCHAR, nationality VARCHAR)
Question: What team drafted a player from Sweden?
Here is the SQLite query to answer to the question: What team d... | ```sql
SELECT nhl_team FROM table_2897457_1 WHERE nationality = 'Sweden';
``` | 8,385 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_2897457_1 (nhl_team VARCHAR, nationality VARCHAR)\n\n Question: What team drafted a player from Sweden?\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_29023680_2 (company VARCHAR, date_of_election_commission VARCHAR)
Question: How many company commanders were commissioned or elected on November 12, 1861?
Here is ... | Here is the SQLite query to answer the question regarding how many company commanders were commissioned or elected on November 12, 1861:
```
SELECT COUNT(company) AS Commander FROM table_29023680_2 WHERE date_of_election_commission = "November 12, 1861"
``` | 8,386 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29023680_2 (company VARCHAR, date_of_election_commission VARCHAR)\n\n Question: How many company commanders were commissione... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29026564_10 (score VARCHAR, surface VARCHAR, category VARCHAR)
Question: In the 250 series on clay what were the scores?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question "In the 250 series on clay what were the scores?":
```
SELECT score FROM table_29026564_10 WHERE surface = "Clay" AND category = "250 series";
``` | 8,387 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29026564_10 (score VARCHAR, surface VARCHAR, category VARCHAR)\n\n Question: In the 250 series on clay what were the scores?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)
Question: what is the most amount of cattle where they live in british columbia
Here is the SQLite quer... | Here is the SQLite query to answer the question: what is the most amount of cattle where they live in British Columbia:
```
SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = 'British Columbia'
``` | 8,388 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)\n\n Question: what is the most amount of cattle where they live ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_cows VARCHAR)
Question: what is the most number where cattle is 13000
Here is the SQLite query to answer to the quest... | It looks like you're trying to find the count of provinces with exactly 13,000 dairy cows in the given table. The provided query is almost correct, but it references `COUNT(province)` which is more likely intended to obtain the total number of records with `number_of_dairy_cows = '13000'`. Here's the corrected SQLite q... | 8,389 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_cows VARCHAR)\n\n Question: what is the most number where cattle is 13000\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29012710_1 (production__hectolitres_ VARCHAR, province VARCHAR)
Question: what is the amount where the area is new brunswick
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding the amount where the area is New Brunswick:
```sql
SELECT production__hectolitres_ FROM table_29012710_1 WHERE province = "New Brunswick";
``` | 8,390 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29012710_1 (production__hectolitres_ VARCHAR, province VARCHAR)\n\n Question: what is the amount where the area is new bruns... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_farms VARCHAR)
Question: what is the location where there are over 200 cattle businesses
Here is the SQLite query to ... | It appears that the query you've provided is looking for provinces with an exactly equal number of dairy farms (200), rather than over 200. To answer the question regarding the location with over 200 dairy farms, the query should use a greater than operator (`>`) instead of an equal to operator (`=`). Here is the corre... | 8,391 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_farms VARCHAR)\n\n Question: what is the location where there are over 200 cat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER)
Question: what is the least amount of cattle head
Here is the SQLite query to answer to the question: what is the least a... | Here is the SQLite query to answer the question regarding the least amount of cattle head:
```
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1;
``` | 8,392 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER)\n\n Question: what is the least amount of cattle head\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_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)
Question: what is the least amount of milk cattle in ontario
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the least amount of milk cattle in Ontario:
```
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1 WHERE province = 'Ontario';
``` | 8,393 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)\n\n Question: what is the least amount of milk cattle in ontario... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
Question: What is the production code of the episode that was watched by 3.81 million U.S. viewer... | Here is the SQLite query to answer the question about the production code of the episode that was watched by 3.81 million U.S. viewers:
```
SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = "3.81"
``` | 8,394 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)\n\n Question: What is the production code of the episode ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29087004_2 (written_by VARCHAR, production_code VARCHAR)
Question: Who wrote the episode with a production code of 116?
Here is the SQLite query to answer to the q... | Here is the correct SQLite query to answer the question:
```
SELECT written_by FROM table_29087004_2 WHERE production_code = '116';
```
Note: In SQLite, if the `production_code` is stored as a VARCHAR, it should be enclosed in quotes. | 8,395 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29087004_2 (written_by VARCHAR, production_code VARCHAR)\n\n Question: Who wrote the episode with a production code of 116?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR)
Question: What number episode in the series had and original United States air date of D... | Here is the SQLite query to answer the question regarding the episode number that aired on December 24, 2010:
```
SELECT series__number FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010";
``` | 8,396 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR)\n\n Question: What number episode in the series ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29087004_2 (written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR)
Question: Who wrote the episode direct... | Here is the SQLite query to answer the question:
```
SELECT written_by FROM table_29087004_2 WHERE directed_by = "Jos Humphrey" AND canada_original_airdate = "Unknown" AND united_states_original_airdate = "August 27, 2011"
``` | 8,397 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29087004_2 (written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR)\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29087004_2 (united_states_original_airdate VARCHAR, written_by VARCHAR)
Question: What is the original United States air date of the episode written by Mike Ferris?... | Here is the SQLite query to answer the question about the original United States air date of the episode written by Mike Ferris:
```
SELECT united_states_original_airdate FROM table_29087004_2 WHERE written_by = "Mike Ferris";
``` | 8,398 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29087004_2 (united_states_original_airdate VARCHAR, written_by VARCHAR)\n\n Question: What is the original United States air... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR)
Question: Who was Andrew and Georgies guest when Jamie and Johns guest was Joe Calzagh... | Here is the SQLite query to answer the question about who was Andrew and Georgie's guest when Jamie and John's guest was Joe Calzaghe:
```
SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Joe Calzaghe"
``` | 8,399 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR)\n\n Question: Who was Andrew and Georgies gues... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.