output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT SUM("occ_championships") FROM "by_school" WHERE "school"='central crossing';
## Task Generate a SQL query to answer the following question: `How many times have Central Crossing won the OCC Championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_school" ( "school" text, "years_of_participation" text, "occ_championships" real, "last_occ_championship" text, "last_outright_occ_championship" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times have Central Crossing won the OCC Championship?`: ```sql
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "opponent"='michael chavez';
## Task Generate a SQL query to answer the following question: `How many rounds is the fight against Michael Chavez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds is the fight against Michael Chavez?`: ```sql
SELECT "date" FROM "runners_up" WHERE "partner"='pere riba';
## Task Generate a SQL query to answer the following question: `What date was the match where Daniel Gimeno-Traver's partner was pere riba?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "runners_up" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the match where Daniel Gimeno-Traver's partner was pere riba?`: ```sql
SELECT "to_club" FROM "reserves_academy" WHERE "player"='ashley grimes';
## Task Generate a SQL query to answer the following question: `Ashley Grimes had what to club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Ashley Grimes had what to club?`: ```sql
SELECT "player" FROM "reserves_academy" WHERE "transfer_fee"='released' AND "pos"='df';
## Task Generate a SQL query to answer the following question: `Who had a transfer fee of released and played the position of DF?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had a transfer fee of released and played the position of DF?`: ```sql
SELECT "exit_date" FROM "reserves_academy" WHERE "transfer_fee"='released' AND "player"='kiatprawut saiwaeo';
## Task Generate a SQL query to answer the following question: `When was the exit date KiatPrawut Saiwaeo who had a transfer fee of released?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the exit date KiatPrawut Saiwaeo who had a transfer fee of released?`: ```sql
SELECT "exit_date" FROM "reserves_academy" WHERE "to_club"='doncaster rovers';
## Task Generate a SQL query to answer the following question: `What was the date that a player went to the club Doncaster Rovers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date that a player went to the club Doncaster Rovers?`: ```sql
SELECT "pos" FROM "reserves_academy" WHERE "to_club"='released' AND "player"='teerasil dangda';
## Task Generate a SQL query to answer the following question: `Teerasil Dangda who had a to club of released plays what position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reserves_academy" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Teerasil Dangda who had a to club of released plays what position?`: ```sql
SELECT AVG("points") FROM "relegation_round" WHERE "played">10;
## Task Generate a SQL query to answer the following question: `What was the average points for someone who has played more than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average points for someone who has played more than 10?`: ```sql
SELECT "l2_cache" FROM "250_nm" WHERE "model_number"='pentium ii 350';
## Task Generate a SQL query to answer the following question: `What is L2 Cache, when Model Number is Pentium II 350?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); ### SQL Given the database schema, here is the SQL query that answers `What is L2 Cache, when Model Number is Pentium II 350?`: ```sql
SELECT "mult" FROM "250_nm" WHERE "model_number"='pentium ii 450';
## Task Generate a SQL query to answer the following question: `What is Mult, when Model Number is Pentium II 450?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Mult, when Model Number is Pentium II 450?`: ```sql
SELECT "frequency" FROM "250_nm" WHERE "model_number"='pentium ii 400';
## Task Generate a SQL query to answer the following question: `What is Frequency, when Model Number is Pentium II 400?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Frequency, when Model Number is Pentium II 400?`: ```sql
SELECT "socket" FROM "250_nm" WHERE "voltage"='2.0v' AND "model_number"='pentium ii 333';
## Task Generate a SQL query to answer the following question: `What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333?`: ```sql
SELECT "model_number" FROM "250_nm" WHERE "voltage"='2.0v' AND "frequency"='350 mhz';
## Task Generate a SQL query to answer the following question: `What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "250_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?`: ```sql
SELECT SUM("attendance") FROM "season_schedule" WHERE "score"='80-94';
## Task Generate a SQL query to answer the following question: `How many attended during the game with a score of 80-94?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many attended during the game with a score of 80-94?`: ```sql
SELECT "u_s_rap" FROM "singles" WHERE "year"=2000 AND "u_s"='105';
## Task Generate a SQL query to answer the following question: `What is the U.S. rap ranking in 2000 of the U.S. 105 single?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "u_s" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the U.S. rap ranking in 2000 of the U.S. 105 single?`: ```sql
SELECT "u_s_rap" FROM "singles" WHERE "u_s_r_b"='23';
## Task Generate a SQL query to answer the following question: `What is the U.S. rap rank for the song with a U.S. R&B 23 rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "u_s" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the U.S. rap rank for the song with a U.S. R&B 23 rank?`: ```sql
SELECT "u_s_r_b" FROM "singles" WHERE "year"=2003;
## Task Generate a SQL query to answer the following question: `What is the U.S. R&B rank in 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "u_s" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the U.S. R&B rank in 2003?`: ```sql
SELECT "record" FROM "schedule" WHERE "score"='28-43';
## Task Generate a SQL query to answer the following question: `For the game ending with a score of 28-43, what is the listed as the final record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `For the game ending with a score of 28-43, what is the listed as the final record?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "record"='0-5';
## Task Generate a SQL query to answer the following question: `For the game showing a final record of 0-5, what was the attendance level?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `For the game showing a final record of 0-5, what was the attendance level?`: ```sql
SELECT "score" FROM "schedule" WHERE "opponent"='at los angeles rams';
## Task Generate a SQL query to answer the following question: `For the game where the opponent is listed as At Los Angeles Rams, what was the final score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `For the game where the opponent is listed as At Los Angeles Rams, what was the final score?`: ```sql
SELECT "score" FROM "schedule" WHERE "attendance">'20,837' AND "date"='august 25';
## Task Generate a SQL query to answer the following question: `For the game played on August 25, with attendance at more than 20,837 people, what was the final score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `For the game played on August 25, with attendance at more than 20,837 people, what was the final score?`: ```sql
SELECT "result" FROM "schedule" WHERE "record"='0-1';
## Task Generate a SQL query to answer the following question: `What was the result for the game with final record listed as 0-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "location" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for the game with final record listed as 0-1?`: ```sql
SELECT "60m_h" FROM "summary" WHERE "country"='russia' AND "800m"=883;
## Task Generate a SQL query to answer the following question: `What is the 60mH that has a Country of russia, and a 800m of 883?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "name" text, "country" text, "total" text, "60m_h" real, "800m" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 60mH that has a Country of russia, and a 800m of 883?`: ```sql
SELECT "total" FROM "summary" WHERE "60m_h"=1073;
## Task Generate a SQL query to answer the following question: `What is the Total that has a 60mH of 1073?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "name" text, "country" text, "total" text, "60m_h" real, "800m" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Total that has a 60mH of 1073?`: ```sql
SELECT "name" FROM "summary" WHERE "60m_h"<1002 AND "800m"<985 AND "country"='lithuania';
## Task Generate a SQL query to answer the following question: `What is the Name that has a 60mH littler than 1002, and a 800m littler than 985, and a Country of lithuania?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "name" text, "country" text, "total" text, "60m_h" real, "800m" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Name that has a 60mH littler than 1002, and a 800m littler than 985, and a Country of lithuania?`: ```sql
SELECT "sets" FROM "2012_13_season_standings" WHERE "points"<1418 AND "sets"<41 AND "team"='ushuaïa ibiza voley';
## Task Generate a SQL query to answer the following question: `What is the Sets- for Team ushuaïa ibiza voley when the Points- were less than 1418 and the Sets+ were less than 41?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_13_season_standings" ( "team" text, "sets" real, "sets" real, "points" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Sets- for Team ushuaïa ibiza voley when the Points- were less than 1418 and the Sets+ were less than 41?`: ```sql
SELECT SUM("sets") FROM "2012_13_season_standings" WHERE "sets"<21 AND "team"='unicaja almería' AND "points"<1497;
## Task Generate a SQL query to answer the following question: `What is the Sets+ for Team unicaja almería where the Sets- were less than 21 and the Points+ were less than 1497?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_13_season_standings" ( "team" text, "sets" real, "sets" real, "points" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Sets+ for Team unicaja almería where the Sets- were less than 21 and the Points+ were less than 1497?`: ```sql
SELECT COUNT("sets") FROM "2012_13_season_standings" WHERE "points"=1435 AND "points"<1228;
## Task Generate a SQL query to answer the following question: `What is the total number of Sets+ where the Points- are 1435 and the Points+ are less than 1228?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_13_season_standings" ( "team" text, "sets" real, "sets" real, "points" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Sets+ where the Points- are 1435 and the Points+ are less than 1228?`: ```sql
SELECT "player" FROM "draft_picks" WHERE "round"<3 AND "position"='(g)';
## Task Generate a SQL query to answer the following question: `Which player has fewer than 3 rounds and the position of (g)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player has fewer than 3 rounds and the position of (g)?`: ```sql
SELECT "round" FROM "draft_picks" WHERE "position"='(d)' AND "player"='colby robak';
## Task Generate a SQL query to answer the following question: `How many rounds does Colby Robak have with a position of (d)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds does Colby Robak have with a position of (d)?`: ```sql
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='matthew bartkowski';
## Task Generate a SQL query to answer the following question: `Which College/Junior/Club Team (league) does Matthew Bartkowski play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which College/Junior/Club Team (league) does Matthew Bartkowski play for?`: ```sql
SELECT "date" FROM "season_schedule" WHERE "record"='12-9';
## Task Generate a SQL query to answer the following question: `What date was the game when the liberty had a record of 12-9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the game when the liberty had a record of 12-9?`: ```sql
SELECT "record" FROM "season_schedule" WHERE "score"='105-72';
## Task Generate a SQL query to answer the following question: `What was the record for the game that had a score of 105-72?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record for the game that had a score of 105-72?`: ```sql
SELECT "date" FROM "season_schedule" WHERE "record"='4-4';
## Task Generate a SQL query to answer the following question: `What was the date of the game where the record was 4-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game where the record was 4-4?`: ```sql
SELECT "away_team" FROM "fifth_round_proper" WHERE "date"='10 february 1951' AND "home_team"='manchester united';
## Task Generate a SQL query to answer the following question: `Who was the away team when Manchester United played at home on 10 February 1951?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team when Manchester United played at home on 10 February 1951?`: ```sql
SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='huddersfield town';
## Task Generate a SQL query to answer the following question: `Which tie did Huddersfield Town play as an away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tie did Huddersfield Town play as an away team?`: ```sql
SELECT "player" FROM "final_round" WHERE "money">'19,009' AND "score"='75-73-68-65=281';
## Task Generate a SQL query to answer the following question: `What Player had a Score of 75-73-68-65=281 and more than 19,009 in Money?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What Player had a Score of 75-73-68-65=281 and more than 19,009 in Money?`: ```sql
SELECT "country" FROM "final_round" WHERE "place"='t6' AND "player"='ben crenshaw';
## Task Generate a SQL query to answer the following question: `What is the Country of T6 Place Player Ben Crenshaw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Country of T6 Place Player Ben Crenshaw?`: ```sql
SELECT MAX("money") FROM "final_round" WHERE "to_par"='+3' AND "score"='76-69-69-69=283';
## Task Generate a SQL query to answer the following question: `What is the Money of the Player with a To par of +3 and Score of 76-69-69-69=283?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Money of the Player with a To par of +3 and Score of 76-69-69-69=283?`: ```sql
SELECT "score" FROM "schedule_and_results" WHERE "january"<22 AND "record"='30-7-7';
## Task Generate a SQL query to answer the following question: `What is the score of the game before January 22 with a 30-7-7 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the game before January 22 with a 30-7-7 record?`: ```sql
SELECT SUM("game") FROM "schedule_and_results" WHERE "january"<19 AND "record"='27-6-6';
## Task Generate a SQL query to answer the following question: `What is the sum of the games before January 19 with a 27-6-6 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the games before January 19 with a 27-6-6 record?`: ```sql
SELECT "frequency" FROM "models" WHERE "voltage"='3.3 v';
## Task Generate a SQL query to answer the following question: `What is the Frequency, when the Voltage is 3.3 V?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models" ( "model_number" text, "frequency" text, "l1_cache" text, "mult" real, "voltage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Frequency, when the Voltage is 3.3 V?`: ```sql
SELECT "l1_cache" FROM "models" WHERE "model_number"='x5-133 ady';
## Task Generate a SQL query to answer the following question: `What is the L1 Cache, when the Model Number is X5-133 ADY?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models" ( "model_number" text, "frequency" text, "l1_cache" text, "mult" real, "voltage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the L1 Cache, when the Model Number is X5-133 ADY?`: ```sql
SELECT "model_number" FROM "models" WHERE "voltage"='3.45 v' AND "frequency"='133 mhz';
## Task Generate a SQL query to answer the following question: `What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MHZ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models" ( "model_number" text, "frequency" text, "l1_cache" text, "mult" real, "voltage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MHZ?`: ```sql
SELECT "nationality" FROM "summary_of_raiding_history" WHERE "ship"='aracataca';
## Task Generate a SQL query to answer the following question: `What is the Nationality of the Aracataca Ship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship" text, "nationality" text, "tonnage" real, "fate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Nationality of the Aracataca Ship?`: ```sql
SELECT "saka_era" FROM "comparative_table_showing_corresponding_" WHERE "months_in_malayalam_era"='medam';
## Task Generate a SQL query to answer the following question: `WHAT IS THE SAKA ERA WITH MONTHS IN MEDAM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE SAKA ERA WITH MONTHS IN MEDAM?`: ```sql
SELECT "sign_of_zodiac" FROM "comparative_table_showing_corresponding_" WHERE "in_malayalam"='മീനം';
## Task Generate a SQL query to answer the following question: `WHAT IS THE SIGN OF ZODIAC OF മീനം?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE SIGN OF ZODIAC OF മീനം?`: ```sql
SELECT "saka_era" FROM "comparative_table_showing_corresponding_" WHERE "sign_of_zodiac"='virgo';
## Task Generate a SQL query to answer the following question: `WHAT IS THE SAKA ERA OF VIRGO?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE SAKA ERA OF VIRGO?`: ```sql
SELECT "gregorian_calendar" FROM "comparative_table_showing_corresponding_" WHERE "sign_of_zodiac"='aquarius';
## Task Generate a SQL query to answer the following question: `WHAT IS THE GREGORIAN CALENDAR FOR AQUARIUS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE GREGORIAN CALENDAR FOR AQUARIUS?`: ```sql
SELECT "in_malayalam" FROM "comparative_table_showing_corresponding_" WHERE "saka_era"='kartika–agrahayana';
## Task Generate a SQL query to answer the following question: `WHAT IS THE IN MALAYALAM WITH kartika–agrahayana?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE IN MALAYALAM WITH kartika–agrahayana?`: ```sql
SELECT "airport" FROM "destinations" WHERE "iata"='tbj';
## Task Generate a SQL query to answer the following question: `What is the airport when the iata is tbj?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the airport when the iata is tbj?`: ```sql
SELECT "iata" FROM "destinations" WHERE "airport"='malta international airport';
## Task Generate a SQL query to answer the following question: `what is the iata for malta international airport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the iata for malta international airport?`: ```sql
SELECT "airport" FROM "destinations" WHERE "country"='tunisia' AND "icao"='dtaa';
## Task Generate a SQL query to answer the following question: `what is the airport for the country tunisia with the icao dtaa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the airport for the country tunisia with the icao dtaa?`: ```sql
SELECT "city" FROM "destinations" WHERE "country"='libya' AND "iata"='ben';
## Task Generate a SQL query to answer the following question: `what is the city when the country is libya and the iata is ben?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the city when the country is libya and the iata is ben?`: ```sql
SELECT "country" FROM "destinations" WHERE "city"='gafsa';
## Task Generate a SQL query to answer the following question: `what is the country when the city is gafsa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the country when the city is gafsa?`: ```sql
SELECT "iata" FROM "destinations" WHERE "city"='tripoli';
## Task Generate a SQL query to answer the following question: `what is the iata when the city is tripoli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the iata when the city is tripoli?`: ```sql
SELECT "2nd_round" FROM "round_of_16" WHERE "team_2"='red star (d1)';
## Task Generate a SQL query to answer the following question: `Who is the 2nd round opponent when Team 2 is Red Star (D1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the 2nd round opponent when Team 2 is Red Star (D1)?`: ```sql
SELECT "score" FROM "round_of_16" WHERE "team_2"='usl dunkerque (d2)';
## Task Generate a SQL query to answer the following question: `When Team 2 was USL Dunkerque (D2), what was the score` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `When Team 2 was USL Dunkerque (D2), what was the score`: ```sql
SELECT "team_1" FROM "round_of_16" WHERE "team_2"='red star (d1)';
## Task Generate a SQL query to answer the following question: `What was the team 1 when Red Star (D1) was team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the team 1 when Red Star (D1) was team 2?`: ```sql
SELECT "home_team" FROM "sixth_round_proper" WHERE "tie_no"='4';
## Task Generate a SQL query to answer the following question: `Which team has home game with tie of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team has home game with tie of 4?`: ```sql
SELECT "score" FROM "sixth_round_proper" WHERE "tie_no"='4';
## Task Generate a SQL query to answer the following question: `what is score of a team with tie of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `what is score of a team with tie of 4?`: ```sql
SELECT "score" FROM "sixth_round_proper" WHERE "attendance"='39,592';
## Task Generate a SQL query to answer the following question: `What is the score of the game with 39,592 attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the game with 39,592 attendance?`: ```sql
SELECT "attendance" FROM "sixth_round_proper" WHERE "tie_no"='4';
## Task Generate a SQL query to answer the following question: `How many attended the game when the score was tie at 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `How many attended the game when the score was tie at 4?`: ```sql
SELECT "player" FROM "nfl_draft" WHERE "position"='defensive back' AND "round">3;
## Task Generate a SQL query to answer the following question: `Which player was defensive back after round 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player was defensive back after round 3?`: ```sql
SELECT "pick" FROM "nfl_draft" WHERE "round">2 AND "player"='bill gramatica';
## Task Generate a SQL query to answer the following question: `What was the pick for Bill Gramatica after round 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the pick for Bill Gramatica after round 2?`: ```sql
SELECT "record" FROM "regular_season" WHERE "date"='june 29';
## Task Generate a SQL query to answer the following question: `What was the record on june 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record on june 29?`: ```sql
SELECT "high_points" FROM "regular_season" WHERE "date"='june 20';
## Task Generate a SQL query to answer the following question: `What were the high points on june 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the high points on june 20?`: ```sql
SELECT "record" FROM "regular_season" WHERE "location_attendance"='palace of auburn hills 8,108';
## Task Generate a SQL query to answer the following question: `Which Record has a Location/Attendance of palace of auburn hills 8,108?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has a Location/Attendance of palace of auburn hills 8,108?`: ```sql
SELECT MIN("game") FROM "regular_season" WHERE "record"='11-4';
## Task Generate a SQL query to answer the following question: `Which Game is the lowest one that has a Record of 11-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Game is the lowest one that has a Record of 11-4?`: ```sql
SELECT "date" FROM "regular_season" WHERE "location_attendance"='verizon center 7,587';
## Task Generate a SQL query to answer the following question: `Which Date has a Location/Attendance of verizon center 7,587?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Location/Attendance of verizon center 7,587?`: ```sql
SELECT "high_rebounds" FROM "regular_season" WHERE "high_points"='douglas (23)';
## Task Generate a SQL query to answer the following question: `Which High rebounds has a High points of douglas (23)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which High rebounds has a High points of douglas (23)?`: ```sql
SELECT "score" FROM "regular_season" WHERE "opponent"='seattle';
## Task Generate a SQL query to answer the following question: `Which Score has an Opponent of seattle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has an Opponent of seattle?`: ```sql
SELECT "record" FROM "regular_season" WHERE "high_points"='hoffman (16)';
## Task Generate a SQL query to answer the following question: `Which Record has a High points of hoffman (16)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has a High points of hoffman (16)?`: ```sql
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "record"='5-3 (1)';
## Task Generate a SQL query to answer the following question: `Which round has a record of 5-3 (1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round has a record of 5-3 (1)?`: ```sql
SELECT "djurg_rden_scorers" FROM "svenska_cupen_2004" WHERE "venue"='idrottsparken';
## Task Generate a SQL query to answer the following question: `Who were the Djurgarden scorers when the venue was Idrottsparken?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "svenska_cupen_2004" ( "date" text, "venue" text, "opponents" text, "score" text, "comp" text, "djurg_rden_scorers" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the Djurgarden scorers when the venue was Idrottsparken?`: ```sql
SELECT "series" FROM "nascar_sponsorship" WHERE "team"='gunbroker racing';
## Task Generate a SQL query to answer the following question: `what is the series when the team is gunbroker racing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the series when the team is gunbroker racing?`: ```sql
SELECT "team" FROM "nascar_sponsorship" WHERE "make"='dodge' AND "year">2008;
## Task Generate a SQL query to answer the following question: `what is the team when the make is dodge and the year is after 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the team when the make is dodge and the year is after 2008?`: ```sql
SELECT "make" FROM "nascar_sponsorship" WHERE "year"=2008;
## Task Generate a SQL query to answer the following question: `what is the make for the year 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the make for the year 2008?`: ```sql
SELECT SUM("year") FROM "nascar_sponsorship" WHERE "driver"='kevin lepage';
## Task Generate a SQL query to answer the following question: `what is the year when the driver was kevin lepage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the year when the driver was kevin lepage?`: ```sql
SELECT "team" FROM "nascar_sponsorship" WHERE "schedule"='limited' AND "year"<2007 AND "driver"='jason white';
## Task Generate a SQL query to answer the following question: `what is the team when the schedule is limited, year is earlier than 2007 and the driver is jason white?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sponsorship" ( "year" real, "series" text, "make" text, "driver" text, "team" text, "schedule" text, "role" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the team when the schedule is limited, year is earlier than 2007 and the driver is jason white?`: ```sql
SELECT MIN("rank") FROM "points" WHERE "games"=37 AND "points">613;
## Task Generate a SQL query to answer the following question: `Which rank is the lowest with 37 games and more than 613 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which rank is the lowest with 37 games and more than 613 points?`: ```sql
SELECT MAX("rank") FROM "points" WHERE "team"='grupo capitol valladolid' AND "games">34;
## Task Generate a SQL query to answer the following question: `What is Grupo Capitol Valladolid's highest rank with more than 34 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Grupo Capitol Valladolid's highest rank with more than 34 games?`: ```sql
SELECT COUNT("points") FROM "points" WHERE "rank"=5 AND "games">34;
## Task Generate a SQL query to answer the following question: `How many points are there for rank 5 with more than 34 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points are there for rank 5 with more than 34 games?`: ```sql
SELECT "location" FROM "completed_cable_stayed_bridges" WHERE "name"='kap shui mun bridge';
## Task Generate a SQL query to answer the following question: `Where is the kap shui mun bridge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "completed_cable_stayed_bridges" ( "name" text, "location" text, "country" text, "longest_span" text, "comp" real, "pylons" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the kap shui mun bridge?`: ```sql
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2013"='2r' AND "2010"='1r';
## Task Generate a SQL query to answer the following question: `What tournament shows 2013 as 2r, and a 2010 as 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament shows 2013 as 2r, and a 2010 as 1r?`: ```sql
SELECT "2013" FROM "singles_performance_timeline" WHERE "2008"='1r';
## Task Generate a SQL query to answer the following question: `What shows for 2013 when the 2008 is 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for 2013 when the 2008 is 1r?`: ```sql
SELECT "2011" FROM "singles_performance_timeline" WHERE "2012"='q1' AND "2010"='4r';
## Task Generate a SQL query to answer the following question: `What shows for 2011 when 2012 is q1, and a 2010 is 4r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for 2011 when 2012 is q1, and a 2010 is 4r?`: ```sql
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2010"='1r' AND "2008"='1r';
## Task Generate a SQL query to answer the following question: `What tournament has a 2010 of 1r, and a 2008 of 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament has a 2010 of 1r, and a 2008 of 1r?`: ```sql
SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='french open';
## Task Generate a SQL query to answer the following question: `What shows for 2011 at the French open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for 2011 at the French open?`: ```sql
SELECT "2013" FROM "singles_performance_timeline" WHERE "2012"='2r';
## Task Generate a SQL query to answer the following question: `What shows for 2013 when 2012 is 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for 2013 when 2012 is 2r?`: ```sql
SELECT COUNT("south_asians_2011") FROM "population" WHERE "province"='quebec' AND "south_asians_2001"<'59,510';
## Task Generate a SQL query to answer the following question: `How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "province" text, "south_asians_2001" real, "pct_2001" text, "south_asians_2011" real, "pct_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?`: ```sql
SELECT "province" FROM "population" WHERE "south_asians_2001"<190 AND "south_asians_2011"=115;
## Task Generate a SQL query to answer the following question: `Which province had fewer than 190 South Asians in 2001 and 115 South Asians in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "province" text, "south_asians_2001" real, "pct_2001" text, "south_asians_2011" real, "pct_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `Which province had fewer than 190 South Asians in 2001 and 115 South Asians in 2011?`: ```sql
SELECT "pct_2001" FROM "population" WHERE "south_asians_2001">115 AND "south_asians_2011">'12,620' AND "province"='nova scotia';
## Task Generate a SQL query to answer the following question: `What % of South Asians were in Nova Scotia in 2001 with 115 and 2011 with 12,620?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "province" text, "south_asians_2001" real, "pct_2001" text, "south_asians_2011" real, "pct_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What % of South Asians were in Nova Scotia in 2001 with 115 and 2011 with 12,620?`: ```sql
SELECT AVG("south_asians_2001") FROM "population" WHERE "province"='alberta' AND "south_asians_2011">'159,055';
## Task Generate a SQL query to answer the following question: `How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "province" text, "south_asians_2001" real, "pct_2001" text, "south_asians_2011" real, "pct_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055?`: ```sql
SELECT "result" FROM "achievements" WHERE "extra"='heptathlon' AND "venue"='götzis , austria';
## Task Generate a SQL query to answer the following question: `What is Result, when Extra is "Heptathlon", and when Venue is "Götzis , Austria"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Result, when Extra is "Heptathlon", and when Venue is "Götzis , Austria"?`: ```sql
SELECT COUNT("year") FROM "achievements" WHERE "tournament"='world championships';
## Task Generate a SQL query to answer the following question: `What is the total number of Year(s), when Tournament is "World Championships"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Year(s), when Tournament is "World Championships"?`: ```sql
SELECT "venue" FROM "achievements" WHERE "year"=2005 AND "result"='8th';
## Task Generate a SQL query to answer the following question: `What is Venue, when Year is 2005, and when Result is 8th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Venue, when Year is 2005, and when Result is 8th?`: ```sql
SELECT "tournament" FROM "achievements" WHERE "result"='18th';
## Task Generate a SQL query to answer the following question: `What is Tournament, when Result is 18th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Tournament, when Result is 18th?`: ```sql
SELECT "venue" FROM "achievements" WHERE "year">2003 AND "tournament"='hypo-meeting';
## Task Generate a SQL query to answer the following question: `What is Venue, when Year is after 2003, and when Tournament is "Hypo-Meeting"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Venue, when Year is after 2003, and when Tournament is "Hypo-Meeting"?`: ```sql