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_21 (sport VARCHAR, event VARCHAR)
Question: Which Sport had an Event of men's 400 m hurdles?
Here is the SQLite query to answer to the question: Which Sport h... | Here is the SQLite query to answer the question: Which Sport had an Event of men's 400 m hurdles?:
```
SELECT sport FROM table_name_21 WHERE event = "men's 400 m hurdles"
``` | 21,800 | [
{
"from": "human",
"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 (sport VARCHAR, event VARCHAR)\n\n Question: Which Sport had an Event of men's 400 m hurdles?\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_1 (medal VARCHAR, name VARCHAR)
Question: What Medal had a Name of manuel felix diaz?
Here is the SQLite query to answer to the question: What Medal had a Nam... | Here is the SQLite query to answer the question "What Medal had a Name of manual felix diaz?":
```
SELECT medal FROM table_name_1 WHERE name = "manuel felix diaz"
``` | 21,801 | [
{
"from": "human",
"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 (medal VARCHAR, name VARCHAR)\n\n Question: What Medal had a Name of manuel felix diaz?\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_37 (name VARCHAR, games VARCHAR, medal VARCHAR)
Question: Which Name had a Games of 2008 beijing, and a Medal of gold?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding which Name had a Games of 2008 Beijing and a Medal of gold:
```
SELECT name FROM table_name_37 WHERE games = "2008 beijing" AND medal = "gold"
``` | 21,802 | [
{
"from": "human",
"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_37 (name VARCHAR, games VARCHAR, medal VARCHAR)\n\n Question: Which Name had a Games of 2008 beijing, and a Medal of go... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (mascot VARCHAR, location VARCHAR)
Question: What is bedford's mascot?
Here is the SQLite query to answer to the question: What is bedford's mascot?:
```
S... | Here is the SQLite query to answer the question: What is Bedford's mascot?:
```
SELECT mascot FROM table_name_20 WHERE location = "bedford";
``` | 21,803 | [
{
"from": "human",
"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 (mascot VARCHAR, location VARCHAR)\n\n Question: What is bedford's mascot?\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_97 (netflix VARCHAR, segment_a VARCHAR)
Question: Segment A of heather gems is what netflix episode?
Here is the SQLite query to answer to the question: Segme... | Here is the SQLite query to answer the question about Segment A of Heather Gems:
```
SELECT netflix FROM table_name_97 WHERE segment_a = "heather gems"
``` | 21,804 | [
{
"from": "human",
"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 (netflix VARCHAR, segment_a VARCHAR)\n\n Question: Segment A of heather gems is what netflix episode?\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_99 (netflix VARCHAR, segment_b VARCHAR)
Question: Segment B of aerospace fuel lines is what netflix episode?
Here is the SQLite query to answer to the questio... | Sure! Here's the SQLite query wrapped in code formatting:
```
SELECT netflix FROM table_name_99 WHERE segment_b = "aerospace fuel lines";
``` | 21,805 | [
{
"from": "human",
"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 (netflix VARCHAR, segment_b VARCHAR)\n\n Question: Segment B of aerospace fuel lines is what netflix episode?\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_5 (segment_a VARCHAR, segment_b VARCHAR)
Question: Segment B of aerospace fuel lines has what segment A?
Here is the SQLite query to answer to the question: S... | Here is the SQLite query to answer the question:
```sql
SELECT segment_a FROM table_name_5 WHERE segment_b = "aerospace fuel lines"
``` | 21,806 | [
{
"from": "human",
"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_5 (segment_a VARCHAR, segment_b VARCHAR)\n\n Question: Segment B of aerospace fuel lines has what segment A?\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_67 (segment_c VARCHAR, episode INTEGER)
Question: Episode smaller than 210 had what segment c?
Here is the SQLite query to answer to the question: Episode sma... | Your SQLite query is correct. Here it is wrapped in the requested format:
```
SELECT segment_c FROM table_name_67 WHERE episode < 210;
``` | 21,807 | [
{
"from": "human",
"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 (segment_c VARCHAR, episode INTEGER)\n\n Question: Episode smaller than 210 had what segment c?\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_name_75 (material_collected VARCHAR, isbn VARCHAR)
Question: What's the Material collected for the 978-1401209674 ISBN?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about the Material collected for the ISBN 978-1401209674:
```
SELECT material_collected FROM table_name_75 WHERE isbn = '978-1401209674';
``` | 21,808 | [
{
"from": "human",
"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_75 (material_collected VARCHAR, isbn VARCHAR)\n\n Question: What's the Material collected for the 978-1401209674 ISBN?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (vol__number INTEGER, title VARCHAR)
Question: How many Volume Numbers have the title of Darkness Falls?
Here is the SQLite query to answer to the question... | The query you provided is not quite correct for counting the number of Volume Numbers with the title "Darkness Falls". Instead of using `SUM`, you should use `COUNT` to count the number of entries that match the title.
Here’s the corrected SQLite query:
```
SELECT COUNT(vol__number) FROM table_name_64 WHERE title = "... | 21,809 | [
{
"from": "human",
"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 (vol__number INTEGER, title VARCHAR)\n\n Question: How many Volume Numbers have the title of Darkness Falls?\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_5 (vol__number INTEGER, publication_date VARCHAR)
Question: What's the Lowest Volume Number that was published November 2004?
Here is the SQLite query to answ... | Your query has the right idea, but you need to ensure that you are checking the publication dates correctly for the entire month of November 2004. Since the `publication_date` is stored as a `VARCHAR`, it's important to check for all potential date formats that could correspond to November 2004.
Assuming the dates are... | 21,810 | [
{
"from": "human",
"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_5 (vol__number INTEGER, publication_date VARCHAR)\n\n Question: What's the Lowest Volume Number that was published Nove... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (type_of_game VARCHAR, results¹ VARCHAR)
Question: What Type of game has a Results¹ of 10:1?
Here is the SQLite query to answer to the question: What Type ... | Your SQLite query to find the type of game with results of "10:1" looks good, but please note that SQLite does not allow certain special characters in column names directly. Using a column name with a special character like '¹' could lead to errors. You can wrap the column name in double quotes to treat it as an identi... | 21,811 | [
{
"from": "human",
"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_33 (type_of_game VARCHAR, results¹ VARCHAR)\n\n Question: What Type of game has a Results¹ of 10:1?\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_name_82 (results¹ VARCHAR, date VARCHAR, type_of_game VARCHAR, city VARCHAR)
Question: With the Type is game of friendly and the City Belgrade and November 2 as the... | Here is the SQLite query according to the specified criteria:
```
SELECT results¹ FROM table_name_82 WHERE type_of_game = "friendly" AND city = "Belgrade" AND date = "November 2"
``` | 21,812 | [
{
"from": "human",
"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_82 (results¹ VARCHAR, date VARCHAR, type_of_game VARCHAR, city VARCHAR)\n\n Question: With the Type is game of friendly... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (city VARCHAR, date VARCHAR)
Question: What is the name of the City with December 21 as a Date?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about the name of the City with December 21 as a Date:
```
SELECT city FROM table_name_94 WHERE date = "December 21";
``` | 21,813 | [
{
"from": "human",
"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 (city VARCHAR, date VARCHAR)\n\n Question: What is the name of the City with December 21 as a Date?\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_name_28 (type_of_game VARCHAR, date VARCHAR)
Question: What Type of game was played on Date of July 29?
Here is the SQLite query to answer to the question: What Ty... | Here is the SQLite query to answer the question "What Type of game was played on Date of July 29?":
```sql
SELECT type_of_game FROM table_name_28 WHERE date = "July 29";
``` | 21,814 | [
{
"from": "human",
"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_28 (type_of_game VARCHAR, date VARCHAR)\n\n Question: What Type of game was played on Date of July 29?\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_name_12 (results¹ VARCHAR, type_of_game VARCHAR, date VARCHAR)
Question: What is the Results¹ that was a friendly game and played on June 25?
Here is the SQLite qu... | Here is the SQLite query to answer the question:
```
SELECT results¹ FROM table_name_12 WHERE type_of_game = "friendly" AND date = "June 25"
``` | 21,815 | [
{
"from": "human",
"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 (results¹ VARCHAR, type_of_game VARCHAR, date VARCHAR)\n\n Question: What is the Results¹ that was a friendly game a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (version VARCHAR, length VARCHAR)
Question: What is the version shown for the Length of 4:58?
Here is the SQLite query to answer to the question: What is th... | Your SQLite query is correct for retrieving the version associated with the length of "4:58". Here's the formatted code block:
```sql
SELECT version FROM table_name_1 WHERE length = "4:58";
``` | 21,816 | [
{
"from": "human",
"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 (version VARCHAR, length VARCHAR)\n\n Question: What is the version shown for the Length of 4:58?\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_name_48 (version VARCHAR, length VARCHAR, remixed_by VARCHAR)
Question: What is the version shown for the Length of 5:20, and shows Remixed by —?
Here is the SQLit... | Here is the SQLite query to answer the question about the version shown for the Length of 5:20 and Remixed by —:
```
SELECT version FROM table_name_48 WHERE length = '5:20' AND remixed_by = '—';
``` | 21,817 | [
{
"from": "human",
"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_48 (version VARCHAR, length VARCHAR, remixed_by VARCHAR)\n\n Question: What is the version shown for the Length of 5:20... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR)
Question: Record of 19–16 occurred on what date?
Here is the SQLite query to answer to the question: Record of 19–16 occurre... | Your SQLite query is correctly formulated to retrieve the date associated with the record "19–16". Here it is wrapped in code format:
```
SELECT date FROM table_name_78 WHERE record = "19–16";
```
This query will return the date(s) when the record "19–16" occurred from the table `table_name_78`. | 21,818 | [
{
"from": "human",
"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 (date VARCHAR, record VARCHAR)\n\n Question: Record of 19–16 occurred on what date?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (record VARCHAR, loss VARCHAR)
Question: Loss of postponed (rain) rescheduled for may 10 had what record?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question you provided:
```
SELECT record FROM table_name_60 WHERE loss = "postponed (rain) rescheduled for may 10";
``` | 21,819 | [
{
"from": "human",
"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 (record VARCHAR, loss VARCHAR)\n\n Question: Loss of postponed (rain) rescheduled for may 10 had what record?\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_88 (score VARCHAR, opponent VARCHAR, loss VARCHAR)
Question: Opponent of @ braves, and a Loss of pelfrey (2–5) had what score?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the opponent of `@ braves` and a loss of `pelfrey (2–5)`:
```
SELECT score FROM table_name_88 WHERE opponent = "@ braves" AND loss = "pelfrey (2–5)"
``` | 21,820 | [
{
"from": "human",
"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 (score VARCHAR, opponent VARCHAR, loss VARCHAR)\n\n Question: Opponent of @ braves, and a Loss of pelfrey (2–5) had ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (record VARCHAR, attendance VARCHAR)
Question: Attendance of 30,335 had what record?
Here is the SQLite query to answer to the question: Attendance of 30,3... | Here is the SQLite query to answer the question regarding the attendance of 30,335:
```
SELECT record FROM table_name_74 WHERE attendance = "30,335"
``` | 21,821 | [
{
"from": "human",
"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 (record VARCHAR, attendance VARCHAR)\n\n Question: Attendance of 30,335 had what record?\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_46 (score VARCHAR, record VARCHAR)
Question: Record of 22–20 involved what score?
Here is the SQLite query to answer to the question: Record of 22–20 involved... | Here is the SQLite query to answer the question about the score associated with the record of 22–20:
```
SELECT score FROM table_name_46 WHERE record = "22–20";
``` | 21,822 | [
{
"from": "human",
"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 (score VARCHAR, record VARCHAR)\n\n Question: Record of 22–20 involved what score?\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (loss VARCHAR, score VARCHAR)
Question: Score of postponed (rain) rescheduled for June 27 had what loss?
Here is the SQLite query to answer to the question... | Here is the SQLite query that answers the question regarding the loss associated with the score of "postponed (rain) rescheduled for June 27":
```
SELECT loss FROM table_name_32 WHERE score = "postponed (rain) rescheduled for June 27"
``` | 21,823 | [
{
"from": "human",
"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 (loss VARCHAR, score VARCHAR)\n\n Question: Score of postponed (rain) rescheduled for June 27 had what loss?\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_25 (virtual_channel VARCHAR, station_ownership VARCHAR, call_sign VARCHAR)
Question: Station Ownership of eicb tv, and a Call sign of ktcj-ld is what virtual n... | Here is the SQLite query to answer the question regarding the virtual network for the specified station ownership and call sign:
```
SELECT virtual_channel FROM table_name_25 WHERE station_ownership = "eicb tv" AND call_sign = "ktcj-ld"
``` | 21,824 | [
{
"from": "human",
"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 (virtual_channel VARCHAR, station_ownership VARCHAR, call_sign VARCHAR)\n\n Question: Station Ownership of eicb tv, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (network VARCHAR, call_sign VARCHAR, virtual_channel VARCHAR)
Question: Call sign of k33ln-ld, and a Virtual channel of 33.5 is what network?
Here is the S... | Here is the SQLite query to answer the question about the network for the call sign "k33ln-ld" and a virtual channel of "33.5":
```
SELECT network FROM table_name_52 WHERE call_sign = "k33ln-ld" AND virtual_channel = "33.5"
``` | 21,825 | [
{
"from": "human",
"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_52 (network VARCHAR, call_sign VARCHAR, virtual_channel VARCHAR)\n\n Question: Call sign of k33ln-ld, and a Virtual cha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (analog_channel VARCHAR, digital_channel VARCHAR)
Question: Digital channel of 32 belongs to what analog channel?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question of what analog channel corresponds to the digital channel of 32:
```sql
SELECT analog_channel FROM table_name_3 WHERE digital_channel = "32";
``` | 21,826 | [
{
"from": "human",
"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 (analog_channel VARCHAR, digital_channel VARCHAR)\n\n Question: Digital channel of 32 belongs to what analog channel?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (virtual_channel VARCHAR, call_sign VARCHAR)
Question: Call sign of k43hb-ld is what virtual channel?
Here is the SQLite query to answer to the question: C... | Here is the SQLite query to answer the question: Call sign of k43hb-ld is what virtual channel?:
```
SELECT virtual_channel FROM table_name_13 WHERE call_sign = "k43hb-ld";
``` | 21,827 | [
{
"from": "human",
"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 (virtual_channel VARCHAR, call_sign VARCHAR)\n\n Question: Call sign of k43hb-ld is what virtual channel?\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_23 (call_sign VARCHAR, virtual_channel VARCHAR)
Question: Virtual channel of 16.5 has what call sign?
Here is the SQLite query to answer to the question: Virt... | Here is the SQLite query to find the call sign for the virtual channel of 16.5:
```
SELECT call_sign FROM table_name_23 WHERE virtual_channel = "16.5";
``` | 21,828 | [
{
"from": "human",
"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 (call_sign VARCHAR, virtual_channel VARCHAR)\n\n Question: Virtual channel of 16.5 has what call sign?\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_31 (digital_channel VARCHAR, network VARCHAR)
Question: Network of nbc is what digital channel?
Here is the SQLite query to answer to the question: Network of... | Here's the SQLite query to find the digital channel for the network "nbc":
```sql
SELECT digital_channel FROM table_name_31 WHERE network = "nbc";
``` | 21,829 | [
{
"from": "human",
"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 (digital_channel VARCHAR, network VARCHAR)\n\n Question: Network of nbc is what digital channel?\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_name_5 (first INTEGER, total VARCHAR, gold VARCHAR)
Question: What is the latest first year with 0 total medals and over 0 golds?
Here is the SQLite query to answe... | It seems there is a small error in your query. To find the latest year with 0 total medals and over 0 golds, the conditions should be that `total` is equal to '0' and `gold` is greater than '0'. Also, since `total` is defined as a `VARCHAR`, you would need to compare it as a string. Here's the corrected query:
```sql
... | 21,830 | [
{
"from": "human",
"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_5 (first INTEGER, total VARCHAR, gold VARCHAR)\n\n Question: What is the latest first year with 0 total medals and over... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (bronze INTEGER, games VARCHAR, total VARCHAR, gold VARCHAR)
Question: How many bronzes associated with over 0 total medals, 3 golds, and over 6 games?
Here... | The provided SQLite query does not accurately reflect the requirement to count the number of bronzes based on the specified conditions. Instead, it attempts to calculate the average of the `bronze` column. Below is the corrected SQLite query that counts the number of entries that meet all specified criteria:
```sql
SE... | 21,831 | [
{
"from": "human",
"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_9 (bronze INTEGER, games VARCHAR, total VARCHAR, gold VARCHAR)\n\n Question: How many bronzes associated with over 0 to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (total INTEGER, games VARCHAR, gold VARCHAR)
Question: What is the fewest number of medals associated with under 6 games and over 0 golds?
Here is the SQLi... | Your SQLite query looks correct for the given question. Here's the query wrapped in code formatting:
```
SELECT MIN(total) FROM table_name_44 WHERE games < 6 AND gold > 0
```
This query will select the minimum total number of medals from the table where the number of games is less than 6 and the number of golds is m... | 21,832 | [
{
"from": "human",
"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_44 (total INTEGER, games VARCHAR, gold VARCHAR)\n\n Question: What is the fewest number of medals associated with under... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (games INTEGER, gold VARCHAR, first VARCHAR)
Question: How many games are associated with over 0 golds and a first year before 2008?
Here is the SQLite que... | Here is the corrected SQLite query to answer the question:
```sql
SELECT SUM(games) FROM table_name_61 WHERE CAST(gold AS INTEGER) > 0 AND CAST(first AS INTEGER) < 2008;
```
Please note that I've added `CAST` to convert `gold` and `first` to integers, assuming that `gold` should represent a numerical value and `firs... | 21,833 | [
{
"from": "human",
"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_61 (games INTEGER, gold VARCHAR, first VARCHAR)\n\n Question: How many games are associated with over 0 golds and a fir... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (goals INTEGER, rank VARCHAR, goal_ratio VARCHAR)
Question: What is the largest value for goals in rank over 3 with goal ration of 0.54?
Here is the SQLite... | Your SQLite query is almost correct, but there is a small issue with the data type for `goal_ratio`. Since `goal_ratio` is defined as `VARCHAR`, the comparison should be enclosed in quotes. Here’s the corrected query:
```
SELECT MAX(goals) FROM table_name_53 WHERE rank > '3' AND goal_ratio = '0.54'
```
This ensures ... | 21,834 | [
{
"from": "human",
"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 (goals INTEGER, rank VARCHAR, goal_ratio VARCHAR)\n\n Question: What is the largest value for goals in rank over 3 w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (goal_ratio VARCHAR, rank VARCHAR, games VARCHAR)
Question: How many goal ratios have rank of 2 with more than 44 games?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about how many goal ratios have a rank of 2 with more than 44 games:
```
SELECT COUNT(goal_ratio) FROM table_name_46 WHERE rank = '2' AND games > '44';
``` | 21,835 | [
{
"from": "human",
"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 (goal_ratio VARCHAR, rank VARCHAR, games VARCHAR)\n\n Question: How many goal ratios have rank of 2 with more than 4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (games VARCHAR, goals VARCHAR, rank VARCHAR)
Question: How many games have 23 goals with a rank greater than 9?
Here is the SQLite query to answer to the q... | Your SQLite query is almost correct but needs a slight modification in terms of data type comparison for the `goals` and `rank` columns. Since they are defined as `VARCHAR`, it's important to ensure that the comparisons are still valid. Here’s your query, wrapped properly:
```
SELECT COUNT(games) FROM table_name_62 WH... | 21,836 | [
{
"from": "human",
"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 (games VARCHAR, goals VARCHAR, rank VARCHAR)\n\n Question: How many games have 23 goals with a rank greater than 9?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (goals VARCHAR, goal_ratio VARCHAR, games VARCHAR)
Question: How many goals have a goal ration less than 0.8 with 56 games?
Here is the SQLite query to ans... | Your SQLite query is almost correct, but you must ensure that the `games` column is compared to a numeric value, as it seems to be represented as a string (VARCHAR). You might need to cast it to an integer. Here's the updated query:
```sql
SELECT COUNT(goals) FROM table_name_49 WHERE goal_ratio < '0.8' AND games = '56... | 21,837 | [
{
"from": "human",
"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_49 (goals VARCHAR, goal_ratio VARCHAR, games VARCHAR)\n\n Question: How many goals have a goal ration less than 0.8 wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (event VARCHAR, outcome VARCHAR)
Question: What Event has an Outcome of other open tournaments?
Here is the SQLite query to answer to the question: What Ev... | Your SQLite query to find the Event that has an Outcome of "other open tournaments" is correct. Here it is wrapped in code formatting:
```
SELECT event FROM table_name_34 WHERE outcome = "other open tournaments";
``` | 21,838 | [
{
"from": "human",
"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 (event VARCHAR, outcome VARCHAR)\n\n Question: What Event has an Outcome of other open tournaments?\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_name_12 (outcome VARCHAR, event VARCHAR, venue VARCHAR)
Question: What is the Outcome of the Singles Event in London, England?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question about the outcome of the Singles Event in London, England:
```sql
SELECT outcome FROM table_name_12 WHERE event = "singles" AND venue = "london, england";
``` | 21,839 | [
{
"from": "human",
"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 (outcome VARCHAR, event VARCHAR, venue VARCHAR)\n\n Question: What is the Outcome of the Singles Event in London, En... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (opponent_in_the_final VARCHAR, outcome VARCHAR)
Question: What is the Opponent in final with an All England Open Outcome?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the Opponent in the final with an All England Open outcome:
```
SELECT opponent_in_the_final FROM table_name_58 WHERE outcome = "All England Open";
``` | 21,840 | [
{
"from": "human",
"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_58 (opponent_in_the_final VARCHAR, outcome VARCHAR)\n\n Question: What is the Opponent in final with an All England Ope... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, outcome VARCHAR, venue VARCHAR)
Question: Who was the Opponent in London, England with an Outcome of 1?
Here is the SQLite q... | Here is the SQLite query to answer the question about who was the opponent in London, England with an outcome of 1:
```
SELECT opponent_in_the_final FROM table_name_8 WHERE outcome = "1" AND venue = "London, England";
``` | 21,841 | [
{
"from": "human",
"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 (opponent_in_the_final VARCHAR, outcome VARCHAR, venue VARCHAR)\n\n Question: Who was the Opponent in London, England... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (outcome VARCHAR, opponent_in_the_final VARCHAR)
Question: What is the Outcome when All England Open is the Opponent in the final?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding the outcome when All England Open is the opponent in the final:
```
SELECT outcome FROM table_name_67 WHERE opponent_in_the_final = "All England Open";
``` | 21,842 | [
{
"from": "human",
"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 (outcome VARCHAR, opponent_in_the_final VARCHAR)\n\n Question: What is the Outcome when All England Open is the Oppo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (name VARCHAR, length VARCHAR, time VARCHAR)
Question: What is the Name of the stage with a Length of 16.62km and Time of 15:10?
Here is the SQLite query t... | Here is the SQLite query to answer the given question:
```sql
SELECT name FROM table_name_11 WHERE length = "16.62km" AND time = "15:10";
``` | 21,843 | [
{
"from": "human",
"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 (name VARCHAR, length VARCHAR, time VARCHAR)\n\n Question: What is the Name of the stage with a Length of 16.62km an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (name VARCHAR, stage VARCHAR, winner VARCHAR, length VARCHAR)
Question: What is the Name of the stage with S. Loeb as the Winner with a Length of 13.04km and... | Here is the SQLite query to answer the question you provided:
```
SELECT name FROM table_name_8 WHERE winner = "S. Loeb" AND length = "13.04km" AND stage = "SS12"
``` | 21,844 | [
{
"from": "human",
"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 (name VARCHAR, stage VARCHAR, winner VARCHAR, length VARCHAR)\n\n Question: What is the Name of the stage with S. Loe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (name VARCHAR, stage VARCHAR)
Question: What is the Name of the SS5 Stage?
Here is the SQLite query to answer to the question: What is the Name of the SS5 ... | Certainly! Here is the SQLite query wrapped in code formatting:
```
SELECT name FROM table_name_90 WHERE stage = "ss5";
``` | 21,845 | [
{
"from": "human",
"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 (name VARCHAR, stage VARCHAR)\n\n Question: What is the Name of the SS5 Stage?\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_3 (name VARCHAR, stage VARCHAR)
Question: What is the Name of the SS11 Stage?
Here is the SQLite query to answer to the question: What is the Name of the SS11... | Here is the SQLite query to answer the question about the Name of the SS11 Stage:
```
SELECT name FROM table_name_3 WHERE stage = "ss11";
``` | 21,846 | [
{
"from": "human",
"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 (name VARCHAR, stage VARCHAR)\n\n Question: What is the Name of the SS11 Stage?\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_42 (game VARCHAR, record VARCHAR, march VARCHAR)
Question: How many games ended in a record of 30-28-4, with a March more than 1?
Here is the SQLite query to ... | You have already provided the correct SQLite query to count the number of games that ended with a record of "30-28-4" and a March value greater than 1. Here it is again, properly formatted in code blocks:
```
SELECT COUNT(game) FROM table_name_42 WHERE record = "30-28-4" AND march > 1;
``` | 21,847 | [
{
"from": "human",
"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 (game VARCHAR, record VARCHAR, march VARCHAR)\n\n Question: How many games ended in a record of 30-28-4, with a Marc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (competition VARCHAR, result VARCHAR, date VARCHAR)
Question: What competition has a result of W on June 30, 1966?
Here is the SQLite query to answer to th... | The SQLite query you provided contains a couple of issues. The comparison for the result should be uppercase "W" if that is the case in your data, and the date might need to be formatted consistently. Here is the corrected version of your query:
```sql
SELECT competition FROM table_name_31 WHERE result = "W" AND date ... | 21,848 | [
{
"from": "human",
"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 (competition VARCHAR, result VARCHAR, date VARCHAR)\n\n Question: What competition has a result of W on June 30, 196... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (result VARCHAR, competition VARCHAR, date VARCHAR)
Question: What is the result of the International Friendly competition on May 15, 1966?
Here is the SQL... | Here is the SQLite query to answer the question about the result of the International Friendly competition on May 15, 1966:
```
SELECT result FROM table_name_89 WHERE competition = "International Friendly" AND date = "May 15, 1966";
``` | 21,849 | [
{
"from": "human",
"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_89 (result VARCHAR, competition VARCHAR, date VARCHAR)\n\n Question: What is the result of the International Friendly c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (result VARCHAR, score VARCHAR)
Question: What is the result when the score is 4-0?
Here is the SQLite query to answer to the question: What is the result ... | To answer your question, you can use the following SQLite query:
```
SELECT result FROM table_name_82 WHERE score = "4-0"
``` | 21,850 | [
{
"from": "human",
"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_82 (result VARCHAR, score VARCHAR)\n\n Question: What is the result when the score is 4-0?\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_18 (code__iata_icao_ VARCHAR, rank VARCHAR)
Question: What is the code for rank 10?
Here is the SQLite query to answer to the question: What is the code for r... | Your query is almost correct, but you need to make sure that the value for rank is treated as a string since it is likely stored as a VARCHAR. Here’s the corrected version:
```sql
SELECT code__iata_icao_ FROM table_name_18 WHERE rank = '10'
```
This assumes that 'rank' is stored as a string in the database. If 'rank... | 21,851 | [
{
"from": "human",
"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 (code__iata_icao_ VARCHAR, rank VARCHAR)\n\n Question: What is the code for rank 10?\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_85 (week_6 VARCHAR, week_3 VARCHAR, week_7 VARCHAR)
Question: Name the week 6 when week 3 is 25 and week 7 is eliminated
Here is the SQLite query to answer to... | Here is the SQLite query you provided, wrapped in the requested format:
```
SELECT week_6 FROM table_name_85 WHERE week_3 = "25" AND week_7 = "eliminated"
``` | 21,852 | [
{
"from": "human",
"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_85 (week_6 VARCHAR, week_3 VARCHAR, week_7 VARCHAR)\n\n Question: Name the week 6 when week 3 is 25 and week 7 is elimi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (week_3 VARCHAR, team VARCHAR)
Question: Name the week 3 for team of mark/jennifer
Here is the SQLite query to answer to the question: Name the week 3 for ... | The SQLite query you provided is almost correct. However, if you intend to refer to two different teams (i.e., "mark" and "jennifer"), you should use the `IN` clause or an `OR` condition. Here's how you can do that:
```sql
SELECT week_3 FROM table_name_99 WHERE team IN ("mark", "jennifer")
```
or alternatively:
```s... | 21,853 | [
{
"from": "human",
"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 (week_3 VARCHAR, team VARCHAR)\n\n Question: Name the week 3 for team of mark/jennifer\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_66 (team VARCHAR, week_1 VARCHAR)
Question: Name the team for week 1 of 33
Here is the SQLite query to answer to the question: Name the team for week 1 of 33:... | Here is the SQLite query to answer the question: Name the team for week 1 of 33:
```
SELECT team FROM table_name_66 WHERE week_1 = '33';
``` | 21,854 | [
{
"from": "human",
"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 (team VARCHAR, week_1 VARCHAR)\n\n Question: Name the team for week 1 of 33\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_94 (week_3 VARCHAR, week_6 VARCHAR)
Question: Name the week 3 with week 6 of 31+40=71
Here is the SQLite query to answer to the question: Name the week 3 with... | The provided query has a logical mistake in the WHERE clause. The expression `31 + 40 = 71` should be checked directly against the value of `week_6`. In SQL, you need to check if the `week_6` column matches the calculated result.
Here is the corrected SQLite query:
```
SELECT week_3 FROM table_name_94 WHERE week_6 = ... | 21,855 | [
{
"from": "human",
"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 (week_3 VARCHAR, week_6 VARCHAR)\n\n Question: Name the week 3 with week 6 of 31+40=71\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_67 (week_1 VARCHAR, week_3 VARCHAR)
Question: Name the week 3 of 36
Here is the SQLite query to answer to the question: Name the week 3 of 36:
```
SELECT week... | Your SQLite query to retrieve the value of `week_1` based on the condition that `week_3` is equal to "36" looks mostly correct, but it seems like you may want to select `week_3` instead. Here's the corrected query to answer the question, formatted as requested:
```
SELECT week_3 FROM table_name_67 WHERE week_3 = "36"
... | 21,856 | [
{
"from": "human",
"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 (week_1 VARCHAR, week_3 VARCHAR)\n\n Question: Name the week 3 of 36\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_name_88 (team VARCHAR, week_1 VARCHAR)
Question: Name the team for week 1 of 28
Here is the SQLite query to answer to the question: Name the team for week 1 of 28:... | Your SQLite query is almost correct, but to find the team for week 1 of 28, you should be checking if the `week_1` has a value of `28`. Here's the query properly wrapped:
```
SELECT team FROM table_name_88 WHERE week_1 = '28';
```
This query selects the team where the `week_1` field is equal to '28'. | 21,857 | [
{
"from": "human",
"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 (team VARCHAR, week_1 VARCHAR)\n\n Question: Name the team for week 1 of 28\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_21 (home VARCHAR, visitor VARCHAR)
Question: Who was the home team in the game having a visitor of Chicago?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question of who was the home team in the game having a visitor of Chicago:
```
SELECT home FROM table_name_21 WHERE visitor = "Chicago";
``` | 21,858 | [
{
"from": "human",
"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 (home VARCHAR, visitor VARCHAR)\n\n Question: Who was the home team in the game having a visitor of Chicago?\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_22 (date VARCHAR, visitor VARCHAR)
Question: What is the date of the game that had a visitor of Chicago?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question regarding the date of the game that had a visitor of Chicago:
```
SELECT date FROM table_name_22 WHERE visitor = "Chicago"
``` | 21,859 | [
{
"from": "human",
"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_22 (date VARCHAR, visitor VARCHAR)\n\n Question: What is the date of the game that had a visitor of Chicago?\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_60 (version VARCHAR, length VARCHAR)
Question: what album is 5:15 long
Here is the SQLite query to answer to the question: what album is 5:15 long:
```
SELECT... | Here is the SQLite query you can use to find the album that is 5:15 long:
```
SELECT version FROM table_name_60 WHERE length = "5:15";
``` | 21,860 | [
{
"from": "human",
"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 (version VARCHAR, length VARCHAR)\n\n Question: what album is 5:15 long\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_73 (total VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR)
Question: How many total show when silver is 0, bronze is 1, and the rank is less than 3?
Her... | Here is the SQLite query to answer the question about how many total shows there are when silver is 0, bronze is 1, and the rank is less than 3:
```
SELECT COUNT(total) FROM table_name_73 WHERE silver = '0' AND bronze = '1' AND rank < '3';
``` | 21,861 | [
{
"from": "human",
"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 (total VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR)\n\n Question: How many total show when silver is 0, br... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (rank INTEGER, gold INTEGER)
Question: What is the number for rank when gold is less than 0?
Here is the SQLite query to answer to the question: What is th... | Your query looks mostly correct for summing the ranks where the gold is less than 0. However, if you're specifically looking for the ranks where gold is less than 0 rather than the sum of those ranks, you'll want to select the ranks directly. Here's the correct query to find the ranks where gold is less than 0:
```sql... | 21,862 | [
{
"from": "human",
"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 (rank INTEGER, gold INTEGER)\n\n Question: What is the number for rank when gold is less than 0?\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_name_57 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
Question: What is the average for silver when bronze is less than 1, and gold is more than 0?
Here is the SQ... | Here is the SQLite query to answer the question:
```
SELECT AVG(silver) FROM table_name_57 WHERE bronze < 1 AND gold > 0
``` | 21,863 | [
{
"from": "human",
"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_57 (silver INTEGER, bronze VARCHAR, gold VARCHAR)\n\n Question: What is the average for silver when bronze is less than... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
Question: What is the average Gold when the rank is less than 3 and the bronze is less than 1?
Here is the SQL... | The query you've provided has a small error regarding how the conditions are evaluated. Since the column `bronze` is of type VARCHAR, we should compare it to a string rather than an integer.
Assuming you want to find records where `bronze` is possibly '0' (the string representation), the corrected query would be:
``... | 21,864 | [
{
"from": "human",
"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 (gold INTEGER, rank VARCHAR, bronze VARCHAR)\n\n Question: What is the average Gold when the rank is less than 3 and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (rank INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR)
Question: What is the average Rank when there are 2 bronze, the total is 2 and gold is less than... | Your SQLite query is almost correct, but it needs a minor adjustment because the fields `bronze`, `total`, and `gold` are of type `VARCHAR`. You should compare these fields to string values rather than integers. Here's the corrected query:
```sql
SELECT AVG(rank) FROM table_name_19 WHERE bronze = '2' AND total = '2' A... | 21,865 | [
{
"from": "human",
"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_19 (rank INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR)\n\n Question: What is the average Rank when there are 2 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (player VARCHAR, round VARCHAR)
Question: what player is playing on round 1
Here is the SQLite query to answer to the question: what player is playing on r... | Here is the SQLite query to answer the question about which player is playing in round 1:
```
SELECT player FROM table_name_53 WHERE round = "1";
``` | 21,866 | [
{
"from": "human",
"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 (player VARCHAR, round VARCHAR)\n\n Question: what player is playing on round 1\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_91 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
Question: what is the school that hosts mikael renberg
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about which school hosts Mikael Renberg:
```
SELECT college_junior_club_team__league_ FROM table_name_91 WHERE player = "mikael renberg"
``` | 21,867 | [
{
"from": "human",
"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 (college_junior_club_team__league_ VARCHAR, player VARCHAR)\n\n Question: what is the school that hosts mikael renbe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (area_served VARCHAR, callsign VARCHAR)
Question: Which area served has a Callsign of 5ddn?
Here is the SQLite query to answer to the question: Which area ... | Your SQLite query is correct and effectively retrieves the area served associated with the given callsign. Here it is wrapped in the requested format:
```
SELECT area_served FROM table_name_99 WHERE callsign = "5ddn";
``` | 21,868 | [
{
"from": "human",
"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 (area_served VARCHAR, callsign VARCHAR)\n\n Question: Which area served has a Callsign of 5ddn?\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_name_65 (purpose VARCHAR, frequency VARCHAR)
Question: What is the purpose for Frequency of 102.3?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question about the purpose for the frequency of 102.3:
```
SELECT purpose FROM table_name_65 WHERE frequency = "102.3";
``` | 21,869 | [
{
"from": "human",
"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 (purpose VARCHAR, frequency VARCHAR)\n\n Question: What is the purpose for Frequency of 102.3?\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_67 (freq_currently VARCHAR, frequency VARCHAR)
Question: What is the current freq for Frequency of 104.7?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about the current frequency for Frequency of 104.7:
```
SELECT freq_currently FROM table_name_67 WHERE frequency = "104.7"
``` | 21,870 | [
{
"from": "human",
"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 (freq_currently VARCHAR, frequency VARCHAR)\n\n Question: What is the current freq for Frequency of 104.7?\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_7 (score VARCHAR, home VARCHAR)
Question: What was the score for the game with FK Bratstvo as home team?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question regarding the score for the game with FK Bratstvo as the home team:
```
SELECT score FROM table_name_7 WHERE home = "FK Bratstvo";
``` | 21,871 | [
{
"from": "human",
"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 (score VARCHAR, home VARCHAR)\n\n Question: What was the score for the game with FK Bratstvo as home team?\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_89 (attendance VARCHAR, guest VARCHAR)
Question: What was the attendance of the game that had an away team of FK Mogren?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the attendance of the game that had an away team of FK Mogren:
```
SELECT attendance FROM table_name_89 WHERE guest = "FK Mogren";
``` | 21,872 | [
{
"from": "human",
"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_89 (attendance VARCHAR, guest VARCHAR)\n\n Question: What was the attendance of the game that had an away team of FK Mo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (score_in_the_final VARCHAR, partnering VARCHAR)
Question: What was the final score for the match with a partnering of Tessa Price?
Here is the SQLite quer... | Here is the SQLite query to answer the question about the final score for the match with a partnering of Tessa Price:
```
SELECT score_in_the_final FROM table_name_48 WHERE partnering = "Tessa Price";
``` | 21,873 | [
{
"from": "human",
"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_48 (score_in_the_final VARCHAR, partnering VARCHAR)\n\n Question: What was the final score for the match with a partner... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (round INTEGER, player VARCHAR, pick VARCHAR)
Question: What is the earliest round that Donald Mason had a pick larger than 114?
Here is the SQLite query t... | Your query looks almost correct, but the `pick` column is likely a `VARCHAR` type based on the schema you provided, so you might want to cast it to an integer to correctly compare it with the number 114. Here's a refined version of your query:
```sql
SELECT MIN(round)
FROM table_name_18
WHERE player = "Donald Mason"... | 21,874 | [
{
"from": "human",
"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 (round INTEGER, player VARCHAR, pick VARCHAR)\n\n Question: What is the earliest round that Donald Mason had a pick ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR)
Question: What is the nationality of the player from Drexel who had a pick larger than 183?
He... | Here is the SQLite query to answer the question about the nationality of the player from Drexel who had a pick larger than 183:
```sql
SELECT nationality FROM table_name_9 WHERE pick > 183 AND school_club_team = "drexel";
``` | 21,875 | [
{
"from": "human",
"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_9 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR)\n\n Question: What is the nationality of the player fro... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (country VARCHAR, stadium VARCHAR)
Question: What country has grandstand stadium as the stadium?
Here is the SQLite query to answer to the question: What c... | Here is the SQLite query to answer the question: What country has grandstand stadium as the stadium?:
```
SELECT country FROM table_name_71 WHERE stadium = "grandstand stadium"
``` | 21,876 | [
{
"from": "human",
"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 (country VARCHAR, stadium VARCHAR)\n\n Question: What country has grandstand stadium as the stadium?\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_19 (capacity INTEGER, country VARCHAR)
Question: What is the average capacity that has switzerland as the country?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding the average capacity for Switzerland:
```
SELECT AVG(capacity) FROM table_name_19 WHERE country = "switzerland"
``` | 21,877 | [
{
"from": "human",
"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_19 (capacity INTEGER, country VARCHAR)\n\n Question: What is the average capacity that has switzerland as the country?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (capacity INTEGER, stadium VARCHAR)
Question: What is the average capacity that has rod laver arena as the stadium?
Here is the SQLite query to answer to t... | Here is the SQLite query to calculate the average capacity for the stadium "rod laver arena":
```
SELECT AVG(capacity) FROM table_name_97 WHERE stadium = "rod laver arena";
``` | 21,878 | [
{
"from": "human",
"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 (capacity INTEGER, stadium VARCHAR)\n\n Question: What is the average capacity that has rod laver arena as the stadi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (january INTEGER, record VARCHAR, points VARCHAR)
Question: How much January has a Record of 26–12–6, and Points smaller than 58?
Here is the SQLite query ... | Here is the SQLite query to answer the question:
```
SELECT SUM(january) FROM table_name_37 WHERE record = "26–12–6" AND points < 58
``` | 21,879 | [
{
"from": "human",
"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_37 (january INTEGER, record VARCHAR, points VARCHAR)\n\n Question: How much January has a Record of 26–12–6, and Points... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (points INTEGER, score VARCHAR)
Question: Which Points have a Score of 4–1?
Here is the SQLite query to answer to the question: Which Points have a Score o... | Here's the SQLite query to answer the question about which points have a score of "4–1":
```sql
SELECT points FROM table_name_35 WHERE score = "4–1";
```
This query retrieves all the points that have a score of "4–1". If you need to find the maximum points specifically, you can use the following query:
```sql
SELEC... | 21,880 | [
{
"from": "human",
"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 (points INTEGER, score VARCHAR)\n\n Question: Which Points have a Score of 4–1?\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_38 (game VARCHAR, score VARCHAR, points VARCHAR)
Question: How many Games have a Score of 2–6, and Points larger than 62?
Here is the SQLite query to answer t... | Your SQLite query is almost correct, but the condition for checking the `score` should take into account that scores are typically represented in a certain format, and “2–6” might be an approximation of how the score is stored in the database.
Assuming that you simply want to count the games with that exact score and ... | 21,881 | [
{
"from": "human",
"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 (game VARCHAR, score VARCHAR, points VARCHAR)\n\n Question: How many Games have a Score of 2–6, and Points larger th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (region VARCHAR, catalog VARCHAR)
Question: Tell me the region for catalog of 576 096-2
Here is the SQLite query to answer to the question: Tell me the reg... | Here is the SQLite query to answer the question: Tell me the region for catalog of 576 096-2:
```
SELECT region FROM table_name_61 WHERE catalog = "576 096-2";
``` | 21,882 | [
{
"from": "human",
"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_61 (region VARCHAR, catalog VARCHAR)\n\n Question: Tell me the region for catalog of 576 096-2\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_name_2 (catalog VARCHAR, date VARCHAR)
Question: Name the catalog for 26 march 1996
Here is the SQLite query to answer to the question: Name the catalog for 26 mar... | Certainly! Here is the SQLite query wrapped in code formatting:
```
SELECT catalog FROM table_name_2 WHERE date = "26 march 1996"
``` | 21,883 | [
{
"from": "human",
"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 (catalog VARCHAR, date VARCHAR)\n\n Question: Name the catalog for 26 march 1996\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_47 (region VARCHAR, catalog VARCHAR)
Question: Name the region with catalog of 576 097-2
Here is the SQLite query to answer to the question: Name the region w... | Here is the SQLite query to answer the question regarding the region with a catalog of 576 097-2:
```
SELECT region FROM table_name_47 WHERE catalog = '576 097-2';
``` | 21,884 | [
{
"from": "human",
"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 (region VARCHAR, catalog VARCHAR)\n\n Question: Name the region with catalog of 576 097-2\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_name_41 (score VARCHAR, save VARCHAR)
Question: The game that has a save of lynch (4) ended with what score?
Here is the SQLite query to answer to the question: Th... | Here is the SQLite query to answer the question regarding the score for the game with a save of "lynch (4)":
```
SELECT score FROM table_name_41 WHERE save = "lynch (4)"
``` | 21,885 | [
{
"from": "human",
"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_41 (score VARCHAR, save VARCHAR)\n\n Question: The game that has a save of lynch (4) ended with what score?\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_23 (date VARCHAR, loss VARCHAR)
Question: On which day did the Chicago Cubs have a loss of trout (4-2)?
Here is the SQLite query to answer to the question: On... | Here is the SQLite query wrapped in code formatting:
```
SELECT date FROM table_name_23 WHERE loss = "trout (4-2)";
``` | 21,886 | [
{
"from": "human",
"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 (date VARCHAR, loss VARCHAR)\n\n Question: On which day did the Chicago Cubs have a loss of trout (4-2)?\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_28 (loss VARCHAR, opponent VARCHAR, save VARCHAR)
Question: What is the loss for the game against @ expos, with a save of parrett (2)?
Here is the SQLite quer... | Your SQLite query is correctly structured to retrieve the loss for a game against "@ expos" with a save attribute of "parrett (2)". Here it is wrapped in code format as requested:
```
SELECT loss FROM table_name_28 WHERE opponent = "@ expos" AND save = "parrett (2)"
``` | 21,887 | [
{
"from": "human",
"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_28 (loss VARCHAR, opponent VARCHAR, save VARCHAR)\n\n Question: What is the loss for the game against @ expos, with a 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 (score VARCHAR, loss VARCHAR)
Question: The game with a loss of smith (2-4) ended with what score?
Here is the SQLite query to answer to the question: The g... | Here is the SQLite query to answer the question regarding the game with a loss of "smith (2-4)" and to find out what score it ended with:
```
SELECT score FROM table_name_6 WHERE loss = "smith (2-4)";
``` | 21,888 | [
{
"from": "human",
"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 (score VARCHAR, loss VARCHAR)\n\n Question: The game with a loss of smith (2-4) ended with what score?\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_45 (date VARCHAR, loss VARCHAR)
Question: What is the date for the game that included a loss of sutcliffe (10-4)?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding the date for the game that included a loss of sutcliffe (10-4):
```
SELECT date FROM table_name_45 WHERE loss = "sutcliffe (10-4)";
``` | 21,889 | [
{
"from": "human",
"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 (date VARCHAR, loss VARCHAR)\n\n Question: What is the date for the game that included a loss of sutcliffe (10-4)?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (date VARCHAR, tournament VARCHAR)
Question: What is the date of the Greater Greensboro Chrysler Classic?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question regarding the date of the Greater Greensboro Chrysler Classic:
```
SELECT date FROM table_name_88 WHERE tournament = "Greater Greensboro Chrysler Classic"
``` | 21,890 | [
{
"from": "human",
"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 (date VARCHAR, tournament VARCHAR)\n\n Question: What is the date of the Greater Greensboro Chrysler Classic?\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_65 (score VARCHAR, location VARCHAR, tournament VARCHAR)
Question: What is the score of the B.C. Open in New York?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question "What is the score of the B.C. Open in New York?":
```
SELECT score FROM table_name_65 WHERE location = "New York" AND tournament = "B.C. Open";
``` | 21,891 | [
{
"from": "human",
"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 (score VARCHAR, location VARCHAR, tournament VARCHAR)\n\n Question: What is the score of the B.C. Open in New York?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (winner VARCHAR, location VARCHAR, date VARCHAR)
Question: Who is the winner of the tournament in Georgia on Oct 3?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question:
```
SELECT winner FROM table_name_90 WHERE location = "Georgia" AND date = "Oct 3";
``` | 21,892 | [
{
"from": "human",
"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 (winner VARCHAR, location VARCHAR, date VARCHAR)\n\n Question: Who is the winner of the tournament in Georgia on Oct... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (shirt_number INTEGER, cap_number VARCHAR)
Question: What's the largest shirt number when the cap number is 5?
Here is the SQLite query to answer to the qu... | Here is the SQLite query you requested:
```
SELECT MAX(shirt_number) FROM table_name_22 WHERE cap_number = 5;
``` | 21,893 | [
{
"from": "human",
"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_22 (shirt_number INTEGER, cap_number VARCHAR)\n\n Question: What's the largest shirt number when the cap number is 5?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (team VARCHAR, division VARCHAR, home_arena VARCHAR)
Question: Which team is in the Southeast with a home at Philips Arena?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question:
```
SELECT team FROM table_name_29 WHERE division = "southeast" AND home_arena = "philips arena"
``` | 21,894 | [
{
"from": "human",
"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 (team VARCHAR, division VARCHAR, home_arena VARCHAR)\n\n Question: Which team is in the Southeast with a home at Phi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (division VARCHAR, team VARCHAR)
Question: Which division do the Toronto Raptors belong in?
Here is the SQLite query to answer to the question: Which divis... | Here is the SQLite query to answer the question about which division the Toronto Raptors belong in:
```
SELECT division FROM table_name_87 WHERE team = "Toronto Raptors";
``` | 21,895 | [
{
"from": "human",
"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_87 (division VARCHAR, team VARCHAR)\n\n Question: Which division do the Toronto Raptors belong in?\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_name_62 (city VARCHAR, home_arena VARCHAR)
Question: Which city includes the Target Center arena?
Here is the SQLite query to answer to the question: Which city in... | Here is the SQLite query to answer the question: Which city includes the Target Center arena?:
```
SELECT city FROM table_name_62 WHERE home_arena = "Target Center";
``` | 21,896 | [
{
"from": "human",
"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 (city VARCHAR, home_arena VARCHAR)\n\n Question: Which city includes the Target Center arena?\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_80 (conference VARCHAR, city VARCHAR)
Question: Which conference is in Portland, Oregon?
Here is the SQLite query to answer to the question: Which conference ... | Here is the SQLite query to answer the question of which conference is in Portland, Oregon:
```sql
SELECT conference FROM table_name_80 WHERE city = "Portland, Oregon";
``` | 21,897 | [
{
"from": "human",
"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_80 (conference VARCHAR, city VARCHAR)\n\n Question: Which conference is in Portland, Oregon?\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_name_55 (city VARCHAR, home_arena VARCHAR)
Question: Which city includes Barclays Center?
Here is the SQLite query to answer to the question: Which city includes B... | Here is the SQLite query to answer the question:
```
SELECT city FROM table_name_55 WHERE home_arena = "Barclays Center";
``` | 21,898 | [
{
"from": "human",
"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_55 (city VARCHAR, home_arena VARCHAR)\n\n Question: Which city includes Barclays Center?\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_79 (wysiwyg_editor VARCHAR, image_attachment VARCHAR, user_selectable_themes VARCHAR, unread_message_tracking VARCHAR)
Question: Which WYSIWYG Editor has a Use... | Here is the SQLite query to answer the question:
```
SELECT wysiwyg_editor FROM table_name_79 WHERE user_selectable_themes = "yes" AND unread_message_tracking = "session" AND image_attachment = "plugin"
``` | 21,899 | [
{
"from": "human",
"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 (wysiwyg_editor VARCHAR, image_attachment VARCHAR, user_selectable_themes VARCHAR, unread_message_tracking VARCHAR)\n\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.