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_name_31 (launched VARCHAR, date_of_commission VARCHAR)
Question: What is the Launched which is on 3 may 2001?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the launched item on 3 May 2001:
```
SELECT launched FROM table_name_31 WHERE date_of_commission = "3 may 2001"
``` | 45,400 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (launched VARCHAR, date_of_commission VARCHAR)\n\n Question: What is the Launched which is on 3 may 2001?\n\nHere is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (homeport__as_of_july_2013_ VARCHAR, laid_down VARCHAR)
Question: What is the Homeport that has a Laid down on 14 december 1985?
Here is the SQLite query t... | Your SQLite query to find the Homeport that has a Laid down date of 14 December 1985 is correctly formulated. Here it is wrapped in the appropriate code block:
```
SELECT homeport__as_of_july_2013_ FROM table_name_73 WHERE laid_down = "14 december 1985";
``` | 45,401 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (homeport__as_of_july_2013_ VARCHAR, laid_down VARCHAR)\n\n Question: What is the Homeport that has a Laid down on 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (launched VARCHAR, homeport__as_of_july_2013_ VARCHAR, pennant_number VARCHAR)
Question: What kind of Launched has a Homeport (as of July 2013) of sold to c... | Here is the SQLite query to answer the specified question:
```
SELECT launched FROM table_name_65 WHERE homeport__as_of_july_2013_ = "sold to chile" AND pennant_number = "f80"
``` | 45,402 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (launched VARCHAR, homeport__as_of_july_2013_ VARCHAR, pennant_number VARCHAR)\n\n Question: What kind of Launched h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (player VARCHAR, events INTEGER)
Question: Which player had more than 25 events?
Here is the SQLite query to answer to the question: Which player had more ... | Here is the SQLite query to answer the question of which player had more than 25 events:
```
SELECT player FROM table_name_60 WHERE events > 25;
``` | 45,403 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (player VARCHAR, events INTEGER)\n\n Question: Which player had more than 25 events?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (prize_money___$__ VARCHAR, country VARCHAR, rank VARCHAR, events VARCHAR)
Question: What amount of prize money was there when the rank was less than 7, the... | Here's the SQLite query formatted as requested:
```
SELECT prize_money___$__ FROM table_name_94 WHERE rank < 7 AND events > 6 AND country = "Fiji"
``` | 45,404 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (prize_money___$__ VARCHAR, country VARCHAR, rank VARCHAR, events VARCHAR)\n\n Question: What amount of prize money ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (prize_money___ INTEGER, events VARCHAR)
Question: What is the least amount of prize money when there are 21 events?
Here is the SQLite query to answer to ... | It looks like there is a small error in your query regarding the filtering of events. Since the `events` column is of type `VARCHAR`, you should compare it to the string '21', not the integer 21. Here's the corrected query wrapped in the appropriate code block:
```sql
SELECT MIN(prize_money___) AS least_prize_money
F... | 45,405 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (prize_money___ INTEGER, events VARCHAR)\n\n Question: What is the least amount of prize money when there are 21 eve... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (series_ep VARCHAR, netflix VARCHAR)
Question: Which series episode has a netflix figure of s04e21?
Here is the SQLite query to answer to the question: Whi... | Here is the SQLite query to answer the question: Which series episode has a netflix figure of s04e21?:
```
SELECT series_ep FROM table_name_45 WHERE netflix = "s04e21";
``` | 45,406 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (series_ep VARCHAR, netflix VARCHAR)\n\n Question: Which series episode has a netflix figure of s04e21?\n\nHere is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (segment_a VARCHAR, netflix VARCHAR)
Question: Which segment a's netflix figure is s04e24?
Here is the SQLite query to answer to the question: Which segmen... | Here is the SQLite query to answer the question: Which segment a's netflix figure is s04e24?:
```
SELECT segment_a FROM table_name_77 WHERE netflix = "s04e24";
``` | 45,407 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (segment_a VARCHAR, netflix VARCHAR)\n\n Question: Which segment a's netflix figure is s04e24?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (episode VARCHAR, segment_d VARCHAR)
Question: How many episodes have a segment d that is goalie masks (part 2)?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about how many episodes have a segment d that is "goalie masks (part 2)":
```
SELECT COUNT(episode) FROM table_name_53 WHERE segment_d = "goalie masks (part 2)"
``` | 45,408 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (episode VARCHAR, segment_d VARCHAR)\n\n Question: How many episodes have a segment d that is goalie masks (part 2)?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (episode VARCHAR, segment_b VARCHAR)
Question: Which episode's segment b is s hacksaw?
Here is the SQLite query to answer to the question: Which episode's ... | Here is the SQLite query to answer the question "Which episode's segment b is s hacksaw?":
```
SELECT episode FROM table_name_67 WHERE segment_b = "s hacksaw";
``` | 45,409 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (episode VARCHAR, segment_b VARCHAR)\n\n Question: Which episode's segment b is s hacksaw?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (dob VARCHAR, surname VARCHAR, first VARCHAR)
Question: When was Lachlan Dale born?
Here is the SQLite query to answer to the question: When was Lachlan Da... | Here is the SQLite query to answer the question: When was Lachlan Dale born?:
```
SELECT dob FROM table_name_47 WHERE surname = "Dale" AND first = "Lachlan"
``` | 45,410 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (dob VARCHAR, surname VARCHAR, first VARCHAR)\n\n Question: When was Lachlan Dale born?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (bats VARCHAR, position VARCHAR, dob VARCHAR)
Question: Which batter played P and was born 18 April 1984?
Here is the SQLite query to answer to the questio... | Here is the SQLite query wrapped in code formatting:
```
SELECT bats FROM table_name_12 WHERE position = "P" AND dob = "18 April 1984";
```
(Note: Ensure that the case for "P" in the position field matches the data in your database, as SQLite is case-sensitive for string comparisons.) | 45,411 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (bats VARCHAR, position VARCHAR, dob VARCHAR)\n\n Question: Which batter played P and was born 18 April 1984?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (surname VARCHAR, dob VARCHAR, bats VARCHAR, position VARCHAR)
Question: Which Surname has Bats of r, and a Position of p, and a DOB of 20 may 1989?
Here i... | Here is the SQLite query to answer the question:
```
SELECT surname FROM table_name_73 WHERE bats = "r" AND position = "p" AND dob = "20 may 1989";
``` | 45,412 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (surname VARCHAR, dob VARCHAR, bats VARCHAR, position VARCHAR)\n\n Question: Which Surname has Bats of r, and a Posi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (position VARCHAR, throws VARCHAR, dob VARCHAR)
Question: Which Position has Throws of r, and a DOB of 12 february 1983?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question:
```
SELECT position FROM table_name_59 WHERE throws = "r" AND dob = "12 february 1983";
``` | 45,413 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (position VARCHAR, throws VARCHAR, dob VARCHAR)\n\n Question: Which Position has Throws of r, and a DOB of 12 februa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (throws VARCHAR, surname VARCHAR)
Question: How many throws did Needle have?
Here is the SQLite query to answer to the question: How many throws did Needle... | To count the number of throws made by Needle, you should use the COUNT function in your SQL query. Here is the corrected query:
```sql
SELECT COUNT(throws) AS number_of_throws FROM table_name_10 WHERE surname = "Needle";
``` | 45,414 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (throws VARCHAR, surname VARCHAR)\n\n Question: How many throws did Needle have?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (dob VARCHAR, bats VARCHAR, position VARCHAR)
Question: Which DOB has Bats of s, and a Position of inf?
Here is the SQLite query to answer to the question: ... | Here's the SQLite query to answer the question regarding which DOB has Bats of 's' and a Position of 'inf':
```
SELECT dob FROM table_name_8 WHERE bats = 's' AND position = 'inf';
``` | 45,415 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (dob VARCHAR, bats VARCHAR, position VARCHAR)\n\n Question: Which DOB has Bats of s, and a Position of inf?\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_name_50 (lap_length VARCHAR, category VARCHAR)
Question: What is the Lap Length of the race with a Grand Prix Fia Category?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding the Lap Length of the race with a Grand Prix Fia Category:
```sql
SELECT lap_length FROM table_name_50 WHERE category = "grand prix fia";
``` | 45,416 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (lap_length VARCHAR, category VARCHAR)\n\n Question: What is the Lap Length of the race with a Grand Prix Fia Catego... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (race VARCHAR, category VARCHAR, date VARCHAR)
Question: What is the Race on July 30, 1950 with a Formula 2 Fia, non-championship?
Here is the SQLite query... | Here is the SQLite query wrapped in the requested format to answer the question about the race on July 30, 1950, with a Formula 2 FIA, non-championship:
```
SELECT race FROM table_name_47 WHERE category = "formula 2 fia, non-championship" AND date = "july 30, 1950";
``` | 45,417 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (race VARCHAR, category VARCHAR, date VARCHAR)\n\n Question: What is the Race on July 30, 1950 with a Formula 2 Fia,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (record VARCHAR, time VARCHAR)
Question: What was his record when the match went for 3:05?
Here is the SQLite query to answer to the question: What was his... | Here is the SQLite query to answer the question about the record when the match went for 3:05:
```
SELECT record FROM table_name_62 WHERE time = "3:05";
``` | 45,418 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (record VARCHAR, time VARCHAR)\n\n Question: What was his record when the match went for 3:05?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (round INTEGER, event VARCHAR)
Question: How many rounds did the match go for the Bellator 72 event?
Here is the SQLite query to answer to the question: Ho... | Your current query is almost correct, but it seems that you might want to count the distinct rounds rather than summing the round numbers. If the rounds are represented as integers and you want to find out how many unique rounds there were in the "Bellator 72" event, you should use `COUNT(DISTINCT round)` instead of `S... | 45,419 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (round INTEGER, event VARCHAR)\n\n Question: How many rounds did the match go for the Bellator 72 event?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (live VARCHAR, share INTEGER, viewers_ INTEGER)
Question: What is the sum of the live viewers for episodes with share over 5?
Here is the SQLite query to a... | The provided query has a small issue with the syntax. The alias should not be associated with the `SUM(viewers_)`. Here is the corrected version of the SQL query:
```sql
SELECT SUM(viewers_) AS total_viewers FROM table_name_77 WHERE share > 5;
``` | 45,420 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (live VARCHAR, share INTEGER, viewers_ INTEGER)\n\n Question: What is the sum of the live viewers for episodes with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (callsign VARCHAR, brand VARCHAR, webcast VARCHAR, frequency VARCHAR)
Question: Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webc... | Here is the SQLite query to answer the question you provided, wrapped appropriately:
```
SELECT callsign
FROM table_name_97
WHERE webcast = "listen live"
AND CAST(frequency AS INTEGER) < 1210
AND brand = "Newsradio 740 KTRH";
``` | 45,421 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (callsign VARCHAR, brand VARCHAR, webcast VARCHAR, frequency VARCHAR)\n\n Question: Which Callsign includes a freque... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (website VARCHAR, frequency VARCHAR, city_of_license VARCHAR, webcast VARCHAR)
Question: Which website includes a webcast of listen live, a frequency under ... | Here is the SQLite query to answer the question regarding the website with the specified conditions:
```sql
SELECT website FROM table_name_64 WHERE city_of_license = "Monterrey" AND webcast = "listen live" AND frequency < 1050;
``` | 45,422 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (website VARCHAR, frequency VARCHAR, city_of_license VARCHAR, webcast VARCHAR)\n\n Question: Which website includes ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (webcast VARCHAR, website VARCHAR)
Question: The KTRH.com website includes which type of webcast?
Here is the SQLite query to answer to the question: The K... | Here is the SQLite query to answer the question about the KTRH.com website and the type of webcast it includes:
```sql
SELECT webcast FROM table_name_54 WHERE website = "ktrh.com";
``` | 45,423 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (webcast VARCHAR, website VARCHAR)\n\n Question: The KTRH.com website includes which type of webcast?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (website VARCHAR, frequency VARCHAR, city_of_license VARCHAR, webcast VARCHAR)
Question: Which website includes a webcast of listen live, a frequency under ... | Your query has a small mistake in the condition for the `frequency`. The condition should specify that the frequency should be less than 680, not equal to 680. Here's the corrected query:
```sql
SELECT website FROM table_name_53 WHERE city_of_license = "san antonio" AND webcast = "listen live" AND frequency < 680;
``` | 45,424 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (website VARCHAR, frequency VARCHAR, city_of_license VARCHAR, webcast VARCHAR)\n\n Question: Which website includes ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (frequency INTEGER, callsign VARCHAR, webcast VARCHAR, city_of_license VARCHAR)
Question: Which long range AM station has the lowest frequency and includes a... | Here is the SQLite query to answer the question as requested:
```
SELECT MIN(frequency) FROM table_name_2 WHERE webcast = "listen live" AND city_of_license = "Monterrey" AND callsign = "xet";
``` | 45,425 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (frequency INTEGER, callsign VARCHAR, webcast VARCHAR, city_of_license VARCHAR)\n\n Question: Which long range AM sta... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (games INTEGER, drawn INTEGER)
Question: Which Games is the highest one that has a Drawn smaller than 0?
Here is the SQLite query to answer to the question... | Your SQLite query is correct for the given question. Here it is wrapped properly:
```
SELECT MAX(games) FROM table_name_26 WHERE drawn < 0
```
This query will return the highest value of the `games` column where the `drawn` column is less than 0. | 45,426 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (games INTEGER, drawn INTEGER)\n\n Question: Which Games is the highest one that has a Drawn smaller than 0?\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (score VARCHAR, game VARCHAR)
Question: What is the score for game 6?
Here is the SQLite query to answer to the question: What is the score for game 6?:
``... | Your SQLite query looks almost correct, but since the `game` column is a VARCHAR, you should enclose the value `6` in quotes. Here’s the revised query:
```sql
SELECT score FROM table_name_11 WHERE game = '6'
``` | 45,427 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (score VARCHAR, game VARCHAR)\n\n Question: What is the score for game 6?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (capacity INTEGER, location VARCHAR)
Question: Which Capacity has a Location of mogilev?
Here is the SQLite query to answer to the question: Which Capacity... | Here is the SQLite query to answer the question: Which Capacity has a Location of mogilev?:
```
SELECT capacity FROM table_name_38 WHERE location = "mogilev";
``` | 45,428 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (capacity INTEGER, location VARCHAR)\n\n Question: Which Capacity has a Location of mogilev?\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (result VARCHAR, district VARCHAR)
Question: What was the District of California 2 result?
Here is the SQLite query to answer to the question: What was the... | Here is the SQLite query to answer the question regarding the result for District of California 2:
```sql
SELECT result FROM table_name_93 WHERE district = "California 2";
``` | 45,429 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (result VARCHAR, district VARCHAR)\n\n Question: What was the District of California 2 result?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
Question: What was the district Incumbent Julius Kahn was in that was smaller than 1906?
Here ... | Here is the SQLite query to answer the question about the district that Incumbent Julius Kahn was in that was smaller than 1906:
```sql
SELECT district FROM table_name_74 WHERE first_elected < 1906 AND incumbent = "julius kahn";
``` | 45,430 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)\n\n Question: What was the district Incumbent Julius Ka... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR)
Question: What was the lowest re-elected result for Sylvester C. Smith?
Here is the SQLite query... | To answer your question, the SQLite query to find the lowest re-elected result for Sylvester C. Smith is:
```
SELECT MIN(first_elected) FROM table_name_47 WHERE result = "re-elected" AND incumbent = "sylvester c. smith"
``` | 45,431 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR)\n\n Question: What was the lowest re-elected result for S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
Question: What was the result for Julius Kahn's first election of 1898?
Here is the SQLite query ... | Here is the corrected SQLite query to answer the question about the result for Julius Kahn's first election of 1898:
```
SELECT result FROM table_name_6 WHERE first_elected = '1898' AND incumbent = 'julius kahn';
```
Note: The `first_elected` value is treated as a string, hence it is wrapped in single quotes. The `i... | 45,432 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)\n\n Question: What was the result for Julius Kahn's first ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)
Question: Which party had a result of retired democratic hold and a first elected ... | Here is the SQLite query to answer the question regarding the party with the specified conditions:
```
SELECT party FROM table_name_32 WHERE result = "retired democratic hold" AND first_elected < 1884 AND incumbent = "samuel dibble"
``` | 45,433 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)\n\n Question: Which party had a result of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (district VARCHAR, first_elected VARCHAR, result VARCHAR)
Question: Which district had a first elected in 1882 with a result of re-elected?
Here is the SQLi... | Here is the SQLite query to answer the question:
```
SELECT district FROM table_name_7 WHERE first_elected = '1882' AND result = 're-elected';
``` | 45,434 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (district VARCHAR, first_elected VARCHAR, result VARCHAR)\n\n Question: Which district had a first elected in 1882 wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (average INTEGER, rank_by_average VARCHAR, total VARCHAR, number_of_dances VARCHAR)
Question: Which Average is the lowest one that has a Total smaller than ... | Here is the SQLite query to answer the question:
```
SELECT MIN(average) FROM table_name_38 WHERE total < '134' AND number_of_dances < '3' AND rank_by_average < '12';
```
Note: In SQLite, since `total`, `number_of_dances`, and `rank_by_average` are stored as VARCHAR, they are compared as strings. Therefore, the valu... | 45,435 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (average INTEGER, rank_by_average VARCHAR, total VARCHAR, number_of_dances VARCHAR)\n\n Question: Which Average is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (couple VARCHAR, number_of_dances VARCHAR, total VARCHAR, rank_by_average VARCHAR, average VARCHAR)
Question: Which Couple has a Rank by average larger than... | Here is the corrected SQLite query to answer the question based on the given criteria:
```
SELECT couple FROM table_name_20
WHERE CAST(rank_by_average AS INTEGER) > 3
AND CAST(average AS FLOAT) > 16.5
AND CAST(total AS INTEGER) < 195
AND CAST(number_of_dances AS INTEGER) > 3;
```
This query ensures that th... | 45,436 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (couple VARCHAR, number_of_dances VARCHAR, total VARCHAR, rank_by_average VARCHAR, average VARCHAR)\n\n Question: Wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (rank_by_average INTEGER, total VARCHAR, place VARCHAR)
Question: Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1... | Here is the SQLite query to answer the question regarding the Rank by average:
```
SELECT MIN(rank_by_average) FROM table_name_54 WHERE total = '425' AND place > '1'
``` | 45,437 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (rank_by_average INTEGER, total VARCHAR, place VARCHAR)\n\n Question: Which Rank by average is the lowest one that h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (nation VARCHAR, name VARCHAR)
Question: What nation are carolina hermann / daniel hermann from?
Here is the SQLite query to answer to the question: What n... | The query you've provided is close, but if you want to find the nations for both "carolina hermann" and "daniel hermann" separately, you might want to use an `IN` clause or run separate queries for each name. Here’s how to do it with an `IN` clause:
```sql
SELECT nation FROM table_name_64 WHERE name IN ("carolina herm... | 45,438 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (nation VARCHAR, name VARCHAR)\n\n Question: What nation are carolina hermann / daniel hermann from?\n\nHere is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (rank VARCHAR, points VARCHAR)
Question: What is the rank associated with 141.48 points?
Here is the SQLite query to answer to the question: What is the ra... | Your SQLite query needs a slight adjustment regarding the data type of the `points` column, as it is defined as `VARCHAR`. You should compare it as a string. Here's the corrected query:
```
SELECT rank FROM table_name_71 WHERE points = '141.48'
``` | 45,439 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (rank VARCHAR, points VARCHAR)\n\n Question: What is the rank associated with 141.48 points?\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (name VARCHAR, points VARCHAR)
Question: What competitors are scored 124.51 points?
Here is the SQLite query to answer to the question: What competitors ar... | Here is the corrected SQLite query to find competitors who scored 124.51 points:
```sql
SELECT name FROM table_name_88 WHERE points = '124.51'
```
In this query, the `points` value is enclosed in quotes because it is stored as a VARCHAR in the database schema. | 45,440 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (name VARCHAR, points VARCHAR)\n\n Question: What competitors are scored 124.51 points?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (pat_robertson VARCHAR, george_hw_bush VARCHAR)
Question: At what percent was Pat Robertson when George H.W. Bush had 76%?
Here is the SQLite query to answ... | Your query is almost correct, but the value to be matched for `george_hw_bush` should not include the percent sign as part of the comparison in SQL. It should be just the number if you're working with plain numeric values. Here's the corrected version of your SQLite query:
```sql
SELECT pat_robertson FROM table_name_6... | 45,441 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (pat_robertson VARCHAR, george_hw_bush VARCHAR)\n\n Question: At what percent was Pat Robertson when George H.W. Bus... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (bob_dole VARCHAR, george_hw_bush VARCHAR, pat_robertson VARCHAR)
Question: When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have?... | Here is the SQLite query that answers the question about Bob Dole's percentage when George H.W. Bush had 81% and Pat Robertson had 9%:
```
SELECT bob_dole FROM table_name_67 WHERE george_hw_bush = "81%" AND pat_robertson = "9%"
``` | 45,442 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (bob_dole VARCHAR, george_hw_bush VARCHAR, pat_robertson VARCHAR)\n\n Question: When George H.W. Bush had 81%, and P... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (pete_du_pont VARCHAR, pat_robertson VARCHAR)
Question: When Pat Robertson was at 16%, what did Pete du Pont have?
Here is the SQLite query to answer to th... | Here's the corrected SQLite query based on the provided schema and question:
```sql
SELECT pete_du_pont FROM table_name_13 WHERE pat_robertson = '16%';
```
Note: The quotation marks are updated to be single quotes for string literals in SQL, which is the standard practice. | 45,443 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (pete_du_pont VARCHAR, pat_robertson VARCHAR)\n\n Question: When Pat Robertson was at 16%, what did Pete du Pont hav... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (pat_robertson VARCHAR, bob_dole VARCHAR, george_hw_bush VARCHAR)
Question: When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have... | Here's the SQLite query you can use to find out what Pat Robertson had when Bob Dole had 26% and George H.W. Bush had 47%:
```
SELECT pat_robertson FROM table_name_12 WHERE bob_dole = '26%' AND george_hw_bush = '47%'
``` | 45,444 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (pat_robertson VARCHAR, bob_dole VARCHAR, george_hw_bush VARCHAR)\n\n Question: When Bob Dole had 26%, and George H.... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (pat_robertson VARCHAR, bob_dole VARCHAR, pete_du_pont VARCHAR)
Question: When Bob Dole had 26%, and Pete du Pont had 0%, what did Pat Robertson have?
Here... | Here is the SQLite query that answers the question:
```
SELECT pat_robertson FROM table_name_43 WHERE bob_dole = "26%" AND pete_du_pont = "0%"
``` | 45,445 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (pat_robertson VARCHAR, bob_dole VARCHAR, pete_du_pont VARCHAR)\n\n Question: When Bob Dole had 26%, and Pete du Pon... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (george_hw_bush VARCHAR, pat_robertson VARCHAR, bob_dole VARCHAR)
Question: When Pat Robertson had 19%, and Bob Dole had 26%, what did George H.W. Bush have... | Here is the SQLite query to answer the question:
```
SELECT george_hw_bush FROM table_name_43 WHERE pat_robertson = "19%" AND bob_dole = "26%"
``` | 45,446 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (george_hw_bush VARCHAR, pat_robertson VARCHAR, bob_dole VARCHAR)\n\n Question: When Pat Robertson had 19%, and Bob ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR)
Question: Date of october 10, 1965 had what lowest attendance?
Here is the SQLite query to answer to the question: Date ... | Here is the SQLite query to answer the question regarding the lowest attendance on October 10, 1965:
```
SELECT MIN(attendance) FROM table_name_59 WHERE date = "october 10, 1965"
``` | 45,447 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR)\n\n Question: Date of october 10, 1965 had what lowest attendance?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR)
Question: Opponent of chicago bears involved what date?
Here is the SQLite query to answer to the question: Opponent of ch... | Here is the corrected SQLite query to answer the question about the opponents of the Chicago Bears and the dates they were involved:
```
SELECT date FROM table_name_95 WHERE opponent = "chicago bears";
```
Make sure to replace `"chicago bears"` with the correct case if your database stores data with different capita... | 45,448 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR)\n\n Question: Opponent of chicago bears involved what date?\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (performer_1 VARCHAR, performer_2 VARCHAR)
Question: Performer 2 of compilation 2 is what performer 1?
Here is the SQLite query to answer to the question: ... | The query you provided has an error in it. It seems you are trying to find the `performer_1` associated with `performer_2` named "compilation 2". However, "compilation 2" seems to be a value in the `performer_2` column, while it is likely that you actually want to match a reference in the data that indicates "compilati... | 45,449 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (performer_1 VARCHAR, performer_2 VARCHAR)\n\n Question: Performer 2 of compilation 2 is what performer 1?\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_name_76 (performer_4 VARCHAR, performer_1 VARCHAR, date VARCHAR)
Question: Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4?
Here is th... | Certainly! Here is the SQLite query wrapped in code formatting:
```
SELECT performer_4 FROM table_name_76 WHERE performer_1 = "greg proops" AND date = "25 august 1995"
``` | 45,450 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (performer_4 VARCHAR, performer_1 VARCHAR, date VARCHAR)\n\n Question: Performer 1 of greg proops, and a Date of 25 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (episode INTEGER, date VARCHAR, performer_1 VARCHAR, performer_3 VARCHAR)
Question: Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date... | ```sql
SELECT AVG(episode) FROM table_name_74 WHERE performer_1 = "greg proops" AND performer_3 = "ryan stiles" AND date = "25 august 1995"
``` | 45,451 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (episode INTEGER, date VARCHAR, performer_1 VARCHAR, performer_3 VARCHAR)\n\n Question: Performer 1 of greg proops, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (performer_3 VARCHAR, date VARCHAR, performer_1 VARCHAR, performer_2 VARCHAR)
Question: Performer 1 of Stephen Frost, and a Performer 2 of Josie Lawrence, a... | Here is the SQLite query to answer the question regarding performer 3 for the specified conditions:
```
SELECT performer_3 FROM table_name_79 WHERE performer_1 = "Stephen Frost" AND performer_2 = "Josie Lawrence" AND date = "15 September 1995";
``` | 45,452 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (performer_3 VARCHAR, date VARCHAR, performer_1 VARCHAR, performer_2 VARCHAR)\n\n Question: Performer 1 of Stephen F... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (mountains_classification VARCHAR, asian_team_classification VARCHAR, winner VARCHAR)
Question: WHich Mountains classification has an Asian team classificat... | Here is the SQLite query that answers the question:
```sql
SELECT mountains_classification
FROM table_name_99
WHERE asian_team_classification = "seoul cycling team"
AND winner = "alexandre usov";
``` | 45,453 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (mountains_classification VARCHAR, asian_team_classification VARCHAR, winner VARCHAR)\n\n Question: WHich Mountains ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (asian_rider_classification VARCHAR, general_classification VARCHAR, stage VARCHAR)
Question: WHo is the Asian rider classification that has ruslan ivanov o... | Here is the SQLite query to answer the question regarding the Asian rider classification for Ruslan Ivanov on Stage 9:
```sql
SELECT asian_rider_classification FROM table_name_43 WHERE general_classification = "ruslan ivanov" AND stage = "9";
``` | 45,454 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (asian_rider_classification VARCHAR, general_classification VARCHAR, stage VARCHAR)\n\n Question: WHo is the Asian r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (general_classification VARCHAR, asian_rider_classification VARCHAR, winner VARCHAR)
Question: WHich General classification has an Asian rider classification... | Here is the SQLite query wrapped as requested:
```
SELECT general_classification FROM table_name_1 WHERE asian_rider_classification = "shinichi fukushima" AND winner = "jeremy hunt"
``` | 45,455 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (general_classification VARCHAR, asian_rider_classification VARCHAR, winner VARCHAR)\n\n Question: WHich General clas... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (stage VARCHAR, mountains_classification VARCHAR)
Question: Which Stage has a Mountains classification of filippo savini?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question: Which Stage has a Mountains classification of filippo savini?:
```
SELECT stage FROM table_name_79 WHERE mountains_classification = "filippo savini";
``` | 45,456 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (stage VARCHAR, mountains_classification VARCHAR)\n\n Question: Which Stage has a Mountains classification of filipp... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (stage VARCHAR, winner VARCHAR)
Question: Which Stage has a Winner of jeremy hunt?
Here is the SQLite query to answer to the question: Which Stage has a Wi... | Here is the SQLite query to answer the question "Which Stage has a Winner of jeremy hunt?":
```
SELECT stage FROM table_name_21 WHERE winner = "jeremy hunt"
``` | 45,457 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (stage VARCHAR, winner VARCHAR)\n\n Question: Which Stage has a Winner of jeremy hunt?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (winning_team VARCHAR, site VARCHAR, date VARCHAR)
Question: Which winning team has Iowa city as the site, and december 3, 2006 as the date?
Here is the SQ... | Here is the SQLite query to answer the question about which winning team has Iowa city as the site and December 3, 2006, as the date:
```
SELECT winning_team FROM table_name_42 WHERE site = "iowa city" AND date = "december 3, 2006";
``` | 45,458 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (winning_team VARCHAR, site VARCHAR, date VARCHAR)\n\n Question: Which winning team has Iowa city as the site, and d... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (site VARCHAR, date VARCHAR)
Question: What site has november 30, 2006 as the date?
Here is the SQLite query to answer to the question: What site has novem... | Here is the SQLite query to answer the question "What site has November 30, 2006, as the date?":
```
SELECT site FROM table_name_25 WHERE date = 'november 30, 2006';
``` | 45,459 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (site VARCHAR, date VARCHAR)\n\n Question: What site has november 30, 2006 as the date?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (winning_team VARCHAR, sport VARCHAR)
Question: What winning team has volleyball as the sport?
Here is the SQLite query to answer to the question: What win... | Here is the SQLite query to answer the question about the winning team that has volleyball as the sport:
```
SELECT winning_team FROM table_name_91 WHERE sport = "volleyball";
``` | 45,460 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (winning_team VARCHAR, sport VARCHAR)\n\n Question: What winning team has volleyball as the sport?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (january VARCHAR, opponent VARCHAR, game VARCHAR)
Question: What is the total number in January when the St. Louis Blues had a game smaller than 42?
Here i... | Your provided SQLite query to count the total number in January when the St. Louis Blues had a game smaller than 42 is almost correct, but it seems there might be a misunderstanding about the counting condition. Based on the schema, `game` should likely be a numeric value, and we need to check that the opponent is the ... | 45,461 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (january VARCHAR, opponent VARCHAR, game VARCHAR)\n\n Question: What is the total number in January when the St. Lou... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (january INTEGER, record VARCHAR, game VARCHAR)
Question: What is the January sum with the record of 17-20-2 with a game smaller than 39?
Here is the SQLit... | Here is the SQLite query to answer the question about the January sum with the record of 17-20-2 and a game smaller than 39:
```
SELECT SUM(january) FROM table_name_70 WHERE record = "17-20-2" AND game < 39
``` | 45,462 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (january INTEGER, record VARCHAR, game VARCHAR)\n\n Question: What is the January sum with the record of 17-20-2 wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (record VARCHAR, location VARCHAR, opponent VARCHAR)
Question: What was the record when the New York Knicks played at the Boston Garden?
Here is the SQLite... | Here's the SQLite query to answer the question regarding the record when the New York Knicks played at the Boston Garden:
```
SELECT record FROM table_name_51 WHERE location = "Boston Garden" AND opponent = "New York Knicks";
``` | 45,463 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (record VARCHAR, location VARCHAR, opponent VARCHAR)\n\n Question: What was the record when the New York Knicks play... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR)
Question: When the record was 7-2, what was the score for the game?
Here is the SQLite query to answer to the question: Whe... | Here's the SQLite query to answer the question regarding the score when the record was 7-2:
```
SELECT score FROM table_name_94 WHERE record = "7-2"
``` | 45,464 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR)\n\n Question: When the record was 7-2, what was the score for the 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_name_66 (date VARCHAR, record VARCHAR)
Question: On what date was the record 4-2?
Here is the SQLite query to answer to the question: On what date was the record 4... | Your query to find the date corresponding to the record "4-2" is correct. Here it is wrapped in code format:
```
SELECT date FROM table_name_66 WHERE record = "4-2";
``` | 45,465 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (date VARCHAR, record VARCHAR)\n\n Question: On what date was the record 4-2?\n\nHere is the SQLite query to answer ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (females_rank INTEGER, state VARCHAR, females___percentage_ VARCHAR, hiv_awareness__males_percentage_ VARCHAR)
Question: Which Females Rank is the highest on... | Here is the SQLite query to answer your question:
```
SELECT MAX(females_rank)
FROM table_name_2
WHERE females___percentage_ > 53
AND hiv_awareness__males_percentage_ < 89
AND state = "odisha";
``` | 45,466 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (females_rank INTEGER, state VARCHAR, females___percentage_ VARCHAR, hiv_awareness__males_percentage_ VARCHAR)\n\n Qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (females___percentage_ VARCHAR, males_rank VARCHAR, females_rank VARCHAR, state VARCHAR)
Question: How many Females (%) have Females Rank smaller than 21, an... | Here is the SQLite query to answer the question regarding the number of females with specific criteria:
```
SELECT COUNT(females___percentage_)
FROM table_name_1
WHERE CAST(females_rank AS INTEGER) < 21
AND state = 'kerala'
AND CAST(males_rank AS INTEGER) > 1;
```
In this query, I've added the `CAST` functio... | 45,467 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (females___percentage_ VARCHAR, males_rank VARCHAR, females_rank VARCHAR, state VARCHAR)\n\n Question: How many Femal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (females___percentage_ VARCHAR, state VARCHAR, males_rank VARCHAR)
Question: How many Females (%) have a State of karnataka, and Males Rank larger than 16?
... | The SQLite query to answer the question about how many Females (%) have a State of Karnataka, and Males Rank larger than 16 is as follows:
```sql
SELECT COUNT(females___percentage_)
FROM table_name_45
WHERE state = "karnataka"
AND males_rank > 16;
``` | 45,468 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (females___percentage_ VARCHAR, state VARCHAR, males_rank VARCHAR)\n\n Question: How many Females (%) have a State o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (males_rank INTEGER, females___percentage_ VARCHAR, females_rank VARCHAR)
Question: Which Males Rank is the highest one that has Females (%) smaller than 40... | The given SQLite query has a small issue with the type of data being compared for `females___percentage_` and `females_rank`. Since `females___percentage_` is defined as a VARCHAR, it needs to be cast to a numerical type for the comparison. Additionally, `females_rank` is also VARCHAR, so it should be handled appropria... | 45,469 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (males_rank INTEGER, females___percentage_ VARCHAR, females_rank VARCHAR)\n\n Question: Which Males Rank is the high... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (females___percentage_ INTEGER, males_rank VARCHAR, hiv_awareness__males_percentage_ VARCHAR, females_rank VARCHAR)
Question: Which Females (%) has an HIV a... | Here’s the correct SQLite query wrapped in code formatting:
```
SELECT SUM(females___percentage_)
FROM table_name_71
WHERE CAST(hiv_awareness__males_percentage_ AS INTEGER) > 92
AND CAST(females_rank AS INTEGER) > 2
AND CAST(males_rank AS INTEGER) < 3;
```
This query assumes that `hiv_awareness__males_percen... | 45,470 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (females___percentage_ INTEGER, males_rank VARCHAR, hiv_awareness__males_percentage_ VARCHAR, females_rank VARCHAR)\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (total INTEGER, league_cup INTEGER)
Question: League Cup smaller than 0 is what sum of the total?
Here is the SQLite query to answer to the question: Leagu... | Here is the SQLite query to answer the question regarding the sum of the total where the League Cup is smaller than 0:
```
SELECT SUM(total) FROM table_name_31 WHERE league_cup < 0
``` | 45,471 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (total INTEGER, league_cup INTEGER)\n\n Question: League Cup smaller than 0 is what sum of the total?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (league_cup INTEGER, total VARCHAR, championship VARCHAR, fa_cup VARCHAR)
Question: Championship larger than 3, and a FA Cup smaller than 3, and a Total sma... | Here is the SQLite query to answer the question regarding championships, FA Cup, total, and the highest league cup:
```
SELECT MAX(league_cup)
FROM table_name_27
WHERE championship > 3 AND fa_cup < 3 AND total < 6
``` | 45,472 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (league_cup INTEGER, total VARCHAR, championship VARCHAR, fa_cup VARCHAR)\n\n Question: Championship larger than 3, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
Question: Which Opponent has a Surface of hard on 28 august 1993?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question: Which Opponent has a Surface of hard on 28 August 1993?:
```
SELECT opponent FROM table_name_46 WHERE surface = "hard" AND date = "28 august 1993"
``` | 45,473 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_46 (opponent VARCHAR, surface VARCHAR, date VARCHAR)\n\n Question: Which Opponent has a Surface of hard on 28 august 19... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (outcome VARCHAR, date VARCHAR)
Question: WHICH Outcome IS ON 18 july 1993?
Here is the SQLite query to answer to the question: WHICH Outcome IS ON 18 july... | Here is the SQLite query to answer the question "WHICH Outcome IS ON 18 July 1993?":
```
SELECT outcome FROM table_name_70 WHERE date = "18 July 1993";
``` | 45,474 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (outcome VARCHAR, date VARCHAR)\n\n Question: WHICH Outcome IS ON 18 july 1993?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (outcome VARCHAR, opponent VARCHAR)
Question: WHICH Outcome has aN Opponent of pascale paradis-mangon?
Here is the SQLite query to answer to the question: ... | Your SQLite query is correctly structured to answer the question about which outcome has an opponent of "pascale paradis-mangon". Here it is wrapped in code format:
```
SELECT outcome FROM table_name_68 WHERE opponent = "pascale paradis-mangon";
``` | 45,475 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (outcome VARCHAR, opponent VARCHAR)\n\n Question: WHICH Outcome has aN Opponent of pascale paradis-mangon?\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_name_66 (score VARCHAR, outcome VARCHAR, date VARCHAR)
Question: Which Score has aN Outcome of winner on 4 november 1990?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about which score has an outcome of "winner" on 4 November 1990:
```
SELECT score FROM table_name_66 WHERE outcome = "winner" AND date = "4 november 1990";
``` | 45,476 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (score VARCHAR, outcome VARCHAR, date VARCHAR)\n\n Question: Which Score has aN Outcome of winner on 4 november 1990... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (tournament VARCHAR, opponent VARCHAR)
Question: Which Tournament has an Opponent of susan sloane?
Here is the SQLite query to answer to the question: Whic... | Here is the SQLite query to answer the question about which tournament has an opponent of susan sloane:
```
SELECT tournament FROM table_name_18 WHERE opponent = "susan sloane";
``` | 45,477 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (tournament VARCHAR, opponent VARCHAR)\n\n Question: Which Tournament has an Opponent of susan sloane?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (tournament VARCHAR, opponent VARCHAR)
Question: Which Tournament has an Opponent of meike babel?
Here is the SQLite query to answer to the question: Which... | Here is the SQLite query to answer the question regarding which tournament has an opponent of "meike babel":
```
SELECT tournament FROM table_name_92 WHERE opponent = 'meike babel';
``` | 45,478 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (tournament VARCHAR, opponent VARCHAR)\n\n Question: Which Tournament has an Opponent of meike babel?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (game INTEGER, november VARCHAR)
Question: Which Game has a November of 29?
Here is the SQLite query to answer to the question: Which Game has a November o... | The provided SQL query contains a logical error since it is trying to sum the `game` values when the question simply asks for which game has a `november` value of 29. Instead, you should be selecting the `game` column directly. Here’s the corrected query:
```sql
SELECT game FROM table_name_63 WHERE november = '29';
``... | 45,479 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (game INTEGER, november VARCHAR)\n\n Question: Which Game has a November of 29?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (points INTEGER, record VARCHAR, november VARCHAR)
Question: Which Points have a Record of 12–2–4–1, and a November larger than 22?
Here is the SQLite quer... | Here is the SQLite query to answer the question regarding which Points have a Record of 12–2–4–1 and a November larger than 22:
```
SELECT points FROM table_name_40 WHERE record = "12–2–4–1" AND november > 22
``` | 45,480 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (points INTEGER, record VARCHAR, november VARCHAR)\n\n Question: Which Points have a Record of 12–2–4–1, and a Novem... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (record VARCHAR, game VARCHAR)
Question: Which Record has a Game of 19?
Here is the SQLite query to answer to the question: Which Record has a Game of 19?:... | Here is the SQLite query to answer the question: Which Record has a Game of 19?:
```
SELECT record FROM table_name_78 WHERE game = '19'
``` | 45,481 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (record VARCHAR, game VARCHAR)\n\n Question: Which Record has a Game of 19?\n\nHere is the SQLite query to answer to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (november VARCHAR, game VARCHAR, opponent VARCHAR)
Question: How many Novembers have a Game larger than 14, and an Opponent of minnesota wild?
Here is the ... | Here is the SQLite query to answer the question about how many Novembers have a Game larger than 14, and an Opponent of "minnesota wild":
```
SELECT COUNT(november) FROM table_name_50 WHERE game > 14 AND opponent = "minnesota wild"
``` | 45,482 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (november VARCHAR, game VARCHAR, opponent VARCHAR)\n\n Question: How many Novembers have a Game larger than 14, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (november INTEGER, record VARCHAR)
Question: Which November is the lowest one that has a Record of 12–2–4–1?
Here is the SQLite query to answer to the ques... | Your query looks correct. It will find the lowest November that has a record of "12–2–4–1". Here it is wrapped in the requested format:
```
SELECT MIN(november) FROM table_name_56 WHERE record = "12–2–4–1";
``` | 45,483 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (november INTEGER, record VARCHAR)\n\n Question: Which November is the lowest one that has a Record of 12–2–4–1?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (march INTEGER, record VARCHAR, points VARCHAR)
Question: What day has a record of 25–30–13 and less than 63 points?
Here is the SQLite query to answer to ... | It looks like you want to find the days that match the specific record and have less than 63 points, not the average of the days. The `AVG(march)` seems to be incorrect in this context if you're interested in specific days. Instead, you would want to select the `march` values directly. Here’s the corrected query:
```s... | 45,484 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (march INTEGER, record VARCHAR, points VARCHAR)\n\n Question: What day has a record of 25–30–13 and less than 63 poi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (opponent VARCHAR, points VARCHAR)
Question: Which opponent has 63 points?
Here is the SQLite query to answer to the question: Which opponent has 63 points... | Here is the corrected SQLite query wrapped as requested:
```
SELECT opponent FROM table_name_98 WHERE points = '63';
```
Note: Since the `points` column is defined as `VARCHAR`, the value `63` should be surrounded by single quotes to match the string format. | 45,485 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (opponent VARCHAR, points VARCHAR)\n\n Question: Which opponent has 63 points?\n\nHere is the SQLite query to answer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (alpha VARCHAR, ia64 VARCHAR)
Question: Which Alpha contains ia64 with discontinued 3.5-3.8 4.1-4.7?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query that answers the question about which Alpha contains ia64 with the specified discontinued versions:
```
SELECT alpha FROM table_name_34 WHERE ia64 = "discontinued 3.5-3.8 4.1-4.7";
``` | 45,486 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (alpha VARCHAR, ia64 VARCHAR)\n\n Question: Which Alpha contains ia64 with discontinued 3.5-3.8 4.1-4.7?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (s390x VARCHAR, ia64 VARCHAR, alpha VARCHAR)
Question: Which s390x contains a yes ia64 and a no for alpha?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question:
```
SELECT s390x FROM table_name_21 WHERE ia64 = "yes" AND alpha = "no";
``` | 45,487 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (s390x VARCHAR, ia64 VARCHAR, alpha VARCHAR)\n\n Question: Which s390x contains a yes ia64 and a no for alpha?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (hppa VARCHAR, ppc64 VARCHAR, mips VARCHAR, alpha VARCHAR)
Question: Which hppa contains a ppc64 of yes 3+, no for mips and no for alpha?
Here is the SQLit... | Here is the SQLite query to answer the question regarding the specific conditions for `hppa`, `ppc64`, `mips`, and `alpha`:
```
SELECT hppa FROM table_name_72 WHERE mips = 'no' AND alpha = 'no' AND ppc64 = 'yes 3+'
``` | 45,488 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (hppa VARCHAR, ppc64 VARCHAR, mips VARCHAR, alpha VARCHAR)\n\n Question: Which hppa contains a ppc64 of yes 3+, no f... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (Id VARCHAR)
Question: Which 1991 has an A 1993 ?
Here is the SQLite query to answer to the question: Which 1991 has an A 1993 ?:
```
SELECT 1991 FROM tabl... | It appears that your query is using incorrect syntax and naming conventions. Typically, column names cannot be just numbers or reserved words without proper treatment. However, if you're trying to represent columns with numerical names (assuming those columns exist), you might want to use double quotes or backticks. Be... | 45,489 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (Id VARCHAR)\n\n Question: Which 1991 has an A 1993 ?\n\nHere is the SQLite query to answer to the question: Which 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (Id VARCHAR)
Question: Which 992 has a 1–2 of 1989 ?
Here is the SQLite query to answer to the question: Which 992 has a 1–2 of 1989 ?:
```
SELECT 1992 F... | The SQLite query you provided seems to have a syntax issue and may not align with the schema given. The table has only one column named `Id`, and there is no indication of columns that could represent years or specific data points that allow the query to return relevant information.
To create a meaningful query, we ne... | 45,490 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (Id VARCHAR)\n\n Question: Which 992 has a 1–2 of 1989 ?\n\nHere is the SQLite query to answer to the question: Whi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (Id VARCHAR)
Question: WHICH 1990 has a 1993 of 1r?
Here is the SQLite query to answer to the question: WHICH 1990 has a 1993 of 1r?:
```
SELECT 1990 FROM t... | It seems there is a misunderstanding in the given schema and the question that needs to be answered. The schema provided only defines a table with a single column named `Id`, and the columns referenced in the question (1990 and 1993) do not exist in the schema.
If you intend to have multiple columns like "1990" and "... | 45,491 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (Id VARCHAR)\n\n Question: WHICH 1990 has a 1993 of 1r?\n\nHere is the SQLite query to answer to the question: WHICH ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (Id VARCHAR)
Question: Which 1994 has a 1998 of 0–1?
Here is the SQLite query to answer to the question: Which 1994 has a 1998 of 0–1?:
```
SELECT 1994 FRO... | It seems there's a misunderstanding in your question regarding the usage of column names and the structure of the SQL query. A proper query must refer to the actual column names present in the database schema. Since the schema you provided only defines a single column named `Id`, the query cannot directly reference `19... | 45,492 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (Id VARCHAR)\n\n Question: Which 1994 has a 1998 of 0–1?\n\nHere is the SQLite query to answer to the question: Whic... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (Id VARCHAR)
Question: Which 1995 has a 1993 of 3r?
Here is the SQLite query to answer to the question: Which 1995 has a 1993 of 3r?:
```
SELECT 1995 FROM ... | It seems like there may be some confusion in the question. Based on the provided schema `CREATE TABLE table_name_86 (Id VARCHAR)`, it appears there are no columns named `1995` or `1993`. Instead, it looks like there is just a single column `Id`.
If the question intended to refer to specific values stored in the column... | 45,493 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (Id VARCHAR)\n\n Question: Which 1995 has a 1993 of 3r?\n\nHere is the SQLite query to answer to the question: Which... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (Id VARCHAR)
Question: Which 1992 has a 1996 of sf and a 1993 of a?
Here is the SQLite query to answer to the question: Which 1992 has a 1996 of sf and a 1... | The SQLite query based on your provided schema and question is shown correctly. Here it is wrapped in code formatting:
```
SELECT 1992 FROM table_name_59 WHERE 1996 = "sf" AND 1993 = "a"
```
This query selects the value of `1992` from `table_name_59` where the value of `1996` is `"sf"` and the value of `1993` is `"a... | 45,494 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (Id VARCHAR)\n\n Question: Which 1992 has a 1996 of sf and a 1993 of a?\n\nHere is the SQLite query to answer to the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (school VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR)
Question: Which school picked a back in round 16, after pick 89?
Here is the SQLite query t... | Here is the SQLite query to answer the question regarding which school picked a back in round 16, after pick 89:
```
SELECT school FROM table_name_20 WHERE pick > 89 AND position = 'back' AND round = '16';
``` | 45,495 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (school VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR)\n\n Question: Which school picked a back in round 16... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (visitor VARCHAR, home VARCHAR)
Question: Who was the visitor in the game that had Ottawa as the home team?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the visitor in the game that had Ottawa as the home team:
```sql
SELECT visitor FROM table_name_29 WHERE home = 'Ottawa';
``` | 45,496 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (visitor VARCHAR, home VARCHAR)\n\n Question: Who was the visitor in the game that had Ottawa as the home team?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (score VARCHAR, decision VARCHAR, home VARCHAR)
Question: What was the score in the game where Carolina was the home team and Niittymaki received the decisi... | Here's the SQLite query wrapped in the requested format:
```
SELECT score FROM table_name_90 WHERE decision = "niittymaki" AND home = "carolina";
``` | 45,497 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (score VARCHAR, decision VARCHAR, home VARCHAR)\n\n Question: What was the score in the game where Carolina was the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (date VARCHAR, loss VARCHAR)
Question: What was the date of the game that had a loss of Johnson (9-8)?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the date of the game that had a loss of Johnson (9-8):
```
SELECT date FROM table_name_30 WHERE loss = 'Johnson (9-8)';
```
Make sure to use consistent casing and correct spelling for the comparison in the `WHERE` clause. | 45,498 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (date VARCHAR, loss VARCHAR)\n\n Question: What was the date of the game that had a loss of Johnson (9-8)?\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_name_23 (athlete VARCHAR, run_3 VARCHAR, run_1 VARCHAR, run_2 VARCHAR)
Question: Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53... | Here is the SQLite query you requested, formatted correctly:
```
SELECT athlete FROM table_name_23 WHERE run_1 < 51.96 AND run_2 > 51.13 AND run_3 = 52.53
``` | 45,499 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (athlete VARCHAR, run_3 VARCHAR, run_1 VARCHAR, run_2 VARCHAR)\n\n Question: Who had a Run 1 smaller than 51.96, a R... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.