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_53 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
Question: What was the attendance at the post-week 7 game against the San Diego Chargers?
Here is the ... | Here is the SQLite query to answer the question about the attendance at the post-week 7 game against the San Diego Chargers:
```
SELECT attendance FROM table_name_53 WHERE week > 7 AND opponent = "san diego chargers";
``` | 16,300 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)\n\n Question: What was the attendance at the post-week 7 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_68 (competition VARCHAR, date VARCHAR)
Question: What is the Competition on July 7?
Here is the SQLite query to answer to the question: What is the Competitio... | Here is the SQLite query to answer the question about the competition on July 7:
```
SELECT competition FROM table_name_68 WHERE date = "July 7";
``` | 16,301 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (competition VARCHAR, date VARCHAR)\n\n Question: What is the Competition on July 7?\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_12 (location VARCHAR, round VARCHAR, score VARCHAR)
Question: At what Location in Round 3 is the Score 1-1?
Here is the SQLite query to answer to the question... | Here is the SQLite query you can use to find the location in Round 3 where the score is 1-1:
```
SELECT location FROM table_name_12 WHERE round = "round 3" AND score = "1-1";
``` | 16,302 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (location VARCHAR, round VARCHAR, score VARCHAR)\n\n Question: At what Location in Round 3 is the Score 1-1?\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_47 (score VARCHAR, date VARCHAR)
Question: What is the Score of the competition on October 25?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question regarding the score of the competition on October 25:
```
SELECT score FROM table_name_47 WHERE date = "october 25";
``` | 16,303 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR)\n\n Question: What is the Score of the competition on October 25?\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_11 (election VARCHAR)
Question: What is 2nd Party, when Election is "1885"?
Here is the SQLite query to answer to the question: What is 2nd Party, when Electi... | It looks like the query you've provided does not correctly address the requirement to retrieve the "2nd Party" for the election of "1885." The original query simply selects the number 2 as a placeholder rather than the actual data related to the second party.
To properly retrieve the second party for the election of "... | 16,304 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (election VARCHAR)\n\n Question: What is 2nd Party, when Election is \"1885\"?\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_70 (area__msr_ INTEGER, rank VARCHAR, area__sqdeg_ VARCHAR, family VARCHAR)
Question: What is the largest Area (msr) that has an Area less than 291.045, is par... | Your query is mostly correct, but SQL is case-sensitive for string comparisons unless configured otherwise. The family value designation of "Per" should be in the same case as it appears in the database. Assuming the correct case is "per", the query should work as intended. Additionally, you should ensure that the colu... | 16,305 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (area__msr_ INTEGER, rank VARCHAR, area__sqdeg_ VARCHAR, family VARCHAR)\n\n Question: What is the largest Area (msr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (area__sqdeg_ INTEGER, area__msr_ VARCHAR, right_ascension__hm_ VARCHAR)
Question: What is the total sum of Areas (sq.deg) that have an Area (msr) of 43.059... | Here is the SQLite query to answer the question regarding the total sum of Areas (sq.deg) that have an Area (msr) of 43.059 and a Right ascension (hm) larger than 747.73:
```
SELECT SUM(area__sqdeg_) FROM table_name_47 WHERE area__msr_ = '43.059' AND right_ascension__hm_ > '747.73'
```
Note: The values for `area__ms... | 16,306 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (area__sqdeg_ INTEGER, area__msr_ VARCHAR, right_ascension__hm_ VARCHAR)\n\n Question: What is the total sum of Area... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (time VARCHAR, competition VARCHAR)
Question: What's the total time for the summer universiade competition?
Here is the SQLite query to answer to the quest... | It looks like you're trying to calculate the total time for the "summer universiade" competition, but the query you've provided counts the number of entries instead of summing the time. Additionally, since the "time" column is defined as VARCHAR, you'll need to ensure that the time values can be summed properly.
If th... | 16,307 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (time VARCHAR, competition VARCHAR)\n\n Question: What's the total time for the summer universiade competition?\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_31 (time INTEGER, year VARCHAR, event VARCHAR)
Question: What's the highest time for the 1995 200 metres event?
Here is the SQLite query to answer to the ques... | Here's the SQLite query to find the highest time for the 1995 200 metres event:
```
SELECT MAX(time) FROM table_name_31 WHERE year = '1995' AND event = '200 metres';
``` | 16,308 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (time INTEGER, year VARCHAR, event VARCHAR)\n\n Question: What's the highest time for the 1995 200 metres event?\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_96 (position VARCHAR, time VARCHAR, venue VARCHAR)
Question: What position has a time over 38.61 at the gothenburg venue?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question:
```
SELECT position FROM table_name_96 WHERE time > 38.61 AND venue = "gothenburg";
``` | 16,309 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (position VARCHAR, time VARCHAR, venue VARCHAR)\n\n Question: What position has a time over 38.61 at the gothenburg ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (position VARCHAR, venue VARCHAR, time VARCHAR)
Question: What position has a time less than 40.2 at the rome venue?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question: What position has a time less than 40.2 at the rome venue?:
```
SELECT position FROM table_name_69 WHERE venue = "rome" AND time < 40.2
``` | 16,310 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (position VARCHAR, venue VARCHAR, time VARCHAR)\n\n Question: What position has a time less than 40.2 at the rome ve... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (bronze INTEGER, total VARCHAR, silver VARCHAR)
Question: What is the most Bronze medals won among the participants that won less than 22 medals overall and ... | Here is the corrected SQLite query to answer the question based on the given schema:
```sql
SELECT MAX(bronze)
FROM table_name_5
WHERE CAST(total AS INTEGER) < 22 AND CAST(silver AS INTEGER) < 5;
```
This query casts the `total` and `silver` columns to integers for the comparison to accurately reflect the constrai... | 16,311 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (bronze INTEGER, total VARCHAR, silver VARCHAR)\n\n Question: What is the most Bronze medals won among the participan... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (silver VARCHAR, gold VARCHAR, bronze VARCHAR)
Question: How many silver medals were won by the participant(s) that had more than 12 gold medals and 11 bron... | There appears to be a slight error in the query you provided. The conditions in the WHERE clause should correctly involve counting the medals rather than comparing them as strings. Additionally, the aggregate function `COUNT` should be used to get the total number of silver medals.
Here is the corrected query:
```sq... | 16,312 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (silver VARCHAR, gold VARCHAR, bronze VARCHAR)\n\n Question: How many silver medals were won by the participant(s) t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)
Question: What is the average number of gold medals won among participants that won less than ... | Sure! Here's the corrected SQLite query formatted properly:
```sql
SELECT AVG(gold)
FROM table_name_99
WHERE CAST(silver AS INTEGER) < 13
AND CAST(bronze AS INTEGER) < 8
AND CAST(total AS INTEGER) > 18;
```
In this query, I've added `CAST(... AS INTEGER)` to convert the VARCHAR fields (silver, bronze, total) to ... | 16,313 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)\n\n Question: What is the average number of gold medal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (number_range VARCHAR, class VARCHAR)
Question: What is the number range for the T 3 class?
Here is the SQLite query to answer to the question: What is the... | Your SQLite query looks good, but please note that the class "T 3" is typically case-sensitive in SQL. If you want to ensure that it works regardless of the case, you might want to use a case-insensitive comparison.
Here's the adjusted query to ensure it matches "T 3" regardless of case:
```
SELECT number_range FROM... | 16,314 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (number_range VARCHAR, class VARCHAR)\n\n Question: What is the number range for the T 3 class?\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_19 (Id VARCHAR)
Question: What 2009 has 52-75 as the 2010?
Here is the SQLite query to answer to the question: What 2009 has 52-75 as the 2010?:
```
SELECT 20... | Your SQLite query needs some adjustments to align with proper SQL syntax and understanding of the schema provided. Given that the schema only specifies a table with a single column `Id`, it seems there may be a misunderstanding about the data in the table and how to structure the query.
If the requirement is to select... | 16,315 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (Id VARCHAR)\n\n Question: What 2009 has 52-75 as the 2010?\n\nHere is the SQLite query to answer to the question: W... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (Id VARCHAR)
Question: What 2008 has 2013 for the year 2013?
Here is the SQLite query to answer to the question: What 2008 has 2013 for the year 2013?:
```... | It looks like there's some confusion in the phrasing of the question and the structure of the SQL query. However, I'll help you with a corrected version based on your original query structure.
Assuming you want to select rows from `table_name_37` where some condition involving the years 2008 and 2013 is met, here's a ... | 16,316 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (Id VARCHAR)\n\n Question: What 2008 has 2013 for the year 2013?\n\nHere is the SQLite query to answer to the questi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (Id VARCHAR)
Question: What 2009 has 39th as the 2011?
Here is the SQLite query to answer to the question: What 2009 has 39th as the 2011?:
```
SELECT 2009... | The query you've written appears to be aiming to retrieve a value from the column `2009` where the column `2011` is equal to "39th". However, there seems to be a misunderstanding because the schema indicates that there is only one column (`Id`) in the `table_name_45` table.
Assuming that `Id` represents some kind of ... | 16,317 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (Id VARCHAR)\n\n Question: What 2009 has 39th as the 2011?\n\nHere is the SQLite query to answer to the 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_1 (no_specimens INTEGER, abbr VARCHAR)
Question: How many specimens does the SANT institution have?
Here is the SQLite query to answer to the question: How ma... | Here is the SQLite query to find out how many specimens the SANT institution has:
```
SELECT SUM(no_specimens) FROM table_name_1 WHERE abbr = "sant";
``` | 16,318 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (no_specimens INTEGER, abbr VARCHAR)\n\n Question: How many specimens does the SANT institution have?\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_37 (city VARCHAR, name VARCHAR)
Question: In which city is the Universidad de Santiago de Compostela located?
Here is the SQLite query to answer to the questi... | Your SQLite query to find the city where the Universidad de Santiago de Compostela is located looks correct. Here it is wrapped in code formatting:
```
SELECT city FROM table_name_37 WHERE name = "universidad de santiago de compostela";
``` | 16,319 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (city VARCHAR, name VARCHAR)\n\n Question: In which city is the Universidad de Santiago de Compostela located?\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_29 (city VARCHAR, abbr VARCHAR)
Question: In which city is MUB located?
Here is the SQLite query to answer to the question: In which city is MUB located?:
```... | Here is the SQLite query to answer the question: In which city is MUB located?:
```sql
SELECT city FROM table_name_29 WHERE abbr = "mub";
``` | 16,320 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (city VARCHAR, abbr VARCHAR)\n\n Question: In which city is MUB located?\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (election VARCHAR)
Question: Which 1st Party has an Election of 1893 by-election?
Here is the SQLite query to answer to the question: Which 1st Party has a... | Your SQLite query appears to be on the right track for retrieving a party associated with the specified election. However, the destination field is labeled as `st_party`, which doesn’t seem to match your schema since your table only has an `election` column. It would be useful to clarify what you mean by "1st Party" in... | 16,321 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (election VARCHAR)\n\n Question: Which 1st Party has an Election of 1893 by-election?\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_23 (election VARCHAR)
Question: Which 1st Member has an Election of 1895?
Here is the SQLite query to answer to the question: Which 1st Member has an Election... | Your SQLite query looks correctly structured to answer the question regarding which 1st Member has an Election of 1895. However, please note that your query is just returning `1` if there is a matching row. If you want to retrieve specific data related to the 1st Member, you might want to include more fields or context... | 16,322 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (election VARCHAR)\n\n Question: Which 1st Member has an Election of 1895?\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_40 (Id VARCHAR)
Question: Which 1999 has 2000 as the year-end championship?
Here is the SQLite query to answer to the question: Which 1999 has 2000 as the yea... | The provided query seems to have some issues, as it does not align with typical SQL syntax and does not properly reference the columns or conditions necessary to derive meaningful results.
Given the schema you provided (`CREATE TABLE table_name_40 (Id VARCHAR)`), it appears you are dealing with a table that only cont... | 16,323 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (Id VARCHAR)\n\n Question: Which 1999 has 2000 as the year-end championship?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (Id VARCHAR)
Question: Which 1997 has sf as the 2002?
Here is the SQLite query to answer to the question: Which 1997 has sf as the 2002?:
```
SELECT 1997 F... | It seems that the question is asking to select the value from the year 1997 based on a condition related to the year 2002, but there is an inconsistency in the schema provided (we only have one column `Id`). To align with the question and assuming we interpret `1997` and `2002` as some potential identifiers or specific... | 16,324 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (Id VARCHAR)\n\n Question: Which 1997 has sf as the 2002?\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_12 (tournament VARCHAR)
Question: What tournament has 1r as the 2011?
Here is the SQLite query to answer to the question: What tournament has 1r as the 2011?:... | The provided SQLite query does not correctly address the requirement to find the tournament associated with "1r" for the year 2011, as the condition used is not well-formed. Based on your schema, assuming "1r" represents a condition related to tournaments in a specific context (like round or event type) and understandi... | 16,325 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (tournament VARCHAR)\n\n Question: What tournament has 1r as the 2011?\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_40 (Id VARCHAR)
Question: What 2009 has 3r as the 1999, and w as 2002?
Here is the SQLite query to answer to the question: What 2009 has 3r as the 1999, and w... | Here is the corrected SQLite query to answer the question based on the given schema:
```sql
SELECT Id FROM table_name_40 WHERE Id = '2009' AND
(SELECT Id FROM table_name_40 WHERE Id = '1999') = '3r' AND
(SELECT Id FROM table_name_40 WHERE Id = '2002') = 'w';
```
Note: The original query seems to be mistaken a... | 16,326 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (Id VARCHAR)\n\n Question: What 2009 has 3r as the 1999, and w as 2002?\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_54 (mass VARCHAR, designation VARCHAR)
Question: What is Mass, when Designation is Prognoz 2?
Here is the SQLite query to answer to the question: What is Mass... | Here is the SQLite query to answer the question "What is Mass, when Designation is Prognoz 2?":
```
SELECT mass FROM table_name_54 WHERE designation = "Prognoz 2";
``` | 16,327 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (mass VARCHAR, designation VARCHAR)\n\n Question: What is Mass, when Designation is Prognoz 2?\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_29 (mass VARCHAR, launch_date_time___gmt__ VARCHAR)
Question: What is Mass, when Launch Date/Time ( GMT ) is 25 November 1976, 03:59?
Here is the SQLite query... | Here is the SQLite query to answer the question:
```
SELECT mass FROM table_name_29 WHERE launch_date_time___gmt__ = "25 November 1976, 03:59"
``` | 16,328 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (mass VARCHAR, launch_date_time___gmt__ VARCHAR)\n\n Question: What is Mass, when Launch Date/Time ( GMT ) is 25 Nov... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (apogee VARCHAR, inclination VARCHAR, launch_date_time___gmt__ VARCHAR)
Question: What is Apogee, when Inclination is 65°, and when Launch Date/Time is ( GM... | Here is the SQLite query to answer the question regarding the `Apogee` based on the specified `Inclination` and `Launch Date/Time`:
```
SELECT apogee FROM table_name_48 WHERE inclination = "65°" AND launch_date_time___gmt__ = "15 February 1973, 01:11"
``` | 16,329 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (apogee VARCHAR, inclination VARCHAR, launch_date_time___gmt__ VARCHAR)\n\n Question: What is Apogee, when Inclinati... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (apogee VARCHAR, designation VARCHAR)
Question: What is Apogee, when Designation is Prognoz 6?
Here is the SQLite query to answer to the question: What is A... | Here is the SQLite query to answer the question:
```sql
SELECT apogee FROM table_name_9 WHERE designation = "Prognoz 6";
``` | 16,330 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (apogee VARCHAR, designation VARCHAR)\n\n Question: What is Apogee, when Designation is Prognoz 6?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (designation VARCHAR, launch_date_time___gmt__ VARCHAR)
Question: What is Designation, when Launch Date/Time ( GMT ) is 29 June 1972, 03:47?
Here is the SQ... | Here is the SQLite query formatted as requested:
```
SELECT designation FROM table_name_73 WHERE launch_date_time___gmt__ = "29 June 1972, 03:47"
``` | 16,331 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (designation VARCHAR, launch_date_time___gmt__ VARCHAR)\n\n Question: What is Designation, when Launch Date/Time ( G... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (elimination VARCHAR, wrestler VARCHAR)
Question: What is the Elimination for Candice?
Here is the SQLite query to answer to the question: What is the Elim... | Here is the SQLite query to answer the question: What is the Elimination for Candice?:
```
SELECT elimination FROM table_name_96 WHERE wrestler = "Candice";
``` | 16,332 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (elimination VARCHAR, wrestler VARCHAR)\n\n Question: What is the Elimination for Candice?\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_6 (wrestler VARCHAR, elimination VARCHAR)
Question: What Wrestler has an Elimination of 7?
Here is the SQLite query to answer to the question: What Wrestler h... | Here is the SQLite query to answer the question "What Wrestler has an Elimination of 7?":
```
SELECT wrestler FROM table_name_6 WHERE elimination = "7";
``` | 16,333 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (wrestler VARCHAR, elimination VARCHAR)\n\n Question: What Wrestler has an Elimination of 7?\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_86 (time VARCHAR, wrestler VARCHAR)
Question: What is Natalya's Time?
Here is the SQLite query to answer to the question: What is Natalya's Time?:
```
SELECT ... | ```sql
SELECT time FROM table_name_86 WHERE wrestler = "natalya";
``` | 16,334 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (time VARCHAR, wrestler VARCHAR)\n\n Question: What is Natalya's Time?\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_88 (elimination VARCHAR, wrestler VARCHAR)
Question: What is Maria's Elimination Move?
Here is the SQLite query to answer to the question: What is Maria's Eli... | Here is the SQLite query to answer the question: What is Maria's Elimination Move?:
```
SELECT elimination AS Move FROM table_name_88 WHERE wrestler = "Maria";
``` | 16,335 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (elimination VARCHAR, wrestler VARCHAR)\n\n Question: What is Maria's Elimination Move?\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_42 (place VARCHAR, score VARCHAR)
Question: In which area was there a score of 68?
Here is the SQLite query to answer to the question: In which area was there... | Your query is almost correct, but since the `score` column is defined as `VARCHAR`, you should compare it to a string rather than an integer. Here is the corrected SQLite query:
```
SELECT place FROM table_name_42 WHERE score = '68'
``` | 16,336 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (place VARCHAR, score VARCHAR)\n\n Question: In which area was there a score of 68?\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_49 (player VARCHAR, place VARCHAR, country VARCHAR)
Question: Which player had a position of t1 and played in the united states?
Here is the SQLite query to a... | Here is the SQLite query to answer the question:
```
SELECT player FROM table_name_49 WHERE place = "t1" AND country = "united states";
``` | 16,337 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR)\n\n Question: Which player had a position of t1 and played in the u... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (score INTEGER, player VARCHAR)
Question: What person had an opponent of linda wessberg and scored an average score?
Here is the SQLite query to answer to t... | To find the person who had an opponent of Linda Wessberg and scored an average score, we need to first clarify that the query should involve finding the scores for the players who played against Linda Wessberg. Assuming that the `player` column represents a player and not directly the opponent, you would typically need... | 16,338 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (score INTEGER, player VARCHAR)\n\n Question: What person had an opponent of linda wessberg and scored an average sco... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (total INTEGER, nationality VARCHAR, latest_win VARCHAR)
Question: What was the lowest total for Italy when the latest win is 1950?
Here is the SQLite quer... | Here is the SQLite query to answer the question regarding the lowest total for Italy when the latest win is 1950:
```sql
SELECT MIN(total) FROM table_name_43 WHERE nationality = "Italy" AND latest_win = "1950";
``` | 16,339 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (total INTEGER, nationality VARCHAR, latest_win VARCHAR)\n\n Question: What was the lowest total for Italy when the ... | |
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, district VARCHAR)
Question: What were the results for the incumbent from Iowa 2 district?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the results for the incumbent from the Iowa 2 district:
```sql
SELECT results FROM table_name_12 WHERE district = "Iowa 2";
``` | 16,340 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (results VARCHAR, district VARCHAR)\n\n Question: What were the results for the incumbent from Iowa 2 district?\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 (incumbent VARCHAR, results VARCHAR, first_elected VARCHAR)
Question: Who is the incumbent that has been in office since before 1996 and was again re-electe... | Your SQLite query looks almost correct, but there is a small issue with the comparison for the `first_elected` column. Since `first_elected` is a varchar type, you need to ensure that you are comparing it properly in the context of the date format stored in your database. If the `first_elected` values contain the full ... | 16,341 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (incumbent VARCHAR, results VARCHAR, first_elected VARCHAR)\n\n Question: Who is the incumbent that has been in offi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (party VARCHAR, first_elected VARCHAR)
Question: From which party is the incumbent who was first elected to office in 1990?
Here is the SQLite query to answ... | Here is the corrected SQLite query to answer the question regarding the party of the incumbent elected in 1990:
```sql
SELECT party FROM table_name_8 WHERE first_elected = '1990';
```
Note: It's important to ensure that the year is treated as a string if it's stored as VARCHAR in the database. | 16,342 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (party VARCHAR, first_elected VARCHAR)\n\n Question: From which party is the incumbent who was first elected to offic... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (first_elected VARCHAR, results VARCHAR, party VARCHAR)
Question: In what year did the Democratic incumbent that was re-elected first take office?
Here is ... | Your SQLite query is correctly structured to find the year when the Democratic incumbent that was re-elected first took office. Here is the query wrapped in the appropriate markdown:
```
SELECT first_elected FROM table_name_52 WHERE results = "re-elected" AND party = "democratic";
```
If you want to ensure that you o... | 16,343 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (first_elected VARCHAR, results VARCHAR, party VARCHAR)\n\n Question: In what year did the Democratic incumbent that... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (year_built INTEGER, sub_parish__sogn_ VARCHAR)
Question: what is the year built of kyrkjebø?
Here is the SQLite query to answer to the question: what is ... | Here is the SQLite query to answer the question regarding the year built of kyrkjebø:
```
SELECT year_built FROM table_name_20 WHERE sub_parish__sogn_ = "kyrkjebø"
``` | 16,344 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (year_built INTEGER, sub_parish__sogn_ VARCHAR)\n\n Question: what is the year built of kyrkjebø?\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_41 (sub_parish__sogn_ VARCHAR, year_built VARCHAR, location_of_the_church VARCHAR)
Question: WHAT IS THE SUB-PARISH WITH A YEAR AFTER 1916, IN ortnevik?
Here... | Here is the SQLite query to answer the question:
```
SELECT sub_parish__sogn_ FROM table_name_41 WHERE year_built > '1916' AND location_of_the_church = 'ortnevik'
``` | 16,345 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (sub_parish__sogn_ VARCHAR, year_built VARCHAR, location_of_the_church VARCHAR)\n\n Question: WHAT IS THE SUB-PARISH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (to_par VARCHAR, year_s__won VARCHAR)
Question: What is the To par of the Player who won in 1936?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question about the To par of the Player who won in 1936:
```
SELECT to_par FROM table_name_45 WHERE year_s__won = "1936"
``` | 16,346 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (to_par VARCHAR, year_s__won VARCHAR)\n\n Question: What is the To par of the Player who won in 1936?\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_88 (player VARCHAR, year_s__won VARCHAR)
Question: What is the Player who won in 1931?
Here is the SQLite query to answer to the question: What is the Player ... | Here is the SQLite query to answer the question about the player who won in 1931:
```
SELECT player FROM table_name_88 WHERE year_s__won = "1931"
``` | 16,347 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (player VARCHAR, year_s__won VARCHAR)\n\n Question: What is the Player who won in 1931?\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_44 (total INTEGER, year_s__won VARCHAR)
Question: What is the Total for the Player who won in 1922, 1932?
Here is the SQLite query to answer to the question: ... | The provided SQLite query does not correctly address the question of what the total is for the player who won in both 1922 and 1932. Instead, you need to use a `WHERE` clause with an `IN` statement or combine `OR` conditions to specify both years correctly.
However, if you're looking for a player who has won in both y... | 16,348 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (total INTEGER, year_s__won VARCHAR)\n\n Question: What is the Total for the Player who won in 1922, 1932?\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 (total VARCHAR, year_s__won VARCHAR)
Question: What is the Total for the Player who won in 1936?
Here is the SQLite query to answer to the question: What i... | The query you provided aims to count how many entries exist for the year 1936 but does not directly answer the question about the "Total" for the player who won in that year. To retrieve the "Total" for the player who won in 1936, you would instead select the "total" column where the year matches 1936.
Here is the cor... | 16,349 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (total VARCHAR, year_s__won VARCHAR)\n\n Question: What is the Total for the Player who won in 1936?\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_91 (finish VARCHAR, to_par VARCHAR, total VARCHAR)
Question: What is the Finish of the Player with a To par of 23 of less and Total of 294?
Here is the SQLite... | Here is the SQLite query to answer the question about the Finish of the Player with a To par of 23 or less and Total of 294:
```
SELECT finish FROM table_name_91 WHERE to_par <= 23 AND total = 294
``` | 16,350 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (finish VARCHAR, to_par VARCHAR, total VARCHAR)\n\n Question: What is the Finish of the Player with a To par of 23 o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (season VARCHAR, level VARCHAR, points VARCHAR)
Question: What season has a Level of 2nd, 29 points?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about what season has a Level of 2nd and 29 points:
```
SELECT season FROM table_name_84 WHERE level = "2nd" AND points = "29";
``` | 16,351 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (season VARCHAR, level VARCHAR, points VARCHAR)\n\n Question: What season has a Level of 2nd, 29 points?\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_98 (points INTEGER, goals VARCHAR)
Question: What is the number of points when goals were 29–30?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question regarding the number of points when goals were 29–30:
```
SELECT SUM(points) FROM table_name_98 WHERE goals = '29–30';
``` | 16,352 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (points INTEGER, goals VARCHAR)\n\n Question: What is the number of points when goals were 29–30?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (level VARCHAR, points VARCHAR, goals VARCHAR)
Question: What is the level when points are larger than 25, and goals are 64–31?
Here is the SQLite query to... | Your query is almost correct, but there is a slight issue with how the range for goals is represented. If "64–31" means you want goals between 31 and 64 (inclusive), you should use a comparison range instead of an equality condition. Here’s how you can revise your SQL query:
```sql
SELECT level
FROM table_name_43
WH... | 16,353 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (level VARCHAR, points VARCHAR, goals VARCHAR)\n\n Question: What is the level when points are larger than 25, and g... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (engine VARCHAR)
Question: Engine 2.5 20v d has what engine code?
Here is the SQLite query to answer to the question: Engine 2.5 20v d has what engine code... | Here is the SQLite query to answer the question regarding the engine code for "Engine 2.5 20v d":
```
SELECT engine AS code FROM table_name_46 WHERE engine = "2.5 20v d"
``` | 16,354 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_46 (engine VARCHAR)\n\n Question: Engine 2.5 20v d has what engine code?\n\nHere is the SQLite query to answer to the q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (cyl VARCHAR, engine VARCHAR)
Question: Engine 2.3 16v has how many cylinders?
Here is the SQLite query to answer to the question: Engine 2.3 16v has how ma... | Here is the SQLite query to answer the question: Engine 2.3 16v has how many cylinders?:
```
SELECT cyl FROM table_name_1 WHERE engine = "2.3 16v";
``` | 16,355 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (cyl VARCHAR, engine VARCHAR)\n\n Question: Engine 2.3 16v has how many cylinders?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (record VARCHAR, opponent VARCHAR)
Question: Which Record has an Opponent of milwaukee bucks?
Here is the SQLite query to answer to the question: Which Rec... | Here is the SQLite query to answer the question: Which Record has an Opponent of milwaukee bucks?:
```
SELECT record FROM table_name_93 WHERE opponent = "milwaukee bucks"
``` | 16,356 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (record VARCHAR, opponent VARCHAR)\n\n Question: Which Record has an Opponent of milwaukee bucks?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (record VARCHAR, score VARCHAR, location_attendance VARCHAR, game VARCHAR)
Question: Which Record has a Location/Attendance of ford center, a Game larger th... | Here is the SQLite query to answer your question:
```
SELECT record FROM table_name_51 WHERE location_attendance = "ford center" AND game > 30 AND score = "87–79"
``` | 16,357 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (record VARCHAR, score VARCHAR, location_attendance VARCHAR, game VARCHAR)\n\n Question: Which Record has a Location... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (game INTEGER, opponent VARCHAR)
Question: Which Game has an Opponent of @ houston rockets?
Here is the SQLite query to answer to the question: Which Game ... | Here is the SQLite query to answer the question "Which Game has an Opponent of @ houston rockets?":
```
SELECT game FROM table_name_22 WHERE opponent = "@ houston rockets";
``` | 16,358 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (game INTEGER, opponent VARCHAR)\n\n Question: Which Game has an Opponent of @ houston rockets?\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_27 (streak VARCHAR, score VARCHAR)
Question: Which Streak has a Score of 98–109?
Here is the SQLite query to answer to the question: Which Streak has a Score ... | To find the Streak that has a Score in the range of 98 to 109, you should use a query that checks for values within that range. The `score` should be converted to an integer for comparison. Here's the correct SQLite query:
```sql
SELECT streak FROM table_name_27 WHERE score BETWEEN '98' AND '109';
``` | 16,359 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (streak VARCHAR, score VARCHAR)\n\n Question: Which Streak has a Score of 98–109?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR)
Question: Which Game has an Opponent of @ washington wizards?
Here is the SQLite query to answer to the question: Which Ga... | Here is the SQLite query to answer the question about which game has an opponent of "@ washington wizards":
```
SELECT game FROM table_name_13 WHERE opponent = "@ washington wizards";
``` | 16,360 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR)\n\n Question: Which Game has an Opponent of @ washington wizards?\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_9 (streak VARCHAR, record VARCHAR)
Question: Which Streak has a Record of 21–22?
Here is the SQLite query to answer to the question: Which Streak has a Record... | Here is the SQLite query to answer the question: Which Streak has a Record of 21–22?:
```
SELECT streak FROM table_name_9 WHERE record = "21–22";
``` | 16,361 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (streak VARCHAR, record VARCHAR)\n\n Question: Which Streak has a Record of 21–22?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
Question: What was the outcome on 11 October 2009, when his partner was Jordan Kerr?
Here is the SQLite qu... | Here is the SQLite query to answer the question:
```
SELECT outcome FROM table_name_72 WHERE partner = "Jordan Kerr" AND date = "11 October 2009"
``` | 16,362 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (outcome VARCHAR, partner VARCHAR, date VARCHAR)\n\n Question: What was the outcome on 11 October 2009, when his par... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (surface VARCHAR, partner VARCHAR, date VARCHAR)
Question: On what surface did he play with Stephen Huss on 31 October 2010?
Here is the SQLite query to an... | Here is the SQLite query to answer the question regarding the surface played with Stephen Huss on 31 October 2010:
```
SELECT surface FROM table_name_32 WHERE partner = "Stephen Huss" AND date = "31 October 2010"
``` | 16,363 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (surface VARCHAR, partner VARCHAR, date VARCHAR)\n\n Question: On what surface did he play with Stephen Huss on 31 O... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (tournament VARCHAR)
Question: What's was the 2008 during the Year End Ranking?
Here is the SQLite query to answer to the question: What's was the 2008 dur... | Here is the SQLite query to answer the question about the 2008 Year End Ranking:
```sql
SELECT tournament FROM table_name_44 WHERE tournament LIKE '%Year End Ranking%' AND tournament_year = 2008;
```
Please note that you may need to adjust the column names and conditions based on your actual schema if there's a speci... | 16,364 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (tournament VARCHAR)\n\n Question: What's was the 2008 during the Year End Ranking?\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_45 (Id VARCHAR)
Question: What's the 2010 when Q2 happened in 2011?
Here is the SQLite query to answer to the question: What's the 2010 when Q2 happened in 20... | It seems like there's a misunderstanding in the context of your request, specifically regarding the intended meaning of the question and the SQL query provided. If I interpret it correctly, \( Q2 \) typically refers to the second quarter of the year (April, May, June), and 2010 and 2011 are years.
Given the structure ... | 16,365 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (Id VARCHAR)\n\n Question: What's the 2010 when Q2 happened in 2011?\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_5 (Id VARCHAR)
Question: What's the 2008 when 1R happened in 2009?
Here is the SQLite query to answer to the question: What's the 2008 when 1R happened in 200... | Based on the provided schema and question, it seems there might be a misunderstanding in how the SQL query is structured, as well as the way the question is phrased. The schema defines a table with a single column `Id`, which suggests that we are looking for certain values within the `Id` column.
If we interpret the q... | 16,366 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (Id VARCHAR)\n\n Question: What's the 2008 when 1R happened in 2009?\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (olympics_so_far INTEGER, class VARCHAR, sailors VARCHAR, first_og VARCHAR)
Question: What is the lowest value for Olympics, when Sailors is greater than 1,... | Here is the SQLite query wrapped in code block as requested:
```
SELECT MIN(olympics_so_far)
FROM table_name_80
WHERE sailors > 1
AND first_og > 1948
AND class = "Flying Dutchman";
``` | 16,367 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (olympics_so_far INTEGER, class VARCHAR, sailors VARCHAR, first_og VARCHAR)\n\n Question: What is the lowest value f... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (country VARCHAR, date VARCHAR)
Question: What is the country associated with the date in 2003?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about the country associated with the date in 2003:
```
SELECT country FROM table_name_34 WHERE date = '2003';
``` | 16,368 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (country VARCHAR, date VARCHAR)\n\n Question: What is the country associated with the date in 2003?\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_90 (format VARCHAR, country VARCHAR, catalog VARCHAR)
Question: What is the format for UK catalog S 63795?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the format for the UK catalog S 63795:
```
SELECT format FROM table_name_90 WHERE country = "UK" AND catalog = "S 63795";
``` | 16,369 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (format VARCHAR, country VARCHAR, catalog VARCHAR)\n\n Question: What is the format for UK catalog S 63795?\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_4 (date VARCHAR, country VARCHAR, catalog VARCHAR)
Question: What is the date for US catalog CK 9942?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about the date for the US catalog CK 9942:
```
SELECT date FROM table_name_4 WHERE country = "us" AND catalog = "ck 9942";
``` | 16,370 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (date VARCHAR, country VARCHAR, catalog VARCHAR)\n\n Question: What is the date for US catalog CK 9942?\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_14 (label VARCHAR, catalog VARCHAR)
Question: What is the label for catalog EMB 31956?
Here is the SQLite query to answer to the question: What is the label f... | Here is the corrected SQLite query to answer the question about the label for catalog EMB 31956:
```sql
SELECT label FROM table_name_14 WHERE catalog = "EMB 31956";
``` | 16,371 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_14 (label VARCHAR, catalog VARCHAR)\n\n Question: What is the label for catalog EMB 31956?\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_48 (date VARCHAR, label VARCHAR)
Question: What is the date for CBS label?
Here is the SQLite query to answer to the question: What is the date for CBS label?... | Here is the SQLite query to answer the question about the date for the CBS label:
```sql
SELECT date FROM table_name_48 WHERE label = "CBS";
``` | 16,372 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (date VARCHAR, label VARCHAR)\n\n Question: What is the date for CBS label?\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_57 (name VARCHAR, constituency_number VARCHAR)
Question: Where is constituency number 16?
Here is the SQLite query to answer to the question: Where is constit... | Here is the SQLite query to answer the question: Where is constituency number 16?:
```
SELECT name FROM table_name_57 WHERE constituency_number = "16";
``` | 16,373 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (name VARCHAR, constituency_number VARCHAR)\n\n Question: Where is constituency number 16?\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_89 (elevator VARCHAR, elector VARCHAR, elevated VARCHAR, nationality VARCHAR)
Question: Which Elevator has Elevated of april 12, 1281, a Nationality of french,... | Here is the SQLite query to answer the specified question:
```
SELECT elevator FROM table_name_89 WHERE elevated = "april 12, 1281" AND nationality = "french" AND elector = "jean cholet"
``` | 16,374 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (elevator VARCHAR, elector VARCHAR, elevated VARCHAR, nationality VARCHAR)\n\n Question: Which Elevator has Elevated... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (elevated VARCHAR, elector VARCHAR)
Question: Which Elevated has an Elector of matteo orsini rosso?
Here is the SQLite query to answer to the question: Whi... | Here is the SQLite query to answer the question: Which Elevated has an Elector of matteo orsini rosso?:
```
SELECT elevated FROM table_name_23 WHERE elector = "matteo orsini rosso"
``` | 16,375 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (elevated VARCHAR, elector VARCHAR)\n\n Question: Which Elevated has an Elector of matteo orsini rosso?\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_1 (elector VARCHAR, title VARCHAR)
Question: Which Elector has a Title of s. cecilia?
Here is the SQLite query to answer to the question: Which Elector has a ... | It looks like there is a small mistake in the title string comparison in your SQL query. The title should match exactly as it is specified in the question ("s. cecilia"). Here's the corrected SQLite query:
```
SELECT elector FROM table_name_1 WHERE title = "s. cecilia"
```
This query will retrieve the elector(s) fro... | 16,376 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (elector VARCHAR, title VARCHAR)\n\n Question: Which Elector has a Title of s. cecilia?\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_29 (elevator VARCHAR, title VARCHAR)
Question: Which Elevator has a Title of bishop of palestrina?
Here is the SQLite query to answer to the question: Which E... | Here is the SQLite query to answer the question about which elevator has a title of "bishop of palestrina":
```
SELECT elevator FROM table_name_29 WHERE title = "bishop of palestrina";
``` | 16,377 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (elevator VARCHAR, title VARCHAR)\n\n Question: Which Elevator has a Title of bishop of palestrina?\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_68 (order VARCHAR, nationality VARCHAR)
Question: Which Order has a Nationality of ese milan?
Here is the SQLite query to answer to the question: Which Order ... | Here is the SQLite query wrapped in the requested format:
```
SELECT order FROM table_name_68 WHERE nationality = "ese milan";
``` | 16,378 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (order VARCHAR, nationality VARCHAR)\n\n Question: Which Order has a Nationality of ese milan?\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 (elector VARCHAR, order VARCHAR, nationality VARCHAR)
Question: Which Elector has an Order of cardinal-priest, and a Nationality of french?
Here is the SQL... | Here is the SQLite query to answer the question:
```
SELECT elector FROM table_name_74 WHERE order = "cardinal-priest" AND nationality = "french";
``` | 16,379 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (elector VARCHAR, order VARCHAR, nationality VARCHAR)\n\n Question: Which Elector has an Order of cardinal-priest, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (founded VARCHAR, city VARCHAR, capacity VARCHAR)
Question: How many foundeds have sousse as the city, with a capacity greater than 25,000?
Here is the SQL... | It looks like there are a couple of issues with the given SQLite query. Specifically, the capacity should be treated as an integer for comparison, and you should use the correct comparison for the capacity value. Here’s the corrected SQLite query:
```sql
SELECT COUNT(founded)
FROM table_name_25
WHERE city = "sousse"... | 16,380 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (founded VARCHAR, city VARCHAR, capacity VARCHAR)\n\n Question: How many foundeds have sousse as the city, with a ca... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (founded INTEGER, club VARCHAR)
Question: What is the lowest founded that has bizerte athletic f.c. as the club?
Here is the SQLite query to answer to the ... | Your SQLite query is correct for finding the lowest founded year for the club "bizerte athletic f.c.". Here it is wrapped in the requested code block:
```
SELECT MIN(founded) FROM table_name_42 WHERE club = "bizerte athletic f.c."
``` | 16,381 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (founded INTEGER, club VARCHAR)\n\n Question: What is the lowest founded that has bizerte athletic f.c. as the club?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (founded INTEGER, club VARCHAR, capacity VARCHAR)
Question: How many foundeds have stade tunisien as the club, with a capacity greater than 18,000?
Here is ... | To answer the question correctly, we need to ensure that the conditions for filtering are accurate, especially regarding the capacity being treated as an integer since it is stored as a string (VARCHAR). We should also use `COUNT` instead of `SUM` since we want to count the number of foundeds rather than summing their ... | 16,382 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (founded INTEGER, club VARCHAR, capacity VARCHAR)\n\n Question: How many foundeds have stade tunisien as the club, wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (capacity VARCHAR, founded VARCHAR)
Question: How much capacity has 1944 as the founded?
Here is the SQLite query to answer to the question: How much capac... | Your SQL query is almost correct, but there is a small mistake with the data type of the `founded` column, which is defined as `VARCHAR`. The value `1944` should be enclosed in quotes to be treated as a string. Here's the corrected version of your query:
```
SELECT COUNT(capacity) FROM table_name_84 WHERE founded = '1... | 16,383 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (capacity VARCHAR, founded VARCHAR)\n\n Question: How much capacity has 1944 as the founded?\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_58 (games VARCHAR, wins VARCHAR, losses VARCHAR, club VARCHAR)
Question: What is the total number of Games, when Losses is greater than 6, when Club is "Club S... | Here is the SQLite query to answer the question:
```
SELECT SUM(games) FROM table_name_58 WHERE losses > 6 AND club = "Club Sportif Sfaxien" AND wins < 3
```
Please note that I changed `COUNT(games)` to `SUM(games)` assuming that the `games` column contains numerical values and you want the total. If the `games` col... | 16,384 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (games VARCHAR, wins VARCHAR, losses VARCHAR, club VARCHAR)\n\n Question: What is the total number of Games, when Lo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (games INTEGER, wins VARCHAR, draws VARCHAR)
Question: What is the lowest Games, when Wins is less than 1, and when Draws is greater than 1?
Here is the SQ... | Your SQLite query is almost correct, but it needs a small adjustment because the columns `wins` and `draws` are defined as `VARCHAR`, and comparisons with numerical values should be done carefully. In SQLite, you can still compare strings to numbers, but it's usually better to convert them first.
Here's the adjusted q... | 16,385 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (games INTEGER, wins VARCHAR, draws VARCHAR)\n\n Question: What is the lowest Games, when Wins is less than 1, and w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (draws INTEGER, losses VARCHAR, wins VARCHAR)
Question: What is the average Draws, when Losses is greater than 9, and when Wins is greater than 9?
Here is ... | Here is the SQLite query to answer the question regarding the average Draws when Losses are greater than 9 and Wins are greater than 9:
```sql
SELECT AVG(draws) FROM table_name_70 WHERE CAST(losses AS INTEGER) > 9 AND CAST(wins AS INTEGER) > 9;
```
In this query, I included `CAST` to convert the `losses` and `wins` ... | 16,386 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (draws INTEGER, losses VARCHAR, wins VARCHAR)\n\n Question: What is the average Draws, when Losses is 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_36 (Id VARCHAR)
Question: What is the 2011 entry for the row with a 2007 entry of 558?
Here is the SQLite query to answer to the question: What is the 2011 en... | The SQLite query you provided needs some adjustments in structure and syntax. Assuming that you have a column for each year (2007, 2011, etc.) within the `table_name_36`, the correct query should explicitly select the 2011 column for the entry that has a 2007 value of 558. However, since the schema does not indicate mu... | 16,387 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_36 (Id VARCHAR)\n\n Question: What is the 2011 entry for the row with a 2007 entry of 558?\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_35 (Id VARCHAR)
Question: What is the 2010 entry for the row that has a 2009 entry of 270?
Here is the SQLite query to answer to the question: What is the 201... | The SQLite query you've shared has a couple of issues that need to be addressed. In SQLite, variable names need to be formatted correctly, especially when referencing years or specific values. Additionally, the columns that represent years are not specified in your table schema, which raises some confusion. However, as... | 16,388 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (Id VARCHAR)\n\n Question: What is the 2010 entry for the row that has a 2009 entry of 270?\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_94 (tournament VARCHAR)
Question: What is the 2009 entry for the row that has a 2007 entry of A and a tournament entry of US Open?
Here is the SQLite query to... | There seems to be a misunderstanding in the initial query because SQLite does not support querying columns by year directly unless those columns are explicitly defined with those year titles (e.g., 2007, 2008, 2009). Given the schema you provided, the table only has a single column for the tournament name.
Assuming yo... | 16,389 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (tournament VARCHAR)\n\n Question: What is the 2009 entry for the row that has a 2007 entry of A and a tournament en... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (Id VARCHAR)
Question: What is the 2008 entry for the row that as a 2011 entry of 1R?
Here is the SQLite query to answer to the question: What is the 2008 ... | It looks like there are some issues with the provided SQL query. The schema indicates that there is a table with a single column named `Id` of type `VARCHAR`, and there is no clear indication of how the years 2008 and 2011 relate to the data.
Assuming that `Id` contains some identifiers that correspond to the data fo... | 16,390 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (Id VARCHAR)\n\n Question: What is the 2008 entry for the row that as a 2011 entry of 1R?\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_99 (to_par VARCHAR, player VARCHAR)
Question: What is the To par for Lanny Wadkins?
Here is the SQLite query to answer to the question: What is the To par for... | Here is the SQLite query to answer the question regarding the To par for Lanny Wadkins:
```
SELECT to_par FROM table_name_99 WHERE player = "Lanny Wadkins";
``` | 16,391 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (to_par VARCHAR, player VARCHAR)\n\n Question: What is the To par for Lanny Wadkins?\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_86 (total INTEGER, country VARCHAR)
Question: What is Australia's highest total?
Here is the SQLite query to answer to the question: What is Australia's highe... | Here is the SQLite query to answer the question of Australia's highest total:
```
SELECT MAX(total) FROM table_name_86 WHERE country = "Australia"
``` | 16,392 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (total INTEGER, country VARCHAR)\n\n Question: What is Australia's highest total?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, player VARCHAR)
Question: What country has a to par larger than 5 and a player John Mahaffey?
Here is the SQLite query to... | Your SQLite query looks good, but it's important to ensure proper case sensitivity when comparing string values. By default, SQLite string comparisons are case-sensitive. The player's name should match the case in the database exactly. If you want to perform a case-insensitive comparison, you can use the `LOWER()` func... | 16,393 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, player VARCHAR)\n\n Question: What country has a to par larger than 5 and a player... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (total INTEGER, year_s__won VARCHAR)
Question: Which Total has a Year(s) won of 1991?
Here is the SQLite query to answer to the question: Which Total has a ... | Here is the SQLite query to answer the question: Which Total has a Year(s) won of 1991?:
```
SELECT total FROM table_name_9 WHERE year_s__won = "1991";
``` | 16,394 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (total INTEGER, year_s__won VARCHAR)\n\n Question: Which Total has a Year(s) won of 1991?\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_84 (year_s__won VARCHAR, to_par VARCHAR)
Question: Which Year(s) won with a To par of 12?
Here is the SQLite query to answer to the question: Which Year(s) wo... | Your query is almost correct, but since the `to_par` column is of type `VARCHAR`, you should compare it to the string `'12'` instead of the integer `12`. Here is the revised query wrapped in code formatting:
```
SELECT year_s__won FROM table_name_84 WHERE to_par = '12'
``` | 16,395 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (year_s__won VARCHAR, to_par VARCHAR)\n\n Question: Which Year(s) won with a To par of 12?\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_63 (to_par INTEGER, player VARCHAR, total VARCHAR)
Question: Which To par has a Player of jack nicklaus, and a Total smaller than 146?
Here is the SQLite quer... | Your query is close, but it seems there is a minor issue regarding the use of `total`. The `total` column is defined as a `VARCHAR`, which means you should convert it to an integer for comparison. Additionally, if you're looking for the `to_par` values, you want to select that column directly, not the average. Here's t... | 16,396 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (to_par INTEGER, player VARCHAR, total VARCHAR)\n\n Question: Which To par has a Player of jack nicklaus, and a Tota... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR)
Question: What average points for highers has 0 has p... | Here is the SQLite query that answers the question:
```
SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = '0' AND grade = 'Ng' AND points_for_foundation < 0;
``` | 16,397 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR)\n\n Question:... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (points_for_higher INTEGER, points_for_foundation INTEGER)
Question: What is the maximum points for higher when the points for foundation is less than 0?
H... | Here is the SQLite query to answer the question about the maximum points for higher when the points for foundation is less than 0:
```
SELECT MAX(points_for_higher) FROM table_name_66 WHERE points_for_foundation < 0
``` | 16,398 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (points_for_higher INTEGER, points_for_foundation INTEGER)\n\n Question: What is the maximum points for higher when ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (points_for_ordinary INTEGER, points_for_foundation VARCHAR)
Question: With 10 as the points for foundation, what is the maximum points for ordinary?
Here ... | Here is the corrected SQLite query to answer the question with 10 as the points for foundation:
```
SELECT MAX(points_for_ordinary) FROM table_name_97 WHERE points_for_foundation = '10'
``` | 16,399 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (points_for_ordinary INTEGER, points_for_foundation VARCHAR)\n\n Question: With 10 as the points for foundation, wha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.