output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MIN("rank") FROM "heat_2" WHERE "name"='carmelita jeter' AND "time"<11.08;
## Task Generate a SQL query to answer the following question: `Name the lowest Rank of carmelita jeter with a Time smaller than 11.08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the lowest Rank of carmelita jeter with a Time smaller than 11.08?`: ```sql
SELECT COUNT("draw") FROM "results" WHERE "points"=98;
## Task Generate a SQL query to answer the following question: `When the points are 98 what is the draw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `When the points are 98 what is the draw?`: ```sql
SELECT "total_time_in_office" FROM "rank_by_time_in_office" WHERE "rank"<18 AND "premier"='joh bjelke-petersen';
## Task Generate a SQL query to answer the following question: `What is the TOTAL Time in Office with a rank smaller than 18, and premier is Joh Bjelke-Petersen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the TOTAL Time in Office with a rank smaller than 18, and premier is Joh Bjelke-Petersen?`: ```sql
SELECT "assumed_office" FROM "rank_by_time_in_office" WHERE "total_time_in_office"='5years, 316days';
## Task Generate a SQL query to answer the following question: `What is the assumed Office date when the TOTAL Time in Office is 5years, 316days?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the assumed Office date when the TOTAL Time in Office is 5years, 316days?`: ```sql
SELECT "akakios_kakiasvilis_gre" FROM "records" WHERE "188kg"='187kg';
## Task Generate a SQL query to answer the following question: `What Akakios Kakiasvilis (GRE) is 187kg the 188kg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "snatch" text, "akakios_kakiasvilis_gre" text, "188kg" text, "athens_greece" text ); ### SQL Given the database schema, here is the SQL query that answers `What Akakios Kakiasvilis (GRE) is 187kg the 188kg?`: ```sql
SELECT "world_record" FROM "records" WHERE "188kg"='187kg';
## Task Generate a SQL query to answer the following question: `What world record has the 188kg as 187kg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "snatch" text, "akakios_kakiasvilis_gre" text, "188kg" text, "athens_greece" text ); ### SQL Given the database schema, here is the SQL query that answers `What world record has the 188kg as 187kg?`: ```sql
SELECT "188kg" FROM "records" WHERE "world_record"='clean & jerk';
## Task Generate a SQL query to answer the following question: `For what 188kg is the world record clean & jerk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "snatch" text, "akakios_kakiasvilis_gre" text, "188kg" text, "athens_greece" text ); ### SQL Given the database schema, here is the SQL query that answers `For what 188kg is the world record clean & jerk?`: ```sql
SELECT "year" FROM "singles_16_4_titles_12_runner_ups" WHERE "opponent_in_the_final"='brenda schultz-mccarthy' AND "score"='6–7(5), 2–6';
## Task Generate a SQL query to answer the following question: `What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_16_4_titles_12_runner_ups" ( "outcome" text, "year" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy?`: ```sql
SELECT "year" FROM "singles_16_4_titles_12_runner_ups" WHERE "score"='4–6, 7–6, 7–5';
## Task Generate a SQL query to answer the following question: `What year had a score of 4–6, 7–6, 7–5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_16_4_titles_12_runner_ups" ( "outcome" text, "year" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had a score of 4–6, 7–6, 7–5?`: ```sql
SELECT "away_team" FROM "a_b_second_round" WHERE "home_team"='citizen team a';
## Task Generate a SQL query to answer the following question: `Who was the away team for the match with a home team of Citizen Team A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a_b_second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team for the match with a home team of Citizen Team A?`: ```sql
SELECT "score" FROM "a_b_second_round" WHERE "home_team"='citizen team a';
## Task Generate a SQL query to answer the following question: `What was the score for the match with a home team of Citizen Team A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a_b_second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for the match with a home team of Citizen Team A?`: ```sql
SELECT "home_team" FROM "a_b_second_round" WHERE "away_team"='convoy sun hei team b';
## Task Generate a SQL query to answer the following question: `Who was the home team in the match that had an away team of Convoy Sun Hei Team B?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a_b_second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team in the match that had an away team of Convoy Sun Hei Team B?`: ```sql
SELECT "time" FROM "a_b_second_round" WHERE "away_team"='happy valley team b';
## Task Generate a SQL query to answer the following question: `What time did the match with an away team of Happy Valley Team B start?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a_b_second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `What time did the match with an away team of Happy Valley Team B start?`: ```sql
SELECT "2nd_leg" FROM "first_qualifying_round" WHERE "team_num2"='sumykhimprom';
## Task Generate a SQL query to answer the following question: `What is the 2nd leg when second team is Sumykhimprom?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2nd leg when second team is Sumykhimprom?`: ```sql
SELECT "agg" FROM "first_qualifying_round" WHERE "2nd_leg"='58-75';
## Task Generate a SQL query to answer the following question: `What is the agg when the seconf leg is 58-75?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the agg when the seconf leg is 58-75?`: ```sql
SELECT "team_num1" FROM "first_qualifying_round" WHERE "2nd_leg"='100-113';
## Task Generate a SQL query to answer the following question: `What is the first team when the 2nd leg is 100-113?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first team when the 2nd leg is 100-113?`: ```sql
SELECT "team_num1" FROM "first_qualifying_round" WHERE "1st_leg"='92-82';
## Task Generate a SQL query to answer the following question: `What is team 1 when the 1st leg is 92-82?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is team 1 when the 1st leg is 92-82?`: ```sql
SELECT "team_num1" FROM "first_qualifying_round" WHERE "2nd_leg"='64-97';
## Task Generate a SQL query to answer the following question: `What is team number 1 when then 2nd leg is 64-97?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is team number 1 when then 2nd leg is 64-97?`: ```sql
SELECT "1st_leg" FROM "first_qualifying_round" WHERE "team_num1"='csu sibiu';
## Task Generate a SQL query to answer the following question: `What is the 1st leg when team number 1 is CSU SIBIU?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st leg when team number 1 is CSU SIBIU?`: ```sql
SELECT AVG("2007_08") FROM "duration" WHERE "2002_03">3.8 AND "2003_04">8.9 AND "2001_02"<34.4;
## Task Generate a SQL query to answer the following question: `What is the average duration in 2007/08 with more than 3.8 in 2002/03, more than 8.9 in 2003/04, and less than 34.4 in 2001/02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "duration" ( "term_abroad" text, "2000_01" real, "2001_02" real, "2002_03" real, "2003_04" real, "2004_05" real, "2005_06" real, "2006_07" real, "2007_08" real, "2008_09" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average duration in 2007/08 with more than 3.8 in 2002/03, more than 8.9 in 2003/04, and less than 34.4 in 2001/02?`: ```sql
SELECT COUNT("2006_07") FROM "duration" WHERE "2003_04"='191,321' AND "2001_02"<'160,920';
## Task Generate a SQL query to answer the following question: `What is the total duration in 2006/07 with 191,321 in 2003/04 and less than 160,920 in 2001/02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "duration" ( "term_abroad" text, "2000_01" real, "2001_02" real, "2002_03" real, "2003_04" real, "2004_05" real, "2005_06" real, "2006_07" real, "2007_08" real, "2008_09" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total duration in 2006/07 with 191,321 in 2003/04 and less than 160,920 in 2001/02?`: ```sql
SELECT "time_retired" FROM "race" WHERE "laps"<100 AND "points">0;
## Task Generate a SQL query to answer the following question: `Which Time/Retired has Laps smaller than 100, and Points larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Time/Retired has Laps smaller than 100, and Points larger than 0?`: ```sql
SELECT AVG("laps") FROM "race" WHERE "time_retired"='+ 4 laps' AND "grid">18;
## Task Generate a SQL query to answer the following question: `Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18?`: ```sql
SELECT "team" FROM "race" WHERE "laps"=100 AND "time_retired"='+8.6 secs';
## Task Generate a SQL query to answer the following question: `Which Team has Laps of 100, and a Time/Retired of +8.6 secs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Team has Laps of 100, and a Time/Retired of +8.6 secs?`: ```sql
SELECT "runs" FROM "most_runs" WHERE "matches"='11' AND "100s"='2';
## Task Generate a SQL query to answer the following question: `What runs has 11 matches, and 2 as the 100s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); ### SQL Given the database schema, here is the SQL query that answers `What runs has 11 matches, and 2 as the 100s?`: ```sql
SELECT "matches" FROM "most_runs" WHERE "100s"='2';
## Task Generate a SQL query to answer the following question: `What matches is 2 the 100s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); ### SQL Given the database schema, here is the SQL query that answers `What matches is 2 the 100s?`: ```sql
SELECT "strike_rate" FROM "most_runs" WHERE "matches"='9';
## Task Generate a SQL query to answer the following question: `What strike rate is 9 the matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); ### SQL Given the database schema, here is the SQL query that answers `What strike rate is 9 the matches?`: ```sql
SELECT "player" FROM "most_runs" WHERE "strike_rate"='79.62';
## Task Generate a SQL query to answer the following question: `Which player has 79.62 as the strike rate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player has 79.62 as the strike rate?`: ```sql
SELECT "strike_rate" FROM "most_runs" WHERE "matches"='10' AND "runs"='469';
## Task Generate a SQL query to answer the following question: `With 10 as matches, and 469 runs, what is the strike rate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); ### SQL Given the database schema, here is the SQL query that answers `With 10 as matches, and 469 runs, what is the strike rate?`: ```sql
SELECT "balls" FROM "most_runs" WHERE "strike_rate"='70.10';
## Task Generate a SQL query to answer the following question: `When the strike rate is 70.10, what is the balls?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); ### SQL Given the database schema, here is the SQL query that answers `When the strike rate is 70.10, what is the balls?`: ```sql
SELECT "nation" FROM "records" WHERE "time"='51.35' AND "heat_semifinal_final"='final';
## Task Generate a SQL query to answer the following question: `What nation has a time of 51.35 in the final heat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "date" text, "event" text, "heat_semifinal_final" text, "nation" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What nation has a time of 51.35 in the final heat?`: ```sql
SELECT "heat_semifinal_final" FROM "records" WHERE "time"='48.97';
## Task Generate a SQL query to answer the following question: `Which heat, semifinal or final has a time of 48.97?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "date" text, "event" text, "heat_semifinal_final" text, "nation" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which heat, semifinal or final has a time of 48.97?`: ```sql
SELECT "heat_semifinal_final" FROM "records" WHERE "time"='25.00';
## Task Generate a SQL query to answer the following question: `What heat, semifinal or final has a time of 25.00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "date" text, "event" text, "heat_semifinal_final" text, "nation" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What heat, semifinal or final has a time of 25.00?`: ```sql
SELECT "date" FROM "records" WHERE "event"='men''s 100m breaststroke' AND "heat_semifinal_final"='heat 6';
## Task Generate a SQL query to answer the following question: `What date was the men's 100m breaststroke in heat 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "date" text, "event" text, "heat_semifinal_final" text, "nation" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the men's 100m breaststroke in heat 6?`: ```sql
SELECT "result" FROM "qualifying_round" WHERE "4_00"='o' AND "name"='marion buisson';
## Task Generate a SQL query to answer the following question: `Marion Buisson with a 4.00 of o had what result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Marion Buisson with a 4.00 of o had what result?`: ```sql
SELECT "4_00" FROM "qualifying_round" WHERE "nationality"='germany' AND "name"='anastasija reiberger';
## Task Generate a SQL query to answer the following question: `Anastasija Reiberger from Germany had what 4.00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Anastasija Reiberger from Germany had what 4.00?`: ```sql
SELECT "nationality" FROM "qualifying_round" WHERE "group"='b' AND "result"='4.30' AND "name"='alana boyd';
## Task Generate a SQL query to answer the following question: `Alana Boyd of group B with a 4.30 result has what nationality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Alana Boyd of group B with a 4.30 result has what nationality?`: ```sql
SELECT "nationality" FROM "qualifying_round" WHERE "name"='roslinda samsu';
## Task Generate a SQL query to answer the following question: `Roslinda Samsu has what nationality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Roslinda Samsu has what nationality?`: ```sql
SELECT "nationality" FROM "qualifying_round" WHERE "name"='marion buisson';
## Task Generate a SQL query to answer the following question: `What nation is Marion Buisson playing for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What nation is Marion Buisson playing for?`: ```sql
SELECT "rowers" FROM "heat_1" WHERE "country"='canada';
## Task Generate a SQL query to answer the following question: `Who is the rower from Canada?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the rower from Canada?`: ```sql
SELECT SUM("rank") FROM "heat_1" WHERE "notes"='r' AND "country"='australia';
## Task Generate a SQL query to answer the following question: `What is the sum of the rank of the rower with an r note from Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the rank of the rower with an r note from Australia?`: ```sql
SELECT "country" FROM "heat_1" WHERE "rank"<2;
## Task Generate a SQL query to answer the following question: `What is the country with a rank less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the country with a rank less than 2?`: ```sql
SELECT "notes" FROM "quarterfinal_1" WHERE "athlete"='gabriella bascelli';
## Task Generate a SQL query to answer the following question: `What notes did Gabriella Bascelli receive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "quarterfinal_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What notes did Gabriella Bascelli receive?`: ```sql
SELECT COUNT("rank") FROM "quarterfinal_1" WHERE "time"='7:31.90';
## Task Generate a SQL query to answer the following question: `What rank did the time of 7:31.90 receive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "quarterfinal_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What rank did the time of 7:31.90 receive?`: ```sql
SELECT "romaji_title" FROM "2005_summer_season" WHERE "japanese_title"='女王の教室';
## Task Generate a SQL query to answer the following question: `Which Romaji Title has a Japanese Title of 女王の教室?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Romaji Title has a Japanese Title of 女王の教室?`: ```sql
SELECT SUM("episodes") FROM "2005_summer_season" WHERE "romaji_title"='slow dance';
## Task Generate a SQL query to answer the following question: `How many Episodes have a Romaji Title of slow dance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Episodes have a Romaji Title of slow dance?`: ```sql
SELECT COUNT("episodes") FROM "2005_summer_season" WHERE "romaji_title"='dragon zakura';
## Task Generate a SQL query to answer the following question: `How many Episodes have a Romaji Title of dragon zakura?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Episodes have a Romaji Title of dragon zakura?`: ```sql
SELECT "format" FROM "release_history" WHERE "label"='columbia' AND "catalog"<88697411432 AND "date"='october 24, 2008';
## Task Generate a SQL query to answer the following question: `Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008?`: ```sql
SELECT AVG("catalog") FROM "release_history" WHERE "date"='july 15, 2011';
## Task Generate a SQL query to answer the following question: `Which Catalog has a Date of july 15, 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Catalog has a Date of july 15, 2011?`: ```sql
SELECT "opponent" FROM "singles_5" WHERE "date"='july 21, 2008';
## Task Generate a SQL query to answer the following question: `Which opponent was on July 21, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent was on July 21, 2008?`: ```sql
SELECT "date" FROM "singles_5" WHERE "surface"='clay' AND "opponent"='irina falconi';
## Task Generate a SQL query to answer the following question: `What was the date of the tournament with a clay surface and an opponent of Irina Falconi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the tournament with a clay surface and an opponent of Irina Falconi?`: ```sql
SELECT "opponent" FROM "singles_5" WHERE "date"='may 10, 2009';
## Task Generate a SQL query to answer the following question: `Who was the opponent on May 10, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent on May 10, 2009?`: ```sql
SELECT "score" FROM "first_round_proper" WHERE "home_team"='bath city';
## Task Generate a SQL query to answer the following question: `What is the score of the home team, bath city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_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 `What is the score of the home team, bath city?`: ```sql
SELECT "score" FROM "first_round_proper" WHERE "away_team"='southport';
## Task Generate a SQL query to answer the following question: `What was the score for the away team southport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_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 `What was the score for the away team southport?`: ```sql
SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='lincoln city';
## Task Generate a SQL query to answer the following question: `What is the home team that had an away team of lincoln city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_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 `What is the home team that had an away team of lincoln city?`: ```sql
SELECT "date" FROM "first_round_proper" WHERE "away_team"='wycombe wanderers';
## Task Generate a SQL query to answer the following question: `What date had a game with wycombe wanderers as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_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 `What date had a game with wycombe wanderers as the away team?`: ```sql
SELECT COUNT("place") FROM "quarter_final_1_10_january_2009" WHERE "artist"='augustė' AND "draw"<6;
## Task Generate a SQL query to answer the following question: `How many places have an Artist of augustė, and a Draw smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "quarter_final_1_10_january_2009" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `How many places have an Artist of augustė, and a Draw smaller than 6?`: ```sql
SELECT MAX("year") FROM "world_championships_men" WHERE "place"='thun';
## Task Generate a SQL query to answer the following question: `What is the latest year the world championships were held in Thun?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championships_men" ( "year" real, "place" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest year the world championships were held in Thun?`: ```sql
SELECT "gold" FROM "world_championships_men" WHERE "place"='phoenix';
## Task Generate a SQL query to answer the following question: `Who won gold when the world championships were held in Phoenix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championships_men" ( "year" real, "place" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won gold when the world championships were held in Phoenix?`: ```sql
SELECT MIN("ansi_code") FROM "a" WHERE "longitude">-101.333926 AND "geo_id"<3806700900 AND "township"='adler' AND "land_sqmi">35.84;
## Task Generate a SQL query to answer the following question: `What is the smallest ANSI code for adler township when Longitude is more than -101.333926, GEO ID is less than 3806700900, and Land ( sqmi ) is more than 35.84?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest ANSI code for adler township when Longitude is more than -101.333926, GEO ID is less than 3806700900, and Land ( sqmi ) is more than 35.84?`: ```sql
SELECT AVG("latitude") FROM "a" WHERE "land_sqmi"<35.874 AND "pop_2010">35 AND "county"='cass' AND "water_sqmi"=0.008;
## Task Generate a SQL query to answer the following question: `Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what average latitude?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what average latitude?`: ```sql
SELECT "county" FROM "a" WHERE "latitude"<46.935364 AND "geo_id"=3801700500;
## Task Generate a SQL query to answer the following question: `In what county is the latitude less than 46.935364 and GEO ID is 3801700500?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `In what county is the latitude less than 46.935364 and GEO ID is 3801700500?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "score"='35-14';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the game with a score of 35-14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the game with a score of 35-14?`: ```sql
SELECT "result" FROM "schedule" WHERE "record"='5-1';
## Task Generate a SQL query to answer the following question: `What was the result of the game when the record was 5-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the game when the record was 5-1?`: ```sql
SELECT "result" FROM "schedule" WHERE "opponent"='los angeles dons';
## Task Generate a SQL query to answer the following question: `What was the result of the game against the Los Angeles Dons?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the game against the Los Angeles Dons?`: ```sql
SELECT AVG("year") FROM "achievements" WHERE "venue"='bydgoszcz, poland' AND "event"='junior team';
## Task Generate a SQL query to answer the following question: `Which Year has a Venue of bydgoszcz, poland, and an Event of junior team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year has a Venue of bydgoszcz, poland, and an Event of junior team?`: ```sql
SELECT "venue" FROM "achievements" WHERE "year"<2009 AND "event"='3000 m' AND "competition"='world youth championships';
## Task Generate a SQL query to answer the following question: `Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?`: ```sql
SELECT AVG("year") FROM "achievements" WHERE "competition"='commonwealth youth games';
## Task Generate a SQL query to answer the following question: `Which Year has a Competition of commonwealth youth games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year has a Competition of commonwealth youth games?`: ```sql
SELECT COUNT("rank") FROM "references" WHERE "year"=1986;
## Task Generate a SQL query to answer the following question: `What is the total for 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for 1986?`: ```sql
SELECT "name" FROM "references" WHERE "year"<1954 AND "floors">15;
## Task Generate a SQL query to answer the following question: `What is the name before 1954 with more than 15 floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name before 1954 with more than 15 floors?`: ```sql
SELECT MIN("rank") FROM "references" WHERE "name"='el paso natural gas company building';
## Task Generate a SQL query to answer the following question: `What is the lowest rank for El Paso Natural Gas Company Building?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest rank for El Paso Natural Gas Company Building?`: ```sql
SELECT MIN("population_estimate_2013") FROM "historical_data" WHERE "percentage">19.8 AND "province"='south africa' AND "population_2011">'51,770,561';
## Task Generate a SQL query to answer the following question: `What is the lowest 2013 population estimate of south africa, which has a percentage greater than 19.8 and a 2011 population greater than 51,770,561?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_data" ( "rank" text, "province" text, "population_2011" real, "percentage" real, "population_estimate_2013" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest 2013 population estimate of south africa, which has a percentage greater than 19.8 and a 2011 population greater than 51,770,561?`: ```sql
SELECT "rank" FROM "historical_data" WHERE "province"='gauteng';
## Task Generate a SQL query to answer the following question: `What is the rank of the gauteng province?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_data" ( "rank" text, "province" text, "population_2011" real, "percentage" real, "population_estimate_2013" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank of the gauteng province?`: ```sql
SELECT MIN("population_estimate_2013") FROM "historical_data" WHERE "percentage"=23.7;
## Task Generate a SQL query to answer the following question: `What is the lowest 2013 population estimate of the province with a 23.7 percentage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_data" ( "rank" text, "province" text, "population_2011" real, "percentage" real, "population_estimate_2013" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest 2013 population estimate of the province with a 23.7 percentage?`: ```sql
SELECT "years_runner_up" FROM "by_teams" WHERE "team"='duisburg';
## Task Generate a SQL query to answer the following question: `What year(s) was Duisburg runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_teams" ( "team" text, "winners" real, "runners_up" real, "years_won" text, "years_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What year(s) was Duisburg runner-up?`: ```sql
SELECT MIN("year") FROM "major_competition_record" WHERE "notes"='18.04 m wl';
## Task Generate a SQL query to answer the following question: `What was the earliest year with a note of 18.04 m wl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the earliest year with a note of 18.04 m wl?`: ```sql
SELECT "venue" FROM "major_competition_record" WHERE "year"<2011 AND "competition"='world junior championships';
## Task Generate a SQL query to answer the following question: `What venue had a competition of World Junior Championships before 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue had a competition of World Junior Championships before 2011?`: ```sql
SELECT "developer_s" FROM "readers_choice" WHERE "game"='call of duty: black ops';
## Task Generate a SQL query to answer the following question: `Who was the developer of Call of Duty: Black Ops?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the developer of Call of Duty: Black Ops?`: ```sql
SELECT "platform_s" FROM "readers_choice" WHERE "genre"='third-person shooter';
## Task Generate a SQL query to answer the following question: `What is the platform for the game of the third-person shooter genre?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the platform for the game of the third-person shooter genre?`: ```sql
SELECT "platform_s" FROM "readers_choice" WHERE "year"=2007;
## Task Generate a SQL query to answer the following question: `What is the platform of the game from 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the platform of the game from 2007?`: ```sql
SELECT "developer_s" FROM "readers_choice" WHERE "game"='resident evil 4';
## Task Generate a SQL query to answer the following question: `Who was the developer of Resident Evil 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the developer of Resident Evil 4?`: ```sql
SELECT SUM("rank") FROM "heats" WHERE "name"='flori lang' AND "time"<22.27;
## Task Generate a SQL query to answer the following question: `What was the rank of flori lang when his time was less than 22.27` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank of flori lang when his time was less than 22.27`: ```sql
SELECT AVG("lane") FROM "heats" WHERE "heat">12 AND "rank"=38 AND "time">22.67;
## Task Generate a SQL query to answer the following question: `What lane had a heat after 12, a rank of 38 and a time larger than 22.67?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What lane had a heat after 12, a rank of 38 and a time larger than 22.67?`: ```sql
SELECT "game" FROM "game_log" WHERE "record"='27-12';
## Task Generate a SQL query to answer the following question: `What game has 27-12 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What game has 27-12 record?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='21-11';
## Task Generate a SQL query to answer the following question: `What date was the record 21-11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the record 21-11?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "score"='w 95-93';
## Task Generate a SQL query to answer the following question: `What is the location/attendance for the w 95-93 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location/attendance for the w 95-93 score?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "record"='26-11';
## Task Generate a SQL query to answer the following question: `What is the location/attendance with a 26-11 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location/attendance with a 26-11 record?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "record"='26-12';
## Task Generate a SQL query to answer the following question: `Which opponent has a 26-12 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent has a 26-12 record?`: ```sql
SELECT "time" FROM "heat_2" WHERE "rower"='lee ka man';
## Task Generate a SQL query to answer the following question: `What is Lee Ka Man's Time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "rower" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Lee Ka Man's Time?`: ```sql
SELECT COUNT("rank") FROM "heat_2" WHERE "time"='8:23.02';
## Task Generate a SQL query to answer the following question: `What is the Rank of the rower with a Time of 8:23.02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "rower" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Rank of the rower with a Time of 8:23.02?`: ```sql
SELECT MAX("gold") FROM "medal_table" WHERE "rank"='7' AND "bronze"<0;
## Task Generate a SQL query to answer the following question: `What is the most gold when the rank is 7 and bronze is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most gold when the rank is 7 and bronze is less than 0?`: ```sql
SELECT MAX("gold") FROM "medal_table" WHERE "total"=7;
## Task Generate a SQL query to answer the following question: `what is the most gold when the total is 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the most gold when the total is 7?`: ```sql
SELECT MIN("gold") FROM "medal_table" WHERE "rank"='10' AND "silver"<0;
## Task Generate a SQL query to answer the following question: `what is the least gold when the rank is 10 and silver is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the least gold when the rank is 10 and silver is less than 0?`: ```sql
SELECT MIN("total") FROM "medal_table" WHERE "nation"='sweden (swe)' AND "silver"<0;
## Task Generate a SQL query to answer the following question: `what is the lowest total when the nation is sweden (swe) and silver is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the lowest total when the nation is sweden (swe) and silver is less than 0?`: ```sql
SELECT AVG("total") FROM "medal_table" WHERE "silver">2 AND "bronze"=12 AND "gold"<12;
## Task Generate a SQL query to answer the following question: `what is the average total when silver is more than 2, bronze is 12 and gold is less than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the average total when silver is more than 2, bronze is 12 and gold is less than 12?`: ```sql
SELECT COUNT("longitude") FROM "n" WHERE "latitude"=48.930222 AND "geo_id"<3806755660;
## Task Generate a SQL query to answer the following question: `What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "n" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660?`: ```sql
SELECT "latitude" FROM "n" WHERE "land_sqmi"<34.401 AND "geo_id"<3807157722 AND "longitude"=-98.475995;
## Task Generate a SQL query to answer the following question: `What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "n" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995?`: ```sql
SELECT COUNT("longitude") FROM "n" WHERE "township"='nogosek' AND "geo_id">3809357060;
## Task Generate a SQL query to answer the following question: `What is the total longitude of Nogosek and a GEO ID larger than 3809357060?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "n" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total longitude of Nogosek and a GEO ID larger than 3809357060?`: ```sql
SELECT SUM("band") FROM "400_w_sub_bands" WHERE "power_w"<400;
## Task Generate a SQL query to answer the following question: `What Band number has a Power (W) of 400 or less?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "400_w_sub_bands" ( "band" real, "frequency_m_hz" text, "wavelength" text, "type" text, "power_w" real ); ### SQL Given the database schema, here is the SQL query that answers `What Band number has a Power (W) of 400 or less?`: ```sql
SELECT MAX("band") FROM "400_w_sub_bands" WHERE "power_w">400;
## Task Generate a SQL query to answer the following question: `What Band's Power (W) is 400 or less?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "400_w_sub_bands" ( "band" real, "frequency_m_hz" text, "wavelength" text, "type" text, "power_w" real ); ### SQL Given the database schema, here is the SQL query that answers `What Band's Power (W) is 400 or less?`: ```sql