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_30 (time VARCHAR, record VARCHAR)
Question: What is the Time of the match with a Record of 3-3?
Here is the SQLite query to answer to the question: What is th... | ```sql
SELECT time FROM table_name_30 WHERE record = "3-3";
``` | 17,500 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (time VARCHAR, record VARCHAR)\n\n Question: What is the Time of the match with a Record of 3-3?\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_53 (method VARCHAR, time VARCHAR)
Question: What is the Method of the match with a Time of 4:07?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question:
```
SELECT method FROM table_name_53 WHERE time = "4:07"
``` | 17,501 | [
{
"from": "human",
"value": " 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 (method VARCHAR, time VARCHAR)\n\n Question: What is the Method of the match with a Time of 4:07?\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_82 (published_as_serial VARCHAR, published_as_novel VARCHAR)
Question: Which Published as serial has a Published as novel of october 1917, mcclurg?
Here is th... | Here is the SQLite query to answer the question:
```
SELECT published_as_serial FROM table_name_82 WHERE published_as_novel = "october 1917, mcclurg"
``` | 17,502 | [
{
"from": "human",
"value": " 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 (published_as_serial VARCHAR, published_as_novel VARCHAR)\n\n Question: Which Published as serial has a Published as... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (fictional_narrator VARCHAR, published_as_serial VARCHAR)
Question: Which Fictional narrator has a Published as serial of february–july 1912, all-story?
He... | Here is the SQLite query to answer the question:
```
SELECT fictional_narrator FROM table_name_63 WHERE published_as_serial = "february–july 1912, all-story";
``` | 17,503 | [
{
"from": "human",
"value": " 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 (fictional_narrator VARCHAR, published_as_serial VARCHAR)\n\n Question: Which Fictional narrator has a Published as ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (year_in_novel VARCHAR, published_as_serial VARCHAR)
Question: Which year in novel has a Published as serial of november 1934-april 1935, blue book?
Here i... | Here is the SQLite query to answer the question regarding the year in the novel that has a published as serial of "november 1934-april 1935, blue book":
```
SELECT year_in_novel FROM table_name_18 WHERE published_as_serial = "november 1934-april 1935, blue book"
``` | 17,504 | [
{
"from": "human",
"value": " 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 (year_in_novel VARCHAR, published_as_serial VARCHAR)\n\n Question: Which year in novel has a Published as serial of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (goals VARCHAR, years_at_club VARCHAR, games VARCHAR, debut_year VARCHAR)
Question: How many Goals have Games smaller than 6, and a Debut year of 1939, and ... | Here is the corrected SQLite query for your question, ensuring that the condition for `years_at_club` properly checks for either 1939 or 1941:
```
SELECT COUNT(goals)
FROM table_name_48
WHERE games < 6
AND debut_year = '1939'
AND (years_at_club = '1939' OR years_at_club = '1941');
``` | 17,505 | [
{
"from": "human",
"value": " 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 (goals VARCHAR, years_at_club VARCHAR, games VARCHAR, debut_year VARCHAR)\n\n Question: How many Goals have Games sm... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (years_at_club VARCHAR, player VARCHAR, debut_year VARCHAR, games VARCHAR)
Question: Which Years at club have a Debut year of 1930, and Games larger than 7,... | Your provided SQLite query looks correct overall; however, there are some minor adjustments needed regarding data types for the `debut_year` and `games` fields since they might be stored as VARCHAR. To ensure correct comparisons, we may need to convert them to integers for comparison where necessary.
Here’s the modifi... | 17,506 | [
{
"from": "human",
"value": " 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 (years_at_club VARCHAR, player VARCHAR, debut_year VARCHAR, games VARCHAR)\n\n Question: Which Years at club have a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (player VARCHAR, games VARCHAR, years_at_club VARCHAR, debut_year VARCHAR, goals VARCHAR)
Question: WhichPlayer has a Debut year larger than 1930, and Goals ... | Here is the SQLite query to answer the question you provided:
```
SELECT player FROM table_name_6 WHERE debut_year > 1930 AND goals < 95 AND years_at_club = "1938" AND games = "6"
``` | 17,507 | [
{
"from": "human",
"value": " 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 (player VARCHAR, games VARCHAR, years_at_club VARCHAR, debut_year VARCHAR, goals VARCHAR)\n\n Question: WhichPlayer h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (cores VARCHAR, l3_cache VARCHAR, frequency VARCHAR)
Question: What is the cores when the L3 cache is 8 mb, and the frequency is 2.5 ghz?
Here is the SQLit... | Here is the SQLite query to answer the question:
```
SELECT cores FROM table_name_58 WHERE l3_cache = "8 mb" AND frequency = "2.5 ghz"
``` | 17,508 | [
{
"from": "human",
"value": " 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 (cores VARCHAR, l3_cache VARCHAR, frequency VARCHAR)\n\n Question: What is the cores when the L3 cache is 8 mb, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (model_number VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR)
Question: What is the model number with a release price of $303, and a sSpec numb... | Here is the SQLite query to find the model number with a release price of $303 and a sSpec number of sr14q(c0):
```
SELECT model_number FROM table_name_2 WHERE release_price___usd__ = "$303" AND sspec_number = "sr14q(c0)"
``` | 17,509 | [
{
"from": "human",
"value": " 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 (model_number VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR)\n\n Question: What is the model number wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (turbo VARCHAR, model_number VARCHAR, l2_cache VARCHAR, release_date VARCHAR)
Question: What turbo has a L2 cache of 4 × 256 kb, a release date of June 2013... | Here is the SQLite query to answer the question regarding the turbo with the specified criteria:
```
SELECT turbo FROM table_name_78 WHERE l2_cache = "4 × 256 kb" AND release_date = "June 2013" AND model_number = "core i7-4770s";
``` | 17,510 | [
{
"from": "human",
"value": " 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 (turbo VARCHAR, model_number VARCHAR, l2_cache VARCHAR, release_date VARCHAR)\n\n Question: What turbo has a L2 cach... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (socket VARCHAR, sspec_number VARCHAR)
Question: What is the socket when the sSpec number is standard power?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question about the socket when the sSpec number is standard power:
```
SELECT socket FROM table_name_96 WHERE sspec_number = "standard power"
``` | 17,511 | [
{
"from": "human",
"value": " 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 (socket VARCHAR, sspec_number VARCHAR)\n\n Question: What is the socket when the sSpec number is standard power?\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_74 (gpu_model VARCHAR, l3_cache VARCHAR)
Question: What is the GPU model when the L3 cache is standard power?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question:
```
SELECT gpu_model FROM table_name_74 WHERE l3_cache = "standard power"
``` | 17,512 | [
{
"from": "human",
"value": " 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 (gpu_model VARCHAR, l3_cache VARCHAR)\n\n Question: What is the GPU model when the L3 cache is standard power?\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_16 (cores VARCHAR, l2_cache VARCHAR)
Question: What cores has an L2 cache of low power?
Here is the SQLite query to answer to the question: What cores has an ... | Here is the SQLite query to answer the question about which cores have an L2 cache of low power, wrapped in the appropriate format:
```
SELECT cores FROM table_name_16 WHERE l2_cache = "low power";
``` | 17,513 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (cores VARCHAR, l2_cache VARCHAR)\n\n Question: What cores has an L2 cache of low power?\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_98 (position VARCHAR, event VARCHAR, year VARCHAR)
Question: What is the position for Discus in 2013?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about the position for Discus in 2013:
```
SELECT position FROM table_name_98 WHERE event = "Discus" AND year = "2013"
``` | 17,514 | [
{
"from": "human",
"value": " 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 (position VARCHAR, event VARCHAR, year VARCHAR)\n\n Question: What is the position for Discus in 2013?\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_16 (event VARCHAR, competition VARCHAR, year VARCHAR)
Question: What event was the competition World Junior Championships in 2010?
Here is the SQLite query to... | Here is the SQLite query to answer the question about the event related to the competition "World Junior Championships" in 2010:
```sql
SELECT event FROM table_name_16 WHERE competition = 'World Junior Championships' AND year = '2010';
``` | 17,515 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (event VARCHAR, competition VARCHAR, year VARCHAR)\n\n Question: What event was the competition World Junior Champio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (year VARCHAR, vehicle VARCHAR)
Question: Which year had a vehicle of Mitsubishi?
Here is the SQLite query to answer to the question: Which year had a vehi... | Your SQLite query to find out which year had a vehicle of Mitsubishi is correct. Here it is wrapped in the requested format:
```
SELECT year FROM table_name_88 WHERE vehicle = "Mitsubishi";
```
Make sure to use the correct case (e.g., "Mitsubishi") if the database is case-sensitive. | 17,516 | [
{
"from": "human",
"value": " 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 (year VARCHAR, vehicle VARCHAR)\n\n Question: Which year had a vehicle of Mitsubishi?\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_31 (class VARCHAR, vehicle VARCHAR, year VARCHAR)
Question: Which class had a vehicle of Nissan in 2007?
Here is the SQLite query to answer to the question: W... | Here's the corrected SQLite query to answer the question about which class had a vehicle of Nissan in 2007:
```sql
SELECT class FROM table_name_31 WHERE vehicle = "Nissan" AND year = "2007";
```
Please note that both "Nissan" and "2007" are used as string values in the condition, since the `vehicle` and `year` colum... | 17,517 | [
{
"from": "human",
"value": " 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 (class VARCHAR, vehicle VARCHAR, year VARCHAR)\n\n Question: Which class had a vehicle of Nissan in 2007?\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_87 (vehicle VARCHAR, position VARCHAR, stages_won VARCHAR, class VARCHAR, year VARCHAR)
Question: Which vehicle had a class of car in years after 2009 with 0 s... | Here is the SQLite query to answer the question regarding vehicles that meet the specified criteria:
```
SELECT vehicle FROM table_name_87 WHERE class = "car" AND year > 2009 AND stages_won = "0" AND position = "5"
``` | 17,518 | [
{
"from": "human",
"value": " 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 (vehicle VARCHAR, position VARCHAR, stages_won VARCHAR, class VARCHAR, year VARCHAR)\n\n Question: Which vehicle had... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (year VARCHAR, position VARCHAR)
Question: Which year had a position of 9?
Here is the SQLite query to answer to the question: Which year had a position of... | Here is the SQLite query to answer the question: Which year had a position of 9?:
```
SELECT year FROM table_name_45 WHERE position = "9";
``` | 17,519 | [
{
"from": "human",
"value": " 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 (year VARCHAR, position VARCHAR)\n\n Question: Which year had a position of 9?\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_89 (county VARCHAR, mascot VARCHAR)
Question: What county is the team with the mascot of the Tigers in?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about which county the team with the mascot of the Tigers is in:
```
SELECT county FROM table_name_89 WHERE mascot = "Tigers"
```
Note: The capitalization of "Tigers" in the query may depend on the exact data in the database—SQLite's string comparison is case-sensitive... | 17,520 | [
{
"from": "human",
"value": " 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 (county VARCHAR, mascot VARCHAR)\n\n Question: What county is the team with the mascot of the Tigers in?\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_2 (county VARCHAR, mascot VARCHAR)
Question: What county is the team with the mascot of the Tigers in?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the county of the team with the mascot of the Tigers:
```
SELECT county FROM table_name_2 WHERE mascot = "Tigers"
``` | 17,521 | [
{
"from": "human",
"value": " 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 (county VARCHAR, mascot VARCHAR)\n\n Question: What county is the team with the mascot of the Tigers in?\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_21 (enrollment INTEGER, school VARCHAR)
Question: What is the enrollment at Lanesville?
Here is the SQLite query to answer to the question: What is the enroll... | Your provided SQLite query is almost correct, but it uses the `AVG` function which calculates the average enrollment. If you are looking for the specific enrollment value or values at Lanesville, you should use `SELECT` without the averaging function. Here’s the corrected query:
```
SELECT enrollment FROM table_name_2... | 17,522 | [
{
"from": "human",
"value": " 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 (enrollment INTEGER, school VARCHAR)\n\n Question: What is the enrollment at Lanesville?\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_73 (ihsaa_class VARCHAR, county VARCHAR, mascot VARCHAR)
Question: What is the IHSAA class for the school in 10 Clark county with mascot of the Mustangs?
Here... | Here is the SQLite query to answer your question:
```
SELECT ihsaa_class FROM table_name_73 WHERE county = "10 Clark" AND mascot = "Mustangs"
``` | 17,523 | [
{
"from": "human",
"value": " 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 (ihsaa_class VARCHAR, county VARCHAR, mascot VARCHAR)\n\n Question: What is the IHSAA class for the school in 10 Cla... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (mascot VARCHAR, school VARCHAR)
Question: What is the mascot at Borden?
Here is the SQLite query to answer to the question: What is the mascot at Borden?:... | Here is the SQLite query to answer the question: What is the mascot at Borden?:
```
SELECT mascot FROM table_name_48 WHERE school = "Borden";
``` | 17,524 | [
{
"from": "human",
"value": " 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 (mascot VARCHAR, school VARCHAR)\n\n Question: What is the mascot at Borden?\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_50 (mascot VARCHAR, county VARCHAR, location VARCHAR)
Question: What is the mascot of the school in New Washington in 10 Clark county?
Here is the SQLite quer... | Your SQLite query looks correct for the given question and schema. Here it is wrapped in code format as you requested:
```
SELECT mascot FROM table_name_50 WHERE county = "10 clark" AND location = "new washington";
``` | 17,525 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (mascot VARCHAR, county VARCHAR, location VARCHAR)\n\n Question: What is the mascot of the school in New Washington ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (owner_s_ VARCHAR, description VARCHAR)
Question: Which Owner(s) has a Description of hunslet engine company 0-6-0st?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding which Owner(s) has a Description of "hunslet engine company 0-6-0st":
```
SELECT owner_s_ FROM table_name_18 WHERE description = "hunslet engine company 0-6-0st";
``` | 17,526 | [
{
"from": "human",
"value": " 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 (owner_s_ VARCHAR, description VARCHAR)\n\n Question: Which Owner(s) has a Description of hunslet engine company 0-6... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR)
Question: What is the number of electorates (2009) for Constituency number 182?
Here is... | Your SQLite query is correctly formulated to retrieve the number of electorates for the specified constituency number. Here is the code wrapped as you requested:
```
SELECT number_of_electorates__2009_ FROM table_name_13 WHERE constituency_number = "182";
``` | 17,527 | [
{
"from": "human",
"value": " 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 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR)\n\n Question: What is the number of electorates ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (constituency_number VARCHAR, name VARCHAR)
Question: What is the Constituency number for Pandhana?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question about the Constituency number for Pandhana:
```
SELECT constituency_number FROM table_name_62 WHERE name = "Pandhana";
``` | 17,528 | [
{
"from": "human",
"value": " 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 (constituency_number VARCHAR, name VARCHAR)\n\n Question: What is the Constituency number for Pandhana?\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_56 (name VARCHAR, number_of_electorates__2009_ INTEGER)
Question: Which Name has a Number of electorates (2009) greater than 188,799?
Here is the SQLite query... | It looks like there are a couple of errors in your provided query. Specifically, the `OFFSET` clause is used for pagination in SQL, and it seems you meant to check for electorates greater than 188,799 rather than 188, with the offset being irrelevant in this case.
Here's the corrected SQLite query to find names with a... | 17,529 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (name VARCHAR, number_of_electorates__2009_ INTEGER)\n\n Question: Which Name has a Number of electorates (2009) gre... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
Question: What is the Constituency number for Bikhangaon with a Reserved ... | Your SQLite query looks correct for fetching the constituency number for Bikhangaon with a reserved status of "st". Here it is wrapped in code formatting for clarity:
```
SELECT constituency_number FROM table_name_11 WHERE reserved_for___sc___st__none_ = "st" AND name = "bikhangaon";
``` | 17,530 | [
{
"from": "human",
"value": " 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 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)\n\n Question: What is the Constit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
Question: How many silver medals for germany with a bronze count more than 0?
Here is the SQLite query to ... | It looks like you're trying to count the number of silver medals for Germany where the bronze count is greater than 0. However, using `MAX(silver)` won't achieve that, since `MAX` returns the maximum value of the silver medals, not a count. Instead, we should use the `SUM` function to sum the silver medals. If there is... | 17,531 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (silver INTEGER, nation VARCHAR, bronze VARCHAR)\n\n Question: How many silver medals for germany with a bronze coun... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (gold INTEGER, total VARCHAR, silver VARCHAR)
Question: How many gold medals when the total is more than 1 and 18 silver?
Here is the SQLite query to answe... | The query you provided has an issue with the use of the `MIN` function. If you are looking for the count of gold medals under the specified conditions, you should use `COUNT` instead. Here is the corrected query:
```
SELECT COUNT(gold) FROM table_name_80 WHERE total > 1 AND silver = '18'
```
This query counts the num... | 17,532 | [
{
"from": "human",
"value": " 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 (gold INTEGER, total VARCHAR, silver VARCHAR)\n\n Question: How many gold medals when the total is more than 1 and 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR)
Question: How many bronze medals has a total less than 3 with a silver less than 1 and gold mo... | The query you provided has a logical inconsistency regarding the aggregation function used. Since you want to count the number of bronze medals that meet certain conditions, instead of using `AVG`, you should use `COUNT`. Here’s the corrected query:
```sql
SELECT COUNT(bronze) FROM table_name_66 WHERE total < 3 AND si... | 17,533 | [
{
"from": "human",
"value": " 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 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR)\n\n Question: How many bronze medals has a total less ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (venue VARCHAR, date VARCHAR)
Question: what is the venue on october 28, 2008?
Here is the SQLite query to answer to the question: what is the venue on oct... | Here is the SQLite query to answer the question about the venue on October 28, 2008:
```
SELECT venue FROM table_name_43 WHERE date = "october 28, 2008"
``` | 17,534 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, date VARCHAR)\n\n Question: what is the venue on october 28, 2008?\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_43 (result VARCHAR, date VARCHAR)
Question: what is the result on september 10, 2008?
Here is the SQLite query to answer to the question: what is the result o... | Here is the SQLite query to answer the question about the result on September 10, 2008:
```
SELECT result FROM table_name_43 WHERE date = "september 10, 2008";
``` | 17,535 | [
{
"from": "human",
"value": " 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 (result VARCHAR, date VARCHAR)\n\n Question: what is the result on september 10, 2008?\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_22 (name VARCHAR, goals VARCHAR, apps VARCHAR, assists VARCHAR, position VARCHAR)
Question: What is the name of the player with more than 0 assists, a position... | Here is the correct SQLite query to find the name of the player with more than 0 assists, a position of forward, 19 goals, and more than 84 apps:
```
SELECT name FROM table_name_22 WHERE assists > 0 AND position = 'forward' AND goals = '19' AND apps > '84';
``` | 17,536 | [
{
"from": "human",
"value": " 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 (name VARCHAR, goals VARCHAR, apps VARCHAR, assists VARCHAR, position VARCHAR)\n\n Question: What is the name of the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (goals INTEGER, assists VARCHAR, apps VARCHAR)
Question: What is the total goals with 12 assists, and less than 291 apps?
Here is the SQLite query to answe... | Your SQLite query looks almost correct, but there's a small issue regarding how the `assists` column is defined. Since `assists` is of type `VARCHAR`, you should ensure that you compare it as a string. Assuming that the `assists` data is stored as strings ("12" rather than just 12 as an integer), the query should be:
... | 17,537 | [
{
"from": "human",
"value": " 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 (goals INTEGER, assists VARCHAR, apps VARCHAR)\n\n Question: What is the total goals with 12 assists, and 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_37 (apps INTEGER, name VARCHAR)
Question: What is the total of apps for Keith Treacy?
Here is the SQLite query to answer to the question: What is the total of... | Here is the SQLite query to answer the question about the total apps for Keith Treacy:
```
SELECT SUM(apps) FROM table_name_37 WHERE name = "Keith Treacy";
``` | 17,538 | [
{
"from": "human",
"value": " 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 (apps INTEGER, name VARCHAR)\n\n Question: What is the total of apps for Keith Treacy?\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_12 (nationality VARCHAR, name VARCHAR)
Question: What nationality is Erin Donohue?
Here is the SQLite query to answer to the question: What nationality is Eri... | Here is the SQLite query to answer the question: What nationality is Erin Donohue?:
```
SELECT nationality FROM table_name_12 WHERE name = "Erin Donohue";
``` | 17,539 | [
{
"from": "human",
"value": " 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 (nationality VARCHAR, name VARCHAR)\n\n Question: What nationality is Erin Donohue?\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_78 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
Question: How many heats did Runners from Guinea-Bissau run, with rank higher than 33?
Here is the SQLite... | The SQLite query you've provided almost answers the question, but there are a couple of corrections needed regarding the column type of `rank`. Since `rank` is a string (VARCHAR), comparison against an integer (33) will not work correctly. We need to ensure that the `rank` is treated as an integer.
Assuming that the r... | 17,540 | [
{
"from": "human",
"value": " 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 (heat INTEGER, nationality VARCHAR, rank VARCHAR)\n\n Question: How many heats did Runners from Guinea-Bissau run, w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (team_1 VARCHAR)
Question: what is the 1st round when team 1 is stade lavallois (d2)?
Here is the SQLite query to answer to the question: what is the 1st r... | Your provided query correctly aims to retrieve the first round when the team "stade lavallois (d2)" is present in the `table_name_56`. However, the query is structured to output a constant value of 1 for `st_round`. If you're trying to retrieve the actual first round associated with that team, you would likely need add... | 17,541 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (team_1 VARCHAR)\n\n Question: what is the 1st round when team 1 is stade lavallois (d2)?\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_73 (team_2 VARCHAR)
Question: what is the 1st round when team 2 is usl dunkerque (d2)?
Here is the SQLite query to answer to the question: what is the 1st rou... | Your SQLite query looks almost correct, but it seems you might want to retrieve the specific round number from another source (like a round column), or check that this is indeed valid output for your needs.
However, based on your description, I'll adhere closely to what you've written. Here is your query wrapped in co... | 17,542 | [
{
"from": "human",
"value": " 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 (team_2 VARCHAR)\n\n Question: what is the 1st round when team 2 is usl dunkerque (d2)?\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_87 (team_1 VARCHAR, team_2 VARCHAR)
Question: who is team 1 when team 2 is usl dunkerque (d2)?
Here is the SQLite query to answer to the question: who is team... | Here is the SQLite query to answer the question about who is team 1 when team 2 is usl dunkerque (d2):
```
SELECT team_1 FROM table_name_87 WHERE team_2 = "usl dunkerque (d2)"
``` | 17,543 | [
{
"from": "human",
"value": " 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 (team_1 VARCHAR, team_2 VARCHAR)\n\n Question: who is team 1 when team 2 is usl dunkerque (d2)?\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_73 (hometown VARCHAR, candidate VARCHAR)
Question: What is the Hometown of Candidate Lenny Veltman?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question regarding the hometown of Candidate Lenny Veltman:
```
SELECT hometown FROM table_name_73 WHERE candidate = "Lenny Veltman";
``` | 17,544 | [
{
"from": "human",
"value": " 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 (hometown VARCHAR, candidate VARCHAR)\n\n Question: What is the Hometown of Candidate Lenny Veltman?\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_82 (background VARCHAR, hometown VARCHAR)
Question: What is the Background of the Candidate from Barrington, Illinois?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding the background of the candidate from Barrington, Illinois:
```
SELECT background FROM table_name_82 WHERE hometown = "Barrington, Illinois";
``` | 17,545 | [
{
"from": "human",
"value": " 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 (background VARCHAR, hometown VARCHAR)\n\n Question: What is the Background of the Candidate from Barrington, Illino... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (original_team VARCHAR, background VARCHAR)
Question: What is the Original Team of the Clothing Company Owner Candidate?
Here is the SQLite query to answer... | Here is the SQLite query to answer your question:
```
SELECT original_team FROM table_name_37 WHERE background = "clothing company owner";
``` | 17,546 | [
{
"from": "human",
"value": " 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 (original_team VARCHAR, background VARCHAR)\n\n Question: What is the Original Team of the Clothing Company Owner Ca... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (place INTEGER, artist VARCHAR, points VARCHAR)
Question: what is the average place when the artist is juliana pasha & luiz ejlli and the points is more tha... | The SQLite query you provided is almost correct, but to properly check for both artists ("juliana pasha" and "luiz ejlli"), you should use an `IN` clause or an `OR` operator. Additionally, since "points" is defined as a VARCHAR, you will need to cast it to INTEGER for the comparison. Here's the corrected version:
```s... | 17,547 | [
{
"from": "human",
"value": " 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 (place INTEGER, artist VARCHAR, points VARCHAR)\n\n Question: what is the average place when the artist is juliana p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (song VARCHAR, points VARCHAR)
Question: what is the song that has 17 points?
Here is the SQLite query to answer to the question: what is the song that has... | Here is the SQLite query to answer the question of which song has 17 points:
```
SELECT song FROM table_name_38 WHERE points = '17'
``` | 17,548 | [
{
"from": "human",
"value": " 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 (song VARCHAR, points VARCHAR)\n\n Question: what is the song that has 17 points?\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_35 (time INTEGER, react VARCHAR, athlete VARCHAR)
Question: What is the shortest Time for David Neville when his React time was greater than 0.183?
Here is th... | The SQLite query you provided is mostly correct but contains a minor issue with the comparison of the `react` field. Since `react` is defined as a `VARCHAR`, you should ensure that you're performing numeric comparison correctly by casting `react` to a numeric type. Here’s the revised query:
```sql
SELECT MIN(time)
FR... | 17,549 | [
{
"from": "human",
"value": " 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 (time INTEGER, react VARCHAR, athlete VARCHAR)\n\n Question: What is the shortest Time for David Neville when his Re... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (title VARCHAR, series VARCHAR, release_date VARCHAR)
Question: What is the Title of the LT Series Filmography with a Release date of 1964-02-08?
Here is t... | Here is the SQLite query to answer the question regarding the Title of the LT Series Filmography with a Release date of 1964-02-08:
```
SELECT title FROM table_name_89 WHERE series = "lt" AND release_date = "1964-02-08"
``` | 17,550 | [
{
"from": "human",
"value": " 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 (title VARCHAR, series VARCHAR, release_date VARCHAR)\n\n Question: What is the Title of the LT Series Filmography w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (series VARCHAR, director VARCHAR)
Question: What is the Series of the Filmography by Directory Friz Freleng?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the series of the filmography by director Friz Freleng:
```
SELECT series FROM table_name_93 WHERE director = "Friz Freleng";
``` | 17,551 | [
{
"from": "human",
"value": " 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 (series VARCHAR, director VARCHAR)\n\n Question: What is the Series of the Filmography by Directory Friz Freleng?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (release_date VARCHAR, production_number VARCHAR, director VARCHAR, series VARCHAR)
Question: What is the Release date of the Filmography directed by Robert... | Here is the SQLite query that answers your question:
```
SELECT release_date FROM table_name_16 WHERE director = "Robert McKimson" AND series = "MM" AND production_number = "1665";
``` | 17,552 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (release_date VARCHAR, production_number VARCHAR, director VARCHAR, series VARCHAR)\n\n Question: What is the Releas... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (director VARCHAR, title VARCHAR)
Question: What is the Director of the Filmography The Iceman Ducketh?
Here is the SQLite query to answer to the question:... | Sure! Here is the SQLite query to find the director of the filmography "The Iceman Ducketh":
```
SELECT director FROM table_name_82 WHERE title = "The Iceman Ducketh";
``` | 17,553 | [
{
"from": "human",
"value": " 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 (director VARCHAR, title VARCHAR)\n\n Question: What is the Director of the Filmography The Iceman Ducketh?\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_96 (production_number VARCHAR, series VARCHAR, release_date VARCHAR)
Question: What is the Production Number of the Filmography in MM Series with a Release dat... | Here is the SQLite query to answer the question regarding the Production Number of the Filmography in MM Series with a Release date of 1964-06-27:
```
SELECT production_number FROM table_name_96 WHERE series = "MM" AND release_date = "1964-06-27";
``` | 17,554 | [
{
"from": "human",
"value": " 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 (production_number VARCHAR, series VARCHAR, release_date VARCHAR)\n\n Question: What is the Production Number of the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)
Question: What is the Date of the Game with a Record of 46-22?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the Date of the Game with a Record of 46-22:
```
SELECT date FROM table_name_17 WHERE record = "46-22"
``` | 17,555 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)\n\n Question: What is the Date of the Game with a Record of 46-22?\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_29 (date VARCHAR, score VARCHAR)
Question: What is the Date of the Game with a Score of w 112-107 (ot)?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the date of the game with the score of "w 112-107 (ot)":
```
SELECT date FROM table_name_29 WHERE score = "w 112-107 (ot)"
``` | 17,556 | [
{
"from": "human",
"value": " 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 (date VARCHAR, score VARCHAR)\n\n Question: What is the Date of the Game with a Score of w 112-107 (ot)?\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_45 (time INTEGER, athlete VARCHAR)
Question: What is the athlete muna lee lowest time?
Here is the SQLite query to answer to the question: What is the athlete... | Here is the SQLite query to answer the question "What is the athlete muna lee lowest time?":
```
SELECT MIN(time) FROM table_name_45 WHERE athlete = "muna lee";
``` | 17,557 | [
{
"from": "human",
"value": " 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 (time INTEGER, athlete VARCHAR)\n\n Question: What is the athlete muna lee lowest time?\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_10 (rank INTEGER, athlete VARCHAR, time VARCHAR)
Question: What is the sum of rank for the athlete kerron stewart, and a time smaller than 11.05?
Here is the ... | Here is the SQLite query to answer the question:
```
SELECT SUM(rank) FROM table_name_10 WHERE athlete = "kerron stewart" AND time < "11.05"
``` | 17,558 | [
{
"from": "human",
"value": " 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 (rank INTEGER, athlete VARCHAR, time VARCHAR)\n\n Question: What is the sum of rank for the athlete kerron stewart, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (time INTEGER, heat INTEGER)
Question: What is a highest time for the heat smaller than 1?
Here is the SQLite query to answer to the question: What is a hi... | Here's the SQLite query to find the highest time for the heat smaller than 1:
```
SELECT MAX(time) FROM table_name_39 WHERE heat < 1
``` | 17,559 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (time INTEGER, heat INTEGER)\n\n Question: What is a highest time for the heat smaller than 1?\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_31 (time INTEGER, athlete VARCHAR, rank VARCHAR)
Question: What is the highest time for athlete torri edwards, and a rank larger than 6?
Here is the SQLite qu... | Here is the SQLite query to answer the question regarding the highest time for athlete Torri Edwards with a rank larger than 6:
```
SELECT MAX(time) FROM table_name_31 WHERE athlete = "torri edwards" AND rank > 6
``` | 17,560 | [
{
"from": "human",
"value": " 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, athlete VARCHAR, rank VARCHAR)\n\n Question: What is the highest time for athlete torri edwards, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (is_2_m1945 VARCHAR, kv_1s_m1942 VARCHAR)
Question: What's the IS-2 when the KV-1S is 114?
Here is the SQLite query to answer to the question: What's the I... | Here is the SQLite query to answer the question: What's the IS-2 when the KV-1S is 114?:
```
SELECT is_2_m1945 FROM table_name_91 WHERE kv_1s_m1942 = "114"
``` | 17,561 | [
{
"from": "human",
"value": " 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 (is_2_m1945 VARCHAR, kv_1s_m1942 VARCHAR)\n\n Question: What's the IS-2 when the KV-1S is 114?\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_72 (is_3_m1945 VARCHAR, kv_1s_m1942 VARCHAR)
Question: What's the IS-3 when the KV-1S is 45?
Here is the SQLite query to answer to the question: What's the IS... | Here is the SQLite query to answer the question "What's the IS-3 when the KV-1S is 45?":
```
SELECT is_3_m1945 FROM table_name_72 WHERE kv_1s_m1942 = '45'
``` | 17,562 | [
{
"from": "human",
"value": " 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 (is_3_m1945 VARCHAR, kv_1s_m1942 VARCHAR)\n\n Question: What's the IS-3 when the KV-1S is 45?\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_51 (t_100 VARCHAR, is_3_m1945 VARCHAR)
Question: What's the T-100 when the IS-3 is 150 (225)?
Here is the SQLite query to answer to the question: What's the T... | Here is the SQLite query to answer the question regarding the value of T-100 when the IS-3 is "150 (225)":
```sql
SELECT t_100 FROM table_name_51 WHERE is_3_m1945 = "150 (225)";
``` | 17,563 | [
{
"from": "human",
"value": " 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 (t_100 VARCHAR, is_3_m1945 VARCHAR)\n\n Question: What's the T-100 when the IS-3 is 150 (225)?\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_11 (is_3_m1945 VARCHAR, kv_85_m1943 VARCHAR)
Question: What's the IS-3 when the KV-85 is 40?
Here is the SQLite query to answer to the question: What's the IS... | Here is the SQLite query to answer the question: What's the IS-3 when the KV-85 is 40?:
```
SELECT is_3_m1945 FROM table_name_11 WHERE kv_85_m1943 = "40"
``` | 17,564 | [
{
"from": "human",
"value": " 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 (is_3_m1945 VARCHAR, kv_85_m1943 VARCHAR)\n\n Question: What's the IS-3 when the KV-85 is 40?\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_51 (kv_85_m1943 VARCHAR, kv_1s_m1942 VARCHAR)
Question: What's the KV-85 when the KV-1S is 45?
Here is the SQLite query to answer to the question: What's the ... | Your SQLite query to find the KV-85 when the KV-1S is 45 is correctly structured. Here it is wrapped in the specified format:
```
SELECT kv_85_m1943 FROM table_name_51 WHERE kv_1s_m1942 = "45"
``` | 17,565 | [
{
"from": "human",
"value": " 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 (kv_85_m1943 VARCHAR, kv_1s_m1942 VARCHAR)\n\n Question: What's the KV-85 when the KV-1S is 45?\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_67 (bronze INTEGER, nation VARCHAR)
Question: What is the sum of the bronze medals won by south korea?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question about the sum of bronze medals won by South Korea:
```
SELECT SUM(bronze) FROM table_name_67 WHERE nation = "south korea";
``` | 17,566 | [
{
"from": "human",
"value": " 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 (bronze INTEGER, nation VARCHAR)\n\n Question: What is the sum of the bronze medals won by south korea?\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_85 (ihsaa_class VARCHAR, school VARCHAR)
Question: Which IHSAA class does speedway school belong to?
Here is the SQLite query to answer to the question: Which... | Here is the SQLite query to answer the question: Which IHSAA class does speedway school belong to?:
```
SELECT ihsaa_class FROM table_name_85 WHERE school = "speedway";
``` | 17,567 | [
{
"from": "human",
"value": " 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 (ihsaa_class VARCHAR, school VARCHAR)\n\n Question: Which IHSAA class does speedway school belong to?\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_64 (ihsaa_class VARCHAR, year_joined VARCHAR, mascot VARCHAR)
Question: Which ISHAA school joined in 2012 and has a mascot of the panthers?
Here is the SQLite... | It looks like there is a small mistake in your SQL query. To answer the question regarding which ISHAA school joined in 2012 and has a mascot of the panthers, the condition for `year_joined` should be `= 2012` instead of `< 2012`. Here’s the corrected SQL query:
```
SELECT ihsaa_class FROM table_name_64 WHERE year_joi... | 17,568 | [
{
"from": "human",
"value": " 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 (ihsaa_class VARCHAR, year_joined VARCHAR, mascot VARCHAR)\n\n Question: Which ISHAA school joined in 2012 and has a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (tries_against INTEGER, tries_for VARCHAR, points_against VARCHAR, points_for VARCHAR)
Question: Which Tries against has Points against larger than 156, and ... | Your provided query is almost correct, but there are some clarifications needed for the conditions on `points_for` and `tries_for`. The `points_for` should be checked against the string `'127'` since it's defined as a `VARCHAR` in the schema. Here's the corrected query, wrapped properly:
```sql
SELECT AVG(tries_agains... | 17,569 | [
{
"from": "human",
"value": " 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 (tries_against INTEGER, tries_for VARCHAR, points_against VARCHAR, points_for VARCHAR)\n\n Question: Which Tries agai... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (try_diff VARCHAR, tries_for VARCHAR)
Question: Which Try diff has Tries for of 12?
Here is the SQLite query to answer to the question: Which Try diff has ... | Here is the SQLite query to answer the question "Which Try diff has Tries for of 12?":
```
SELECT try_diff FROM table_name_34 WHERE tries_for = '12'
``` | 17,570 | [
{
"from": "human",
"value": " 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 (try_diff VARCHAR, tries_for VARCHAR)\n\n Question: Which Try diff has Tries for of 12?\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_19 (team VARCHAR, position VARCHAR, player VARCHAR)
Question: What is SS Player Rich McKinney's Team?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about SS Player Rich McKinney's Team:
```
SELECT team FROM table_name_19 WHERE position = "ss" AND player = "rich mckinney"
``` | 17,571 | [
{
"from": "human",
"value": " 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 (team VARCHAR, position VARCHAR, player VARCHAR)\n\n Question: What is SS Player Rich McKinney's Team?\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_99 (player VARCHAR, pick VARCHAR, hometown_school VARCHAR)
Question: What is the Player from Dayton, Oh with a Pick of 15 or larger?
Here is the SQLite query ... | Here is the SQLite query to answer the question regarding the Player from Dayton, Oh with a Pick of 15 or larger:
```
SELECT player FROM table_name_99 WHERE pick >= 15 AND LOWER(hometown_school) = "dayton, oh"
```
Note: I've included `LOWER(hometown_school)` to ensure the query is case-insensitive, which might be he... | 17,572 | [
{
"from": "human",
"value": " 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 (player VARCHAR, pick VARCHAR, hometown_school VARCHAR)\n\n Question: What is the Player from Dayton, Oh with 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_25 (pick INTEGER, hometown_school VARCHAR)
Question: What is the Pick of the Player from Stamford, CT?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question about the Pick of the Player from Stamford, CT:
```
SELECT pick FROM table_name_25 WHERE hometown_school = 'stamford, ct';
``` | 17,573 | [
{
"from": "human",
"value": " 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 (pick INTEGER, hometown_school VARCHAR)\n\n Question: What is the Pick of the Player from Stamford, CT?\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_90 (county VARCHAR, ihsaa_class VARCHAR, location VARCHAR)
Question: What is the county with an AA IHSAA class in ferdinand?
Here is the SQLite query to answe... | Your provided SQLite query is almost correct, but it slightly misses the capitalization of the `ihsaa_class` value "AA". If the `ihsaa_class` is stored in uppercase in the database, you should match it accordingly. Here's the corrected query:
```sql
SELECT county FROM table_name_90 WHERE ihsaa_class = "AA" AND locatio... | 17,574 | [
{
"from": "human",
"value": " 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 (county VARCHAR, ihsaa_class VARCHAR, location VARCHAR)\n\n Question: What is the county with an AA IHSAA class in f... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (size INTEGER, mascot VARCHAR)
Question: What is the lowest size of the school with titans as the mascot?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to find the lowest size of the school with "titans" as the mascot:
```
SELECT MIN(size) FROM table_name_93 WHERE mascot = 'titans';
``` | 17,575 | [
{
"from": "human",
"value": " 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 (size INTEGER, mascot VARCHAR)\n\n Question: What is the lowest size of the school with titans as the mascot?\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_43 (school VARCHAR, mascot VARCHAR, size VARCHAR, county VARCHAR)
Question: What school has a size less than 674, has a county of 19 dubois, and has the ranger... | Here is the SQLite query to answer the question:
```
SELECT school FROM table_name_43 WHERE size < 674 AND county = "19 dubois" AND mascot = "rangers";
``` | 17,576 | [
{
"from": "human",
"value": " 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 (school VARCHAR, mascot VARCHAR, size VARCHAR, county VARCHAR)\n\n Question: What school has a size less than 674, h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (player VARCHAR, score VARCHAR)
Question: Which player has a score of 71-69-71-67=278?
Here is the SQLite query to answer to the question: Which player has... | The SQLite query you've written contains a logical error in the condition. Instead, we need to first sum the scores to check if they equal 278. Since the `score` is stored as a VARCHAR, we will need to handle it accordingly. Here’s how you can correctly formulate the query:
```sql
SELECT player
FROM table_name_81
WH... | 17,577 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (player VARCHAR, score VARCHAR)\n\n Question: Which player has a score of 71-69-71-67=278?\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_8 (wins VARCHAR, winnings VARCHAR, top_10 VARCHAR)
Question: How many Wins have Winnings of $184,190, and a Top 10 larger than 1?
Here is the SQLite query to ... | Here is the SQLite query to answer the question regarding the number of Wins with specific Winnings and Top 10 values:
```
SELECT COUNT(wins) FROM table_name_8 WHERE winnings = "$184,190" AND top_10 > 1
``` | 17,578 | [
{
"from": "human",
"value": " 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 (wins VARCHAR, winnings VARCHAR, top_10 VARCHAR)\n\n Question: How many Wins have Winnings of $184,190, and a Top 10 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (col__m_ INTEGER, prominence__m_ VARCHAR, rank VARCHAR, peak VARCHAR)
Question: What is the highest col in m of the puncak jaya (carstensz pyramid) peak, wh... | There seems to be a small error in the SQL query you provided. The correct SQL syntax for checking a condition should use a comparison operator instead of `OFFSET`. Let's correct that and also ensure proper quoting. Here’s the revised SQL query:
```sql
SELECT MAX(col__m_)
FROM table_name_91
WHERE rank < '7'
AND p... | 17,579 | [
{
"from": "human",
"value": " 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 (col__m_ INTEGER, prominence__m_ VARCHAR, rank VARCHAR, peak VARCHAR)\n\n Question: What is the highest col in m of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (elevation__m_ INTEGER, prominence__m_ VARCHAR, col__m_ VARCHAR, peak VARCHAR)
Question: What is the highest elevation in m of the bon irau peak, which has ... | The SQLite query you provided has a few issues. The `PROMINENCE` column should be treated as a numeric value for comparison, and the `OFFSET` clause is incorrectly used. Here is a corrected version of the query:
```sql
SELECT MAX(elevation__m_)
FROM table_name_11
WHERE col__m_ > 0 AND peak = 'bon irau' AND CAST(prom... | 17,580 | [
{
"from": "human",
"value": " 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 (elevation__m_ INTEGER, prominence__m_ VARCHAR, col__m_ VARCHAR, peak VARCHAR)\n\n Question: What is the highest ele... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (round INTEGER, position VARCHAR, pick__number VARCHAR)
Question: Which round was the defensive tackle picked after 187?
Here is the SQLite query to answer ... | Your query is almost correct, but if you want to find which round the defensive tackle was picked after pick number 187, you may want to retrieve the specific rounds instead of calculating the average. Here's the corrected query to return the distinct rounds:
```sql
SELECT DISTINCT round
FROM table_name_8
WHERE posi... | 17,581 | [
{
"from": "human",
"value": " 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 (round INTEGER, position VARCHAR, pick__number VARCHAR)\n\n Question: Which round was the defensive tackle picked aft... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (title VARCHAR, label VARCHAR)
Question: What was the title for the label mother / mvp / polydor?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question about the title for the label "mother / mvp / polydor":
```
SELECT title FROM table_name_80 WHERE label = "mother / mvp / polydor";
``` | 17,582 | [
{
"from": "human",
"value": " 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 (title VARCHAR, label VARCHAR)\n\n Question: What was the title for the label mother / mvp / polydor?\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_59 (label VARCHAR, country_of_release VARCHAR, title VARCHAR)
Question: What was the label for Shake Your Groove Thing in USA?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the label for "Shake Your Groove Thing" in the USA:
```sql
SELECT label FROM table_name_59 WHERE country_of_release = "USA" AND title = "Shake Your Groove Thing";
``` | 17,583 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (label VARCHAR, country_of_release VARCHAR, title VARCHAR)\n\n Question: What was the label for Shake Your Groove 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 (place_of_birth VARCHAR, elector VARCHAR)
Question: What is listed as the Place of birth for the Elector of Soffredo?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the Place of birth for the Elector of Soffredo:
```
SELECT place_of_birth FROM table_name_31 WHERE elector = 'Soffredo';
``` | 17,584 | [
{
"from": "human",
"value": " 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 (place_of_birth VARCHAR, elector VARCHAR)\n\n Question: What is listed as the Place of birth for the Elector of Soff... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR)
Question: What's the Place of birth listed that has an Elevator of ALexander III, and an Elector... | Here is the SQLite query to answer the question regarding the place of birth with the specified elevator and elector:
```
SELECT place_of_birth FROM table_name_51 WHERE elevator = "Alexander III" AND elector = "Ruggiero Di San Severino";
``` | 17,585 | [
{
"from": "human",
"value": " 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 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR)\n\n Question: What's the Place of birth listed that has ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (elevator VARCHAR, cardinalatial_title VARCHAR)
Question: What is listed for the Elevator, that also has the Cardinalatial title of Deacon of S. Maria in Po... | Here is the SQLite query to answer the question regarding the Elevator associated with the Cardinalatial title of Deacon of S. Maria in Portico:
```
SELECT elevator FROM table_name_78 WHERE cardinalatial_title = "Deacon of S. Maria in Portico"
``` | 17,586 | [
{
"from": "human",
"value": " 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 (elevator VARCHAR, cardinalatial_title VARCHAR)\n\n Question: What is listed for the Elevator, that also has the Car... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (elector VARCHAR, cardinalatial_title VARCHAR)
Question: What is listed for the Elector that also has the Cardinalatial title of Priest of S. Marco?
Here i... | Your SQLite query is almost correct, but SQL keywords and strings should typically be in standard formats to ensure consistent interpretation. Also, it is good practice to use uppercase for SQL keywords. Here is the properly formatted query wrapped in code formatting:
```sql
SELECT elector FROM table_name_86 WHERE car... | 17,587 | [
{
"from": "human",
"value": " 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 (elector VARCHAR, cardinalatial_title VARCHAR)\n\n Question: What is listed for the Elector that also has the Cardin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (elevator VARCHAR, elector VARCHAR)
Question: What is listed for the Elevator that has the Elector of Gerardo?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question:
```
SELECT elevator FROM table_name_10 WHERE elector = "Gerardo";
``` | 17,588 | [
{
"from": "human",
"value": " 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 (elevator VARCHAR, elector VARCHAR)\n\n Question: What is listed for the Elevator that has the Elector of Gerardo?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (place_of_birth VARCHAR, elector VARCHAR)
Question: What is listed as the Place of Birth for the Elector of Pandolfo?
Here is the SQLite query to answer to... | Your provided SQLite query looks correct for the task at hand. Here it is again, wrapped in code formatting:
```
SELECT place_of_birth FROM table_name_40 WHERE elector = "pandolfo";
```
This query will select the `place_of_birth` of the elector named "pandolfo" from the `table_name_40` table. | 17,589 | [
{
"from": "human",
"value": " 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 (place_of_birth VARCHAR, elector VARCHAR)\n\n Question: What is listed as the Place of Birth for the Elector of Pand... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (density__per_km²_ INTEGER, rank VARCHAR, area__km²_ VARCHAR)
Question: what is the least density (per km²) when the rank is 5 and the Area (km²) is less th... | It seems there is a small mistake in the condition for the area. You should be comparing the area as a numerical value, not as a string. Since the `area__km²_` column is defined as VARCHAR, you'll need to cast it to an integer or a real number to make the comparison work properly.
Here's the corrected SQLite query:
`... | 17,590 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (density__per_km²_ INTEGER, rank VARCHAR, area__km²_ VARCHAR)\n\n Question: what is the least density (per km²) when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (turbo VARCHAR, frequency VARCHAR)
Question: what is the turbo when the frequency is 2.2 ghz?
Here is the SQLite query to answer to the question: what is t... | Here is the SQLite query to answer the question regarding what the turbo is when the frequency is 2.2 GHz:
```
SELECT turbo FROM table_name_63 WHERE frequency = "2.2 ghz"
``` | 17,591 | [
{
"from": "human",
"value": " 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 (turbo VARCHAR, frequency VARCHAR)\n\n Question: what is the turbo when the frequency is 2.2 ghz?\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_50 (gpu_frequency VARCHAR, part_number_s_ VARCHAR)
Question: what is the gpu frequency when the part number is cw8064701470702?
Here is the SQLite query to an... | Your query is well-structured to answer the question about the GPU frequency for the specified part number. Here it is wrapped in code formatting:
```
SELECT gpu_frequency FROM table_name_50 WHERE part_number_s_ = "cw8064701470702";
``` | 17,592 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (gpu_frequency VARCHAR, part_number_s_ VARCHAR)\n\n Question: what is the gpu frequency when the part number is cw80... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (release_date VARCHAR, sspec_number VARCHAR)
Question: what is the release date when the sspec number is sr15h(c0)?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding the release date for the sspec number "sr15h(c0)":
```
SELECT release_date FROM table_name_98 WHERE sspec_number = "sr15h(c0)"
``` | 17,593 | [
{
"from": "human",
"value": " 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 (release_date VARCHAR, sspec_number VARCHAR)\n\n Question: what is the release date when the sspec number is sr15h(c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (sspec_number VARCHAR, part_number_s_ VARCHAR)
Question: what is the sspec number when the part number is cw8064701470802?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question regarding the sspec number for the part number `cw8064701470802`:
```
SELECT sspec_number FROM table_name_2 WHERE part_number_s_ = "cw8064701470802"
``` | 17,594 | [
{
"from": "human",
"value": " 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 (sspec_number VARCHAR, part_number_s_ VARCHAR)\n\n Question: what is the sspec number when the part number is cw80647... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (rank INTEGER, cyclist VARCHAR)
Question: what is the average rank when the cyclist is alexandr pliuschin?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question regarding the average rank for the cyclist "alexandr pliuschin":
```
SELECT AVG(rank) FROM table_name_71 WHERE cyclist = "alexandr pliuschin";
``` | 17,595 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (rank INTEGER, cyclist VARCHAR)\n\n Question: what is the average rank when the cyclist is alexandr pliuschin?\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_21 (rank INTEGER, heat VARCHAR, nation VARCHAR)
Question: what is the rank when heat is 9 and the nation is great britain?
Here is the SQLite query to answer ... | Your SQLite query seems to be using the `SUM` function, which would return the total of the ranks that match the criteria. If you are looking for the specific rank (or ranks) when the heat is 9 and the nation is "great britain", you may want to select the rank directly without summing. Here’s how you can query that:
`... | 17,596 | [
{
"from": "human",
"value": " 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 (rank INTEGER, heat VARCHAR, nation VARCHAR)\n\n Question: what is the rank when heat is 9 and the nation is great b... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (result VARCHAR, rank VARCHAR)
Question: what is the result when the rank is 12?
Here is the SQLite query to answer to the question: what is the result whe... | Here is the SQLite query to answer the question about the result when the rank is 12:
```sql
SELECT result FROM table_name_13 WHERE rank = '12'
``` | 17,597 | [
{
"from": "human",
"value": " 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 (result VARCHAR, rank VARCHAR)\n\n Question: what is the result when the rank is 12?\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 (competition VARCHAR, year VARCHAR, snatch VARCHAR)
Question: Which competition had a year of 2010 with Snatch weight of 185kg?
Here is the SQLite query to... | Here is the correct SQLite query to answer the question:
```
SELECT competition FROM table_name_23 WHERE year = '2010' AND snatch = '185kg';
``` | 17,598 | [
{
"from": "human",
"value": " 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 (competition VARCHAR, year VARCHAR, snatch VARCHAR)\n\n Question: Which competition had a year of 2010 with Snatch w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (snatch VARCHAR, total VARCHAR)
Question: What was the Snatch weight for the year that had a total of 409kg?
Here is the SQLite query to answer to the ques... | The SQLite query you've provided is correct for retrieving the Snatch weight for the year that had a total of 409kg. Here it is wrapped in code blocks as you requested:
```
SELECT snatch FROM table_name_92 WHERE total = "409kg";
``` | 17,599 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (snatch VARCHAR, total VARCHAR)\n\n Question: What was the Snatch weight for the year that had a total of 409kg?\n\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.