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_5 (power__hp_ INTEGER, engine VARCHAR)
Question: What is the highest power (hp) of an OM314 engine?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to find the highest power (hp) of an OM314 engine:
```
SELECT MAX(power__hp_) FROM table_name_5 WHERE engine = "om314";
``` | 16,100 | [
{
"from": "human",
"value": " 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 (power__hp_ INTEGER, engine VARCHAR)\n\n Question: What is the highest power (hp) of an OM314 engine?\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_4 (used VARCHAR, power__hp_ VARCHAR, engine VARCHAR)
Question: When was power (hp) less than 93 for the OM324 engine used?
Here is the SQLite query to answer ... | Here is the SQLite query wrapped in code formatting:
```
SELECT used FROM table_name_4 WHERE power__hp_ < 93 AND engine = "OM324";
``` | 16,101 | [
{
"from": "human",
"value": " 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 (used VARCHAR, power__hp_ VARCHAR, engine VARCHAR)\n\n Question: When was power (hp) less than 93 for the OM324 engin... | |
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, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR)
Question: What is the name for Nagpur district, with a ... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_56 WHERE district = "nagpur" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "59"
``` | 16,102 | [
{
"from": "human",
"value": " 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, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR)\n\n 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_45 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR)
Question: What district shows reserved for (SC / ST /None) of total:?
Here is the SQLite query to... | To answer the question regarding which districts show reserved status for (SC / ST / None) in the specified format such as "total:", your SQLite query can be tailored to correctly filter the results. Here is the adjusted query:
```sql
SELECT district
FROM table_name_45
WHERE reserved_for___sc___st__none_ IN ('SC', '... | 16,103 | [
{
"from": "human",
"value": " 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 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR)\n\n Question: What district shows reserved for (SC / ST /N... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (number_of_electorates__2009_ INTEGER, name VARCHAR)
Question: What is the number of electorates (2009) for Hingna?
Here is the SQLite query to answer to t... | The SQLite query you've provided is attempting to compute the average number of electorates for "Hingna." However, if you are looking to retrieve the specific number of electorates for Hingna rather than the average, you should use the following query:
```sql
SELECT number_of_electorates__2009_ FROM table_name_78 WHER... | 16,104 | [
{
"from": "human",
"value": " 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 (number_of_electorates__2009_ INTEGER, name VARCHAR)\n\n Question: What is the number of electorates (2009) for Hing... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
Question: What is the constituency number with a reserved for ( SC / ST /... | Here is the SQLite query to answer your question:
```
SELECT constituency_number FROM table_name_65 WHERE reserved_for___sc___st__none_ = "none" AND name = "Katol"
``` | 16,105 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (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_57 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
Question: What is the total number of electorates (2009) for Katol?
Here is the SQLite query to answer... | Here is the corrected SQLite query to answer the question regarding the total number of electorates (2009) for Katol:
```sql
SELECT SUM(CAST(number_of_electorates__2009_ AS INTEGER)) FROM table_name_57 WHERE name = "katol"
```
This query uses `SUM` to calculate the total number of electorates, assuming `number_of_ele... | 16,106 | [
{
"from": "human",
"value": " 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 (number_of_electorates__2009_ VARCHAR, name VARCHAR)\n\n Question: What is the total number of electorates (2009) fo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (year INTEGER, category VARCHAR)
Question: Which Year has a Category of best performance by a leading actress in a musical?
Here is the SQLite query to ans... | Your SQLite query is correctly structured to retrieve the maximum year for the specified category. However, to ensure clarity, the query can be slightly refined to focus on the relevant year without using `MAX()` if you're asking for all years that meet the criteria. Here is the query wrapped in the required format:
`... | 16,107 | [
{
"from": "human",
"value": " 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 (year INTEGER, category VARCHAR)\n\n Question: Which Year has a Category of best performance by a leading actress in... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (award_ceremony VARCHAR, result VARCHAR, category VARCHAR)
Question: Which Award Ceremony has a Result of nominated, and a Category of best revival of a mus... | Your SQLite query looks correct. Here it is wrapped in the specified format:
```
SELECT award_ceremony FROM table_name_75 WHERE result = "nominated" AND category = "best revival of a musical"
```
This query will return the award ceremonies that have a result of "nominated" and belong to the category "best revival of... | 16,108 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (award_ceremony VARCHAR, result VARCHAR, category VARCHAR)\n\n Question: Which Award Ceremony has a Result of nomina... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (analogue_terrestrial_channel VARCHAR, internet VARCHAR)
Question: What is the analogue terrestrial channel when the internet shows channel4.com?
Here is t... | Here is the SQLite query to answer the question regarding the analogue terrestrial channel when the internet shows channel4.com:
```
SELECT analogue_terrestrial_channel FROM table_name_95 WHERE internet = "channel4.com";
``` | 16,109 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (analogue_terrestrial_channel VARCHAR, internet VARCHAR)\n\n Question: What is the analogue terrestrial channel when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (position VARCHAR, channel VARCHAR)
Question: What is the position when the channel shows channel 4?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question:
```
SELECT position FROM table_name_42 WHERE channel = "channel 4"
``` | 16,110 | [
{
"from": "human",
"value": " 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 (position VARCHAR, channel VARCHAR)\n\n Question: What is the position when the channel shows channel 4?\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_10 (channel VARCHAR, digital_terrestrial_channel VARCHAR, position VARCHAR, analogue_terrestrial_channel VARCHAR, internet VARCHAR)
Question: What is the chann... | Here is the SQLite query that meets the specified criteria:
```
SELECT channel
FROM table_name_10
WHERE analogue_terrestrial_channel = "n/a"
AND internet = "itv.com"
AND position > 6
AND digital_terrestrial_channel = "6 27 (+1)"
``` | 16,111 | [
{
"from": "human",
"value": " 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 (channel VARCHAR, digital_terrestrial_channel VARCHAR, position VARCHAR, analogue_terrestrial_channel VARCHAR, internet... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (internet VARCHAR, position INTEGER)
Question: What is the internet when the position is more than 13?
Here is the SQLite query to answer to the question: ... | Your provided SQLite query is correct. Here it is wrapped in code formatting:
```
SELECT internet FROM table_name_12 WHERE position > 13;
``` | 16,112 | [
{
"from": "human",
"value": " 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 (internet VARCHAR, position INTEGER)\n\n Question: What is the internet when the position is more than 13?\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_74 (notes VARCHAR, method VARCHAR)
Question: What are the Notes when the Method is decision?
Here is the SQLite query to answer to the question: What are the ... | Here is the SQLite query to answer the question about the Notes when the Method is "decision":
```
SELECT notes FROM table_name_74 WHERE method = "decision"
``` | 16,113 | [
{
"from": "human",
"value": " 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 (notes VARCHAR, method VARCHAR)\n\n Question: What are the Notes when the Method is decision?\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_95 (result VARCHAR, event VARCHAR, method VARCHAR)
Question: What was the result for the 2012 ibjjf world jiu-jitsu championships event when the method was poi... | Here is the SQLite query to answer the question:
```
SELECT result FROM table_name_95 WHERE event = "2012 ibjjf world jiu-jitsu championships" AND method = "points (4 x 0)"
``` | 16,114 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (result VARCHAR, event VARCHAR, method VARCHAR)\n\n Question: What was the result for the 2012 ibjjf world jiu-jitsu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (opponent VARCHAR, method VARCHAR)
Question: Who was the opponent when the method was points (4 x 0)?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question: Who was the opponent when the method was points (4 x 0)?:
```
SELECT opponent FROM table_name_55 WHERE method = "points (4 x 0)"
``` | 16,115 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (opponent VARCHAR, method VARCHAR)\n\n Question: Who was the opponent when the method was points (4 x 0)?\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_36 (result VARCHAR, opponent VARCHAR)
Question: What was the result against opponent Amanda Lucas?
Here is the SQLite query to answer to the question: What wa... | Here is the SQLite query to answer the question about the result against opponent Amanda Lucas:
```
SELECT result FROM table_name_36 WHERE opponent = "Amanda Lucas";
``` | 16,116 | [
{
"from": "human",
"value": " 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 (result VARCHAR, opponent VARCHAR)\n\n Question: What was the result against opponent Amanda Lucas?\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_43 (event VARCHAR, notes VARCHAR)
Question: Which event has notes of women +60kg quarterfinal?
Here is the SQLite query to answer to the question: Which event... | Here is the SQLite query to answer the question about which event has notes of "women +60kg quarterfinal":
```
SELECT event FROM table_name_43 WHERE notes = "women +60kg quarterfinal"
``` | 16,117 | [
{
"from": "human",
"value": " 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 (event VARCHAR, notes VARCHAR)\n\n Question: Which event has notes of women +60kg quarterfinal?\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_15 (date VARCHAR, attendance INTEGER)
Question: On what date was the attendance more than 17,652?
Here is the SQLite query to answer to the question: On what ... | It looks like there is a small error in the query you provided. The correct query should simply check for attendance greater than 17,652 without any extra formatting with the OFFSET keyword. The correct SQLite query is:
```sql
SELECT date FROM table_name_15 WHERE attendance > 17652;
```
This will return the dates wh... | 16,118 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (date VARCHAR, attendance INTEGER)\n\n Question: On what date was the attendance more than 17,652?\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 (record VARCHAR, date VARCHAR)
Question: What is the record on January 18?
Here is the SQLite query to answer to the question: What is the record on Januar... | Here is the SQLite query to answer the question about the record on January 18:
```
SELECT record FROM table_name_41 WHERE date = "January 18";
``` | 16,119 | [
{
"from": "human",
"value": " 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 (record VARCHAR, date VARCHAR)\n\n Question: What is the record on January 18?\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_50 (draws INTEGER, against INTEGER)
Question: What was the lowest draw when the against was larger than 2638?
Here is the SQLite query to answer to the questi... | Your SQLite query is correct. It accurately retrieves the lowest value of `draws` where the `against` value is greater than 2638. Here it is wrapped as you requested:
```
SELECT MIN(draws) FROM table_name_50 WHERE against > 2638
``` | 16,120 | [
{
"from": "human",
"value": " 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 (draws INTEGER, against INTEGER)\n\n Question: What was the lowest draw when the against was larger than 2638?\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 (against INTEGER, draws INTEGER)
Question: What was the lowest against when the draw was at least 0?
Here is the SQLite query to answer to the question: Wh... | The correct SQLite query to find the lowest `against` value when the `draws` are at least 0 should check for `draws >= 0` instead. Here’s the corrected version of your query:
```
SELECT MIN(against) FROM table_name_16 WHERE draws >= 0;
``` | 16,121 | [
{
"from": "human",
"value": " 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 (against INTEGER, draws INTEGER)\n\n Question: What was the lowest against when the draw was at least 0?\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_99 (losses INTEGER, byes INTEGER)
Question: What were the highest losses for a byes larger than 2?
Here is the SQLite query to answer to the question: What we... | Here is the SQLite query to answer the question regarding the highest losses for byes larger than 2:
```
SELECT MAX(losses) FROM table_name_99 WHERE byes > 2
``` | 16,122 | [
{
"from": "human",
"value": " 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 (losses INTEGER, byes INTEGER)\n\n Question: What were the highest losses for a byes larger than 2?\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_2 (position_in_1960_1961 VARCHAR, clubs VARCHAR)
Question: What position did the Belenenses club occupy in 1960/61?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question of what position the Belenenses club occupied in 1960/61:
```
SELECT position_in_1960_1961 FROM table_name_2 WHERE clubs = "belenenses";
``` | 16,123 | [
{
"from": "human",
"value": " 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 (position_in_1960_1961 VARCHAR, clubs VARCHAR)\n\n Question: What position did the Belenenses club occupy in 1960/61?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (clubs VARCHAR, seasons_at_this_level VARCHAR)
Question: Which club has played for 27 seasons at this level?
Here is the SQLite query to answer to the ques... | Your provided query is almost correct, but the value in the `WHERE` clause should match the format in your database. Assuming "27 seasons" is the correct format, your query will work fine. If the format varies, you should adjust it accordingly.
Here’s the query wrapped in code formatting:
```
SELECT clubs FROM table_... | 16,124 | [
{
"from": "human",
"value": " 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 (clubs VARCHAR, seasons_at_this_level VARCHAR)\n\n Question: Which club has played for 27 seasons at this level?\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_23 (nfl_team VARCHAR, college VARCHAR)
Question: What is the NFL team for Toledo?
Here is the SQLite query to answer to the question: What is the NFL team for... | Here is the SQLite query to answer the question: What is the NFL team for Toledo?:
```sql
SELECT nfl_team FROM table_name_23 WHERE college = "toledo";
``` | 16,125 | [
{
"from": "human",
"value": " 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 (nfl_team VARCHAR, college VARCHAR)\n\n Question: What is the NFL team for Toledo?\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_18 (rnd VARCHAR, college VARCHAR)
Question: What is Northern Colorado's Rnd.?
Here is the SQLite query to answer to the question: What is Northern Colorado's ... | Here is the SQLite query to answer the question: What is Northern Colorado's Rnd.?:
```
SELECT rnd FROM table_name_18 WHERE college = "northern colorado";
``` | 16,126 | [
{
"from": "human",
"value": " 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 (rnd VARCHAR, college VARCHAR)\n\n Question: What is Northern Colorado's Rnd.?\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_68 (draws INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
Question: What is the lowest value for Draws, when South West DFL is "Tyrendarra", and when Byes is gr... | Here is the SQLite query to answer the question regarding the lowest value for Draws when South West DFL is "Tyrendarra" and Byes is greater than 0:
```sql
SELECT MIN(draws) FROM table_name_68 WHERE south_west_dfl = "Tyrendarra" AND byes > 0;
``` | 16,127 | [
{
"from": "human",
"value": " 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 (draws INTEGER, south_west_dfl VARCHAR, byes VARCHAR)\n\n Question: What is the lowest value for Draws, when South W... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (against INTEGER, wins VARCHAR, losses VARCHAR)
Question: What is the sum of Against, when Wins is greater than 8, and when Losses is greater than 6?
Here ... | Here is the SQLite query wrapped in code format as requested:
```
SELECT SUM(against) FROM table_name_19 WHERE wins > 8 AND losses > 6;
``` | 16,128 | [
{
"from": "human",
"value": " 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 (against INTEGER, wins VARCHAR, losses VARCHAR)\n\n Question: What is the sum of Against, when Wins is greater than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (byes VARCHAR, south_west_dfl VARCHAR, wins VARCHAR)
Question: What is the total number of Byes, when South West DFL is "Coleraine", and when Wins is less t... | Here is the SQLite query to answer the question based on the provided schema:
```
SELECT COUNT(byes) FROM table_name_80 WHERE south_west_dfl = "Coleraine" AND wins < 12
``` | 16,129 | [
{
"from": "human",
"value": " 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 (byes VARCHAR, south_west_dfl VARCHAR, wins VARCHAR)\n\n Question: What is the total number of Byes, when South West... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
Question: What is the average value for Wins, when South West DFL is "Coleraine", and when Byes is grea... | Here is the SQLite query to answer the question:
```
SELECT AVG(wins) FROM table_name_73 WHERE south_west_dfl = "Coleraine" AND byes > 0
``` | 16,130 | [
{
"from": "human",
"value": " 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 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR)\n\n Question: What is the average value for Wins, when South We... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
Question: What is the lowest value for Wins, when South West DFL is "Cavendish", and when Byes is less ... | Here is the SQLite query to answer the question:
```
SELECT MIN(wins) FROM table_name_58 WHERE south_west_dfl = "Cavendish" AND byes < 0
``` | 16,131 | [
{
"from": "human",
"value": " 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 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR)\n\n Question: What is the lowest value for Wins, when South Wes... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (wins VARCHAR, byes VARCHAR, losses VARCHAR, against VARCHAR)
Question: What is the total number of Wins, when Losses is less than 10, when Against is less ... | The query you've provided is nearly correct, but it counts the number of entries with wins. If you want to sum the values in the "wins" column instead (assuming they are numeric), you should use the `SUM()` function rather than `COUNT()`. Here is the corrected query:
```
SELECT SUM(CAST(wins AS INTEGER)) FROM table_na... | 16,132 | [
{
"from": "human",
"value": " 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 (wins VARCHAR, byes VARCHAR, losses VARCHAR, against VARCHAR)\n\n Question: What is the total number of Wins, when L... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (score VARCHAR, year VARCHAR, champion VARCHAR)
Question: What score has a year later than 1974, with hawthorn as the champion?
Here is the SQLite query to... | Here is the SQLite query to answer the question regarding the score for the champion hawthorn in a year later than 1974:
```
SELECT score FROM table_name_31 WHERE year > 1974 AND champion = "hawthorn"
``` | 16,133 | [
{
"from": "human",
"value": " 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 (score VARCHAR, year VARCHAR, champion VARCHAR)\n\n Question: What score has a year later than 1974, with hawthorn a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (champion VARCHAR, runner_up VARCHAR)
Question: What champion has north melbourne as the runner-up?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question: What champion has north melbourne as the runner-up?:
```
SELECT champion FROM table_name_92 WHERE runner_up = "north melbourne"
``` | 16,134 | [
{
"from": "human",
"value": " 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 (champion VARCHAR, runner_up VARCHAR)\n\n Question: What champion has north melbourne as the runner-up?\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_81 (location VARCHAR, year VARCHAR, country VARCHAR)
Question: What is the location for Egypt in 2013?
Here is the SQLite query to answer to the question: Wha... | Sure! Here is the SQLite query to find the location for Egypt in 2013:
```
SELECT location FROM table_name_81 WHERE year = "2013" AND country = "Egypt"
``` | 16,135 | [
{
"from": "human",
"value": " 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 (location VARCHAR, year VARCHAR, country VARCHAR)\n\n Question: What is the location for Egypt in 2013?\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 (location VARCHAR, year VARCHAR, country VARCHAR)
Question: What is the location for Yemen in 1994?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about the location for Yemen in 1994:
```
SELECT location FROM table_name_1 WHERE year = "1994" AND country = "Yemen";
``` | 16,136 | [
{
"from": "human",
"value": " 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 (location VARCHAR, year VARCHAR, country VARCHAR)\n\n Question: What is the location for Yemen in 1994?\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_61 (year VARCHAR, location VARCHAR)
Question: What year is the location Ta'izz?
Here is the SQLite query to answer to the question: What year is the location ... | Here is the SQLite query to answer the question regarding the location Ta'izz:
```sql
SELECT year FROM table_name_61 WHERE location = "Ta'izz";
``` | 16,137 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (year VARCHAR, location VARCHAR)\n\n Question: What year is the location Ta'izz?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (location VARCHAR, country VARCHAR)
Question: Which location is in the Belgian Congo Tanganyika?
Here is the SQLite query to answer to the question: Which ... | Here is the SQLite query to answer the question: Which location is in the Belgian Congo Tanganyika?:
```
SELECT location FROM table_name_49 WHERE country = "Belgian Congo Tanganyika";
``` | 16,138 | [
{
"from": "human",
"value": " 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 (location VARCHAR, country VARCHAR)\n\n Question: Which location is in the Belgian Congo Tanganyika?\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 (perpetrator VARCHAR, location VARCHAR)
Question: Who is the perpetrator in Bait Al-Aqari?
Here is the SQLite query to answer to the question: Who is the p... | Here is the SQLite query to answer the question: Who is the perpetrator in Bait Al-Aqari?:
```sql
SELECT perpetrator FROM table_name_64 WHERE location = "Bait Al-Aqari";
``` | 16,139 | [
{
"from": "human",
"value": " 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 (perpetrator VARCHAR, location VARCHAR)\n\n Question: Who is the perpetrator in Bait Al-Aqari?\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_54 (perpetrator VARCHAR, killed VARCHAR, country VARCHAR, location VARCHAR)
Question: Who is the perpetrator in Uganda who killed 12 in Kampala?
Here is the S... | Here is the SQLite query to answer the question:
```
SELECT perpetrator FROM table_name_54 WHERE country = "uganda" AND location = "kampala" AND killed = "12"
``` | 16,140 | [
{
"from": "human",
"value": " 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 (perpetrator VARCHAR, killed VARCHAR, country VARCHAR, location VARCHAR)\n\n Question: Who is the perpetrator in Uga... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR)
Question: Who was the home team when grimsby town was the away team?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question: Who was the home team when Grimsby Town was the away team?:
```
SELECT home_team FROM table_name_91 WHERE away_team = "grimsby town"
``` | 16,141 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, away_team VARCHAR)\n\n Question: Who was the home team when grimsby town was the away team?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (goals VARCHAR, transfer_window VARCHAR, name VARCHAR)
Question: How many goals for Kenton have a transfer window of Summer?
Here is the SQLite query to an... | Here is the SQLite query to answer the question about how many goals for Kenton have a transfer window of Summer:
```
SELECT COUNT(goals) FROM table_name_36 WHERE transfer_window = "Summer" AND name = "Kenton";
``` | 16,142 | [
{
"from": "human",
"value": " 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 (goals VARCHAR, transfer_window VARCHAR, name VARCHAR)\n\n Question: How many goals for Kenton have a transfer windo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (branding VARCHAR, callsign VARCHAR)
Question: What is the branding for callsign DWFM?
Here is the SQLite query to answer to the question: What is the bran... | Here is the SQLite query to answer the question about the branding for callsign DWFM:
```sql
SELECT branding FROM table_name_53 WHERE callsign = "DWFM";
``` | 16,143 | [
{
"from": "human",
"value": " 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 (branding VARCHAR, callsign VARCHAR)\n\n Question: What is the branding for callsign DWFM?\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_10 (frequency VARCHAR, power__kw_ VARCHAR)
Question: What is the frequency where the power is 25kw?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question about the frequency where the power is 25kw:
```
SELECT frequency FROM table_name_10 WHERE power__kw_ = "25kw";
``` | 16,144 | [
{
"from": "human",
"value": " 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 (frequency VARCHAR, power__kw_ VARCHAR)\n\n Question: What is the frequency where the power is 25kw?\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 (power__kw_ VARCHAR, frequency VARCHAR, location VARCHAR)
Question: What is the power at Baguio where the frequency is 102.3mhz?
Here is the SQLite query t... | Here is the SQLite query to answer the question about the power at Baguio where the frequency is 102.3mhz:
```
SELECT power__kw_ FROM table_name_59 WHERE frequency = "102.3mhz" AND location = "Baguio"
``` | 16,145 | [
{
"from": "human",
"value": " 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 (power__kw_ VARCHAR, frequency VARCHAR, location VARCHAR)\n\n Question: What is the power at Baguio where the freque... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (location VARCHAR, frequency VARCHAR)
Question: What is the location where the frequency is 92.3mhz?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question regarding the location where the frequency is 92.3mhz:
```
SELECT location FROM table_name_76 WHERE frequency = "92.3mhz";
``` | 16,146 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (location VARCHAR, frequency VARCHAR)\n\n Question: What is the location where the frequency is 92.3mhz?\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_54 (branding VARCHAR, location VARCHAR)
Question: What is the brand where the location is Cagayan De Oro?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question:
```
SELECT branding FROM table_name_54 WHERE location = "Cagayan De Oro"
``` | 16,147 | [
{
"from": "human",
"value": " 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 (branding VARCHAR, location VARCHAR)\n\n Question: What is the brand where the location is Cagayan De Oro?\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_62 (established VARCHAR, league VARCHAR)
Question: Which Established has a League of ontario australian football league?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question "Which Established has a League of ontario australian football league?":
```
SELECT established FROM table_name_62 WHERE league = "ontario australian football league";
``` | 16,148 | [
{
"from": "human",
"value": " 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 (established VARCHAR, league VARCHAR)\n\n Question: Which Established has a League of ontario australian football le... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (championships VARCHAR, league VARCHAR)
Question: Which Championships have a League of ontario australian football league?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question:
```
SELECT championships FROM table_name_70 WHERE league = "ontario australian football league";
``` | 16,149 | [
{
"from": "human",
"value": " 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 (championships VARCHAR, league VARCHAR)\n\n Question: Which Championships have a League of ontario australian footba... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (established VARCHAR, club VARCHAR)
Question: Which Established has a Club of guelph rangers?
Here is the SQLite query to answer to the question: Which Est... | Your SQLite query looks correct. Here it is wrapped in code format as you requested:
```
SELECT established FROM table_name_61 WHERE club = "guelph rangers"
``` | 16,150 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (established VARCHAR, club VARCHAR)\n\n Question: Which Established has a Club of guelph rangers?\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_64 (year_s_ INTEGER, spokesperson VARCHAR, radio_commentator VARCHAR)
Question: What is the earliest year with colin berry as the spokesperson and ray moore as... | Here is the SQLite query to answer the question about the earliest year with Colin Berry as the spokesperson and Ray Moore as the radio commentator:
```sql
SELECT MIN(year_s_)
FROM table_name_64
WHERE spokesperson = "colin berry"
AND radio_commentator = "ray moore"
``` | 16,151 | [
{
"from": "human",
"value": " 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 (year_s_ INTEGER, spokesperson VARCHAR, radio_commentator VARCHAR)\n\n Question: What is the earliest year with coli... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (spokesperson VARCHAR, year_s_ INTEGER)
Question: Who is the spokesperson after 2012?
Here is the SQLite query to answer to the question: Who is the spokes... | Your SQLite query is correct. Here it is wrapped in the appropriate code block:
```
SELECT spokesperson FROM table_name_33 WHERE year_s_ > 2012;
``` | 16,152 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (spokesperson VARCHAR, year_s_ INTEGER)\n\n Question: Who is the spokesperson after 2012?\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_51 (semi_final_second_television_commentator VARCHAR, year_s_ VARCHAR, final_television_commentator VARCHAR, spokesperson VARCHAR)
Question: Who is the semi-fi... | Here is the SQLite query to answer the question:
```
SELECT semi_final_second_television_commentator
FROM table_name_51
WHERE final_television_commentator = "graham norton"
AND spokesperson = "scott mills"
AND year_s_ < 2013;
``` | 16,153 | [
{
"from": "human",
"value": " 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 (semi_final_second_television_commentator VARCHAR, year_s_ VARCHAR, final_television_commentator VARCHAR, spokesperson ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (wind VARCHAR, athlete VARCHAR)
Question: What kind of Wind has an Athlete of kerron stewart?
Here is the SQLite query to answer to the question: What kind... | Here is the SQLite query to answer the question about what kind of Wind has an Athlete of kerron stewart:
```
SELECT wind FROM table_name_26 WHERE athlete = "kerron stewart"
``` | 16,154 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (wind VARCHAR, athlete VARCHAR)\n\n Question: What kind of Wind has an Athlete of kerron stewart?\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_69 (wind VARCHAR, result VARCHAR)
Question: What kind of Wind has a Result of 21.69?
Here is the SQLite query to answer to the question: What kind of Wind has... | Here is the SQLite query to answer the question: What kind of Wind has a Result of 21.69?:
```
SELECT wind FROM table_name_69 WHERE result = "21.69"
``` | 16,155 | [
{
"from": "human",
"value": " 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 (wind VARCHAR, result VARCHAR)\n\n Question: What kind of Wind has a Result of 21.69?\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_75 (result VARCHAR, athlete VARCHAR)
Question: Show the Result of inger miller?
Here is the SQLite query to answer to the question: Show the Result of inger m... | Here is the SQLite query to answer the question: Show the Result of inger miller?:
```
SELECT result FROM table_name_75 WHERE athlete = "inger miller"
``` | 16,156 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (result VARCHAR, athlete VARCHAR)\n\n Question: Show the Result of inger miller?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (byes INTEGER, losses VARCHAR, wins VARCHAR)
Question: How many byes for the team with more than 14 losses and more than 0 wins?
Here is the SQLite query t... | There seems to be a small error in your query regarding the data types of the columns. Since the `losses` column is of type `VARCHAR`, you may need to cast it to an integer in order to compare it numerically. Here's the corrected SQLite query to find the number of byes for the team with more than 14 losses and more tha... | 16,157 | [
{
"from": "human",
"value": " 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 (byes INTEGER, losses VARCHAR, wins VARCHAR)\n\n Question: How many byes for the team with more than 14 losses and m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (wins INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR)
Question: How many wins for the Caramut team with fewer than 11 losses and fewer than 2 b... | The SQLite query you provided has a couple of issues that need to be addressed for it to correctly answer the question. You should compare the numeric values of `losses` and `byes`, and also you should sum the wins instead of taking the maximum, as you want the total wins for the specified conditions. Here is the corre... | 16,158 | [
{
"from": "human",
"value": " 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 (wins INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR)\n\n Question: How many wins for the Caramut team ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (wins INTEGER, against VARCHAR, losses VARCHAR)
Question: How many wins for the team with more than 1282 against and fewer than 14 losses?
Here is the SQLi... | The provided SQL query contains a couple of issues with the aggregation and filtering logic. Specifically, to count the number of wins for the team meeting the criteria of having more than 1282 against and fewer than 14 losses, we need to use the correct field types and functions.
In your case, it seems you're wanting... | 16,159 | [
{
"from": "human",
"value": " 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 (wins INTEGER, against VARCHAR, losses VARCHAR)\n\n Question: How many wins for the team with more than 1282 against... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (wins INTEGER, byes INTEGER)
Question: How many wins for the team with fewer than 2 byes?
Here is the SQLite query to answer to the question: How many wins ... | Your provided query correctly calculates the average number of wins for teams with fewer than 2 byes. Here it is wrapped in a code block as you requested:
```
SELECT AVG(wins) FROM table_name_1 WHERE byes < 2;
```
If you need the total sum of wins instead of the average, you can use the following query:
```
SELECT ... | 16,160 | [
{
"from": "human",
"value": " 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 (wins INTEGER, byes INTEGER)\n\n Question: How many wins for the team with fewer than 2 byes?\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_15 (against INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR)
Question: How many against for the Moyston-Willaura team with 4 losses and fewer than ... | Here is the corrected SQLite query to answer the question regarding the Moyston-Willaura team with 4 losses and fewer than 2 byes:
```sql
SELECT COUNT(against) FROM table_name_15 WHERE losses = '4' AND byes < '2' AND mininera_dfl = 'moyston-willaura';
```
This query counts the number of records for the Moyston-Willau... | 16,161 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (against INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR)\n\n Question: How many against for the Moyston... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (player VARCHAR, venue VARCHAR)
Question: Who is the player of the match at canberra stadium?
Here is the SQLite query to answer to the question: Who is th... | Here's the SQLite query to answer the question about the player of the match at Canberra Stadium:
```
SELECT player FROM table_name_89 WHERE venue = "canberra stadium"
``` | 16,162 | [
{
"from": "human",
"value": " 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 (player VARCHAR, venue VARCHAR)\n\n Question: Who is the player of the match at canberra stadium?\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_25 (tries INTEGER, player VARCHAR)
Question: What is the average number of tries of player israel folau?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question regarding the average number of tries of player Israel Folau:
```
SELECT AVG(tries) FROM table_name_25 WHERE player = "israel folau"
``` | 16,163 | [
{
"from": "human",
"value": " 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 (tries INTEGER, player VARCHAR)\n\n Question: What is the average number of tries of player israel folau?\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_8 (round VARCHAR, player VARCHAR)
Question: What round is player phil graham in?
Here is the SQLite query to answer to the question: What round is player phil... | Here is the SQLite query to answer the question: What round is player phil graham in?:
```
SELECT round FROM table_name_8 WHERE player = "phil graham";
``` | 16,164 | [
{
"from": "human",
"value": " 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 VARCHAR, player VARCHAR)\n\n Question: What round is player phil graham in?\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_7 (opponent VARCHAR, venue VARCHAR)
Question: Who is the opponent of the match at cua stadium?
Here is the SQLite query to answer to the question: Who is the ... | Your SQLite query to find the opponent of the match at "cua stadium" is correct. Here it is wrapped in the required format:
```
SELECT opponent FROM table_name_7 WHERE venue = "cua stadium";
``` | 16,165 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (opponent VARCHAR, venue VARCHAR)\n\n Question: Who is the opponent of the match at cua stadium?\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_72 (opponent VARCHAR, player VARCHAR)
Question: Who is the opponent of player phil graham?
Here is the SQLite query to answer to the question: Who is the oppo... | Here is the SQLite query to answer the question of who is the opponent of player phil graham:
```
SELECT opponent FROM table_name_72 WHERE player = "phil graham";
``` | 16,166 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, player VARCHAR)\n\n Question: Who is the opponent of player phil graham?\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_59 (money___£__ VARCHAR, country VARCHAR, player VARCHAR)
Question: Can you tell me the Money (£) that has the Country of england, and the Player of malcolm ma... | Here is the SQLite query to answer the question regarding the money associated with the country of England and the player Malcolm Mackenzie:
```
SELECT money___£__ FROM table_name_59 WHERE country = "england" AND player = "malcolm mackenzie"
``` | 16,167 | [
{
"from": "human",
"value": " 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 (money___£__ VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: Can you tell me the Money (£) that has the Coun... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (year VARCHAR, nominee VARCHAR, category VARCHAR)
Question: Which Year has a Nominee of stephen sondheim, and a Category of the best original score?
Here i... | Here is the SQLite query to answer the question regarding the year with a nominee of Stephen Sondheim in the category of best original score:
```
SELECT year FROM table_name_90 WHERE nominee = "stephen sondheim" AND category = "best original score";
``` | 16,168 | [
{
"from": "human",
"value": " 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 (year VARCHAR, nominee VARCHAR, category VARCHAR)\n\n Question: Which Year has a Nominee of stephen sondheim, and a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (result VARCHAR, category VARCHAR)
Question: Which Result has a Category of the best costume design?
Here is the SQLite query to answer to the question: Whi... | Here is the SQLite query to answer the question:
```
SELECT result FROM table_name_3 WHERE category = "best costume design"
``` | 16,169 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (result VARCHAR, category VARCHAR)\n\n Question: Which Result has a Category of the best costume design?\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_73 (nominee VARCHAR, award_ceremony VARCHAR, category VARCHAR)
Question: Which Nominee has an Award Ceremony of tony award, and a Category of the best performa... | Here is the SQLite query to answer the question about the nominee with the specified award ceremony and category:
```
SELECT nominee FROM table_name_73 WHERE award_ceremony = "tony award" AND category = "best performance by a leading actor in a musical";
``` | 16,170 | [
{
"from": "human",
"value": " 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 (nominee VARCHAR, award_ceremony VARCHAR, category VARCHAR)\n\n Question: Which Nominee has an Award Ceremony of ton... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (solo_blocks INTEGER, assists VARCHAR, season VARCHAR, errors VARCHAR, kills VARCHAR)
Question: When there are more than 126 errors, more than 551 kills, an... | Here is the SQLite query wrapped in the appropriate code block:
```
SELECT SUM(solo_blocks) FROM table_name_24 WHERE errors > 126 AND kills > 551 AND season = "2007" AND assists > 40;
``` | 16,171 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (solo_blocks INTEGER, assists VARCHAR, season VARCHAR, errors VARCHAR, kills VARCHAR)\n\n Question: When there are m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (total_attempts INTEGER, percentage VARCHAR, service_aces VARCHAR)
Question: When there is less than 13 services aces with a percentage greater than 0.34900... | Your SQLite query is almost correct, but there is a small issue with the comparison of the `service_aces` column. Since `service_aces` is defined as a `VARCHAR`, you should convert it to an integer for proper numeric comparison. Here's the corrected query:
```sql
SELECT MIN(total_attempts)
FROM table_name_47
WHERE p... | 16,172 | [
{
"from": "human",
"value": " 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 (total_attempts INTEGER, percentage VARCHAR, service_aces VARCHAR)\n\n Question: When there is less than 13 services... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (assists INTEGER, total_attempts VARCHAR, percentage VARCHAR, solo_blocks VARCHAR)
Question: When the percentage is 0.34900000000000003 with more than 13 so... | It looks like there is a small error in your query regarding the condition for the `percentage` column. Based on your question, you want to find records where the percentage is exactly 0.34900000000000003, not less than that. Here's the corrected SQLite query:
```
SELECT MAX(assists)
FROM table_name_63
WHERE percent... | 16,173 | [
{
"from": "human",
"value": " 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 (assists INTEGER, total_attempts VARCHAR, percentage VARCHAR, solo_blocks VARCHAR)\n\n Question: When the percentage... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (Block INTEGER, assists VARCHAR, total_blocks VARCHAR)
Question: When assists is more than 32 and total blocks is more than 88, what is the total of block a... | Your provided SQLite query has an issue with the column names. Specifically, you are trying to sum the `Block` values but have referred to the output as `assists`. Additionally, `total_blocks` should match the column name as defined in the schema, which is `total_blocks`, not `total_blocks` as a VARCHAR type.
Here's t... | 16,174 | [
{
"from": "human",
"value": " 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 (Block INTEGER, assists VARCHAR, total_blocks VARCHAR)\n\n Question: When assists is more than 32 and total blocks 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 (against VARCHAR, draw VARCHAR, losses VARCHAR, matches VARCHAR)
Question: What is the total number of Against, when Losses is less than 52, when Matches is... | Here is the SQLite query to answer the question based on the provided schema:
```
SELECT COUNT(against) FROM table_name_66 WHERE losses < 52 AND matches > 4 AND draw < 2;
``` | 16,175 | [
{
"from": "human",
"value": " 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 (against VARCHAR, draw VARCHAR, losses VARCHAR, matches VARCHAR)\n\n Question: What is the total number of Against, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (against VARCHAR, draw INTEGER)
Question: What is the total number of Against, when Draw is greater than 48?
Here is the SQLite query to answer to the ques... | Your provided SQLite query is correct. It counts the total number of entries in the column "against" where the "draw" value is greater than 48. Here is the code block with the query:
```
SELECT COUNT(against) FROM table_name_12 WHERE draw > 48;
``` | 16,176 | [
{
"from": "human",
"value": " 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 (against VARCHAR, draw INTEGER)\n\n Question: What is the total number of Against, when Draw is greater than 48?\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_21 (losses INTEGER, wins VARCHAR, matches VARCHAR)
Question: What is the highest Losses, when Wins is "1", and when Matches is less than 2?
Here is the SQLite... | Here is the corrected SQLite query to answer the question regarding the highest losses when wins is "1" and matches is less than 2:
```
SELECT MAX(losses) FROM table_name_21 WHERE wins = '1' AND matches < '2'
``` | 16,177 | [
{
"from": "human",
"value": " 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 (losses INTEGER, wins VARCHAR, matches VARCHAR)\n\n Question: What is the highest Losses, when Wins is \"1\", and wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (against INTEGER, wins VARCHAR, matches VARCHAR)
Question: What is the highest Against, when Wins is greater than 2, and when Matches is less than 17?
Here... | The SQLite query you provided is almost correct, but note that if the columns `wins` and `matches` are stored as VARCHAR, you'll need to ensure that the filtering on those columns is done correctly, possibly by casting them to INTEGER for comparisons.
Here's the corrected version of the query:
```sql
SELECT MAX(again... | 16,178 | [
{
"from": "human",
"value": " 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 (against INTEGER, wins VARCHAR, matches VARCHAR)\n\n Question: What is the highest Against, when Wins is greater tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (matches INTEGER, against VARCHAR, wins VARCHAR)
Question: What is the lowest Matches, when Against is less than 7, and when Wins is greater than 1?
Here i... | Your provided SQLite query is almost correct, but it contains a minor issue with the data types for comparing the 'against' and 'wins' columns. Assuming 'against' is a VARCHAR type, you should use a proper comparison for numerical representation if the data allows it, and 'wins' should also be numeric for proper compar... | 16,179 | [
{
"from": "human",
"value": " 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 (matches INTEGER, against VARCHAR, wins VARCHAR)\n\n Question: What is the lowest Matches, when Against is less than... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR)
Question: What position did tomasz kiełbowicz play?
Here is the SQLite query to answer to the question: What position di... | Your SQLite query to find out what position Tomasz Kiełbowicz played is correct. Here it is wrapped in the requested format:
```
SELECT position FROM table_name_35 WHERE player = "tomasz kiełbowicz";
``` | 16,180 | [
{
"from": "human",
"value": " 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 (position VARCHAR, player VARCHAR)\n\n Question: What position did tomasz kiełbowicz play?\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_55 (_number_of_episodes INTEGER, mole VARCHAR)
Question: Which # of Episodes has a Mole of craig slike?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question: Which # of Episodes has a Mole of craig slike?:
```
SELECT _number_of_episodes FROM table_name_55 WHERE mole = "craig slike"
``` | 16,181 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (_number_of_episodes INTEGER, mole VARCHAR)\n\n Question: Which # of Episodes has a Mole of craig slike?\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_95 (host VARCHAR, _number_of_episodes INTEGER)
Question: Which host has more than 11 episodes?
Here is the SQLite query to answer to the question: Which host ... | Here is the SQLite query to answer the question: Which host has more than 11 episodes?:
```
SELECT host FROM table_name_95 WHERE _number_of_episodes > 11
``` | 16,182 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (host VARCHAR, _number_of_episodes INTEGER)\n\n Question: Which host has more than 11 episodes?\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_77 (season INTEGER, mole VARCHAR)
Question: Which Season has a Mole of frederique van der wal?
Here is the SQLite query to answer to the question: Which Seaso... | Here is the SQLite query to answer the question: Which Season has a Mole of frederique van der wal?:
```
SELECT season FROM table_name_77 WHERE mole = "frederique van der wal"
``` | 16,183 | [
{
"from": "human",
"value": " 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 (season INTEGER, mole VARCHAR)\n\n Question: Which Season has a Mole of frederique van der wal?\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_51 (res VARCHAR, time VARCHAR)
Question: What is Res., when Time is "1:09"?
Here is the SQLite query to answer to the question: What is Res., when Time is "1:... | Here is the SQLite query to answer the question: What is Res., when Time is "1:09"?:
```
SELECT res FROM table_name_51 WHERE time = "1:09"
``` | 16,184 | [
{
"from": "human",
"value": " 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 (res VARCHAR, time VARCHAR)\n\n Question: What is Res., when Time is \"1:09\"?\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_92 (res VARCHAR, round VARCHAR, event VARCHAR)
Question: What is Res., when Round is greater than 2, and when Event is "Midwest Cage Championships 25: Inferno"... | Here is the SQLite query to answer the question regarding the `Res.` when `Round` is greater than 2 and when `Event` is "Midwest Cage Championships 25: Inferno":
```sql
SELECT res FROM table_name_92 WHERE round > 2 AND event = "Midwest Cage Championships 25: Inferno";
``` | 16,185 | [
{
"from": "human",
"value": " 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 (res VARCHAR, round VARCHAR, event VARCHAR)\n\n Question: What is Res., when Round is greater than 2, and when Event... | |
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 VARCHAR, record VARCHAR, round VARCHAR, method VARCHAR)
Question: What is Time, when Round is "3", when Method is "Decision (unanimous)", and when Rec... | Here's the SQLite query you need, properly formatted:
```
SELECT time FROM table_name_45 WHERE round = "3" AND method = "Decision (unanimous)" AND record = "7-3";
``` | 16,186 | [
{
"from": "human",
"value": " 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 VARCHAR, record VARCHAR, round VARCHAR, method VARCHAR)\n\n Question: What is Time, when Round is \"3\", when ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (record VARCHAR, location VARCHAR, method VARCHAR)
Question: What is Record, when Location is "Des Moines, Iowa , United States", and when Method is "Submis... | Here is the SQLite query wrapped in code formatting:
```
SELECT record FROM table_name_31 WHERE location = "Des Moines, Iowa , United States" AND method = "Submission (arm-triangle choke)"
``` | 16,187 | [
{
"from": "human",
"value": " 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 (record VARCHAR, location VARCHAR, method VARCHAR)\n\n Question: What is Record, when Location is \"Des Moines, Iowa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (score VARCHAR, attendance VARCHAR)
Question: What is the score for the game with 213 attending?
Here is the SQLite query to answer to the question: What is... | Your SQLite query to find the score for the game with 213 attending is correct. Here it is wrapped in the requested format:
```
SELECT score FROM table_name_3 WHERE attendance = "213";
``` | 16,188 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (score VARCHAR, attendance VARCHAR)\n\n Question: What is the score for the game with 213 attending?\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_75 (away_team VARCHAR, home_team VARCHAR)
Question: What was the away team for the game in Slough Town?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the away team for the game in Slough Town:
```
SELECT away_team FROM table_name_75 WHERE home_team = "Slough Town";
``` | 16,189 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What was the away team for the game in Slough Town?\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_51 (home_team VARCHAR, away_team VARCHAR)
Question: Who was the home team that played against Armthorpe Welfare?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question: Who was the home team that played against Armthorpe Welfare?:
```
SELECT home_team FROM table_name_51 WHERE away_team = "Armthorpe Welfare";
``` | 16,190 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, away_team VARCHAR)\n\n Question: Who was the home team that played against Armthorpe Welfare?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (tie_no VARCHAR, away_team VARCHAR)
Question: What is the Tie no for the game with the away team Whyteleafe?
Here is the SQLite query to answer to the ques... | Your SQLite query is well-structured to retrieve the Tie number for the specified away team. Here it is wrapped with appropriate formatting:
```
SELECT tie_no FROM table_name_99 WHERE away_team = "Whyteleafe";
``` | 16,191 | [
{
"from": "human",
"value": " 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 (tie_no VARCHAR, away_team VARCHAR)\n\n Question: What is the Tie no for the game with the away team Whyteleafe?\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_46 (score VARCHAR, home_team VARCHAR)
Question: What is home team Maine Road's score?
Here is the SQLite query to answer to the question: What is home team Ma... | Here is the SQLite query to answer the question about the home team Maine Road's score:
```
SELECT score FROM table_name_46 WHERE home_team = "Maine Road"
``` | 16,192 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_46 (score VARCHAR, home_team VARCHAR)\n\n Question: What is home team Maine Road's score?\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_56 (year INTEGER, partnering VARCHAR, championship VARCHAR)
Question: What year was the US Open that had a partnering of Maikel Scheffers?
Here is the SQLite ... | The query you provided uses `SUM(year)`, which is likely not what you want since you are looking to retrieve the specific year of the US Open associated with a particular partnering. Instead, you should use `SELECT` to get the year directly. Here is the corrected query:
```
SELECT year FROM table_name_56 WHERE partner... | 16,193 | [
{
"from": "human",
"value": " 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 (year INTEGER, partnering VARCHAR, championship VARCHAR)\n\n Question: What year was the US Open that had a partneri... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR)
Question: What was the championship before 2012 that had Stephane Houdet Michael Jeremiasz ... | Here is the SQLite query to answer the question about the championship before 2012 that had Stephane Houdet and Michael Jeremiasz as opponents:
```
SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = "Stephane Houdet Michael Jeremiasz"
``` | 16,194 | [
{
"from": "human",
"value": " 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 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR)\n\n Question: What was the championship before 2012... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (score_in_final VARCHAR, opponents_in_final VARCHAR)
Question: What was the score when the Shingo Kunieda Satoshi Saida were the opponents?
Here is the SQL... | Here is the SQLite query to answer the question about the score when Shingo Kunieda and Satoshi Saida were the opponents:
```
SELECT score_in_final FROM table_name_84 WHERE opponents_in_final = "shingo kunieda satoshi saida"
``` | 16,195 | [
{
"from": "human",
"value": " 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 (score_in_final VARCHAR, opponents_in_final VARCHAR)\n\n Question: What was the score when the Shingo Kunieda Satosh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (year INTEGER, opponents_in_final VARCHAR)
Question: What year were the opponents Shingo Kunieda Satoshi Saida?
Here is the SQLite query to answer to the q... | Here is the SQLite query formatted correctly:
```sql
SELECT MIN(year) FROM table_name_22 WHERE opponents_in_final = "Shingo Kunieda Satoshi Saida";
``` | 16,196 | [
{
"from": "human",
"value": " 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 (year INTEGER, opponents_in_final VARCHAR)\n\n Question: What year were the opponents Shingo Kunieda Satoshi Saida?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (place VARCHAR, score VARCHAR)
Question: In what place is the golfer with a score of 68-69-73-70=280?
Here is the SQLite query to answer to the question: I... | The query you provided contains an error in the way it checks for the score. Instead of performing calculations in the WHERE clause, you should just check if the score matches the total value of 280. Also, the score should be treated properly since it's stored as a VARCHAR; it needs to be compared as a string.
Here's ... | 16,197 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (place VARCHAR, score VARCHAR)\n\n Question: In what place is the golfer with a score of 68-69-73-70=280?\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_52 (to_par VARCHAR, money___£__ VARCHAR, score VARCHAR)
Question: What is the to par of the golfer with winnings of 40,850 and a score of 72-74-70-70=286?
Her... | It looks like there's an issue with the conditional in the WHERE clause of your query. The subtraction operation you wrote is incorrectly placed between the comparison. Instead of performing the calculation in the WHERE clause, you should be checking for the string representation of the score directly.
Here's the corr... | 16,198 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, money___£__ VARCHAR, score VARCHAR)\n\n Question: What is the to par of the golfer with winnings of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (to_par VARCHAR, money___£__ VARCHAR)
Question: What is the to par for the player with winnings of 49,500?
Here is the SQLite query to answer to the questi... | Your SQLite query looks correct for retrieving the "to par" value for a player with winnings of 49,500. Here it is, wrapped in the specified format:
```
SELECT to_par FROM table_name_74 WHERE money___£__ = "49,500"
``` | 16,199 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, money___£__ VARCHAR)\n\n Question: What is the to par for the player with winnings of 49,500?\n\nHe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.