text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: what report was in geelong
<|assistant|>
SELECT "report" FROM "round_16" WHERE "home_team"='geelong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the date for the game played on week 8, with an attendance of more than 35,000?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "attendance">'35,000' AND "week"=8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_museums" (
"name" text,
"town_city" text,
"borough" text,
"region" text,
"type" text
);
Question: In what Town/City is Nana Museum of The Arctic located?
<|assistant|>
SELECT "town_city" FROM "defunct_museums" WHERE "name"='nana museum of the arctic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_museums" (
"name" text,
"town_city" text,
"borough" text,
"region" text,
"type" text
);
Question: What is the Name of the Multiple Type museum in Anchorage?
<|assistant|>
SELECT "name" FROM "defunct_museums" WHERE "town_city"='anchorage' AND "type"='multiple';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_museums" (
"name" text,
"town_city" text,
"borough" text,
"region" text,
"type" text
);
Question: In what Borough is the Anchorage museum of Natural History?
<|assistant|>
SELECT "name" FROM "defunct_museums" WHERE "borough"='anchorage' AND "type"='natural history';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_museums" (
"name" text,
"town_city" text,
"borough" text,
"region" text,
"type" text
);
Question: In what Region is the Native American museum in Anchorage?
<|assistant|>
SELECT "region" FROM "defunct_museums" WHERE "type"='native american' AND "town_city"='anchorage';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_museums" (
"name" text,
"town_city" text,
"borough" text,
"region" text,
"type" text
);
Question: What Type of museum is the Valdez museum?
<|assistant|>
SELECT "type" FROM "defunct_museums" WHERE "name"='valdez museum';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "defunct_museums" (
"name" text,
"town_city" text,
"borough" text,
"region" text,
"type" text
);
Question: In what Borough is the History Type Fairbanks Community Museum?
<|assistant|>
SELECT "borough" FROM "defunct_museums" WHERE "type"='history' AND "name"='fairbanks community museum';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "counties" (
"in_no" real,
"county_name" text,
"county_seat" text,
"time_zone" text,
"population_2010_rank" text,
"area_sq_mi_km_2_rank" text,
"twps" real,
"zip_code_prefix_es" text,
"pct_of_boundary_by_water" text
);
Question: what is the zip code of boonville
<|assistant|>
SELECT "zip_code_prefix_es" FROM "counties" WHERE "county_seat"='boonville';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_14" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Which tournament was held on 9 Jun 2002?
<|assistant|>
SELECT "tournament" FROM "european_tour_wins_14" WHERE "date"='9 jun 2002';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_14" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?
<|assistant|>
SELECT "winning_score" FROM "european_tour_wins_14" WHERE "margin_of_victory"='4 strokes' AND "tournament"='nec invitational';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_14" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Who is the runner-up where the winning score is β8 (71-69-67-73=280)?
<|assistant|>
SELECT "runner_s_up" FROM "european_tour_wins_14" WHERE "winning_score"='β8 (71-69-67-73=280)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_14" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke?
<|assistant|>
SELECT "winning_score" FROM "european_tour_wins_14" WHERE "margin_of_victory"='1 stroke' AND "tournament"='linde german masters';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_14" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Who is runner-up where the winning score is β6 (65-70-70-69=274) and the margin of victory is 3 strokes?
<|assistant|>
SELECT "runner_s_up" FROM "european_tour_wins_14" WHERE "margin_of_victory"='3 strokes' AND "winning_score"='β6 (65-70-70-69=274)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_tour_wins_14" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke?
<|assistant|>
SELECT "winning_score" FROM "european_tour_wins_14" WHERE "margin_of_victory"='1 stroke' AND "runner_s_up"='robert-jan derksen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What are the high rebounds of team @ Charlotte?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "team"='@ charlotte';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What is the high rebounds of game 68?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "game"=68;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What is the score of New York team before game 61?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "game"<61 AND "team"='new york';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_wins" (
"date" text,
"tournament" text,
"tier" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: When David McNamara was the opponent in the final, what was the tier?
<|assistant|>
SELECT "tier" FROM "singles_wins" WHERE "opponent_in_the_final"='david mcnamara';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_americas" (
"rank" real,
"country" text,
"international_tourist_arrivals_2012" text,
"international_tourist_arrivals_2011" text,
"change_2011_to_2012" text,
"change_2010_to_2011" text
);
Question: In 2011, how many tourists visited the country that had 23.4 million tourists in 2012?
<|assistant|>
SELECT "international_tourist_arrivals_2011" FROM "the_americas" WHERE "international_tourist_arrivals_2012"='23.4 million';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_americas" (
"rank" real,
"country" text,
"international_tourist_arrivals_2012" text,
"international_tourist_arrivals_2011" text,
"change_2011_to_2012" text,
"change_2010_to_2011" text
);
Question: How many tourists visited the country that had 2.5 million tourists in 2011?
<|assistant|>
SELECT "international_tourist_arrivals_2012" FROM "the_americas" WHERE "international_tourist_arrivals_2011"='2.5 million';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"distance" text
);
Question: How far Venue of seoul, south korea is?
<|assistant|>
SELECT "distance" FROM "achievements" WHERE "venue"='seoul, south korea';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"distance" text
);
Question: Which Venue has a Tournament of olympic games with a Result of 4th?
<|assistant|>
SELECT "venue" FROM "achievements" WHERE "tournament"='olympic games' AND "result"='4th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"distance" text
);
Question: What is the Result of Venue of edmonton, canada?
<|assistant|>
SELECT "result" FROM "achievements" WHERE "venue"='edmonton, canada';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_of_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What is the 1st leg of Team 2 PSV Eindhoven?
<|assistant|>
SELECT "1st_leg" FROM "round_of_16" WHERE "team_2"='psv eindhoven';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text
);
Question: Which opponent was played at Forbes Field after week 4?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "game_site"='forbes field' AND "week">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text
);
Question: Which opponent was played on week 9?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week"=9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text
);
Question: What was the date of the game played at Fenway Park?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "game_site"='fenway park';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
"year" text,
"team" text,
"progress" text,
"score" text,
"opponents" text
);
Question: Which Opponents have a Year of 1998β99, and a Team of aston villa?
<|assistant|>
SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "year"='1998β99' AND "team"='aston villa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
"year" text,
"team" text,
"progress" text,
"score" text,
"opponents" text
);
Question: Which Score has Opponents of valencia, and a Year of 2011β12?
<|assistant|>
SELECT "score" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "opponents"='valencia' AND "year"='2011β12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
"year" text,
"team" text,
"progress" text,
"score" text,
"opponents" text
);
Question: Which Opponents have a Team of arsenal, and a Year of 1963β64?
<|assistant|>
SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "team"='arsenal' AND "year"='1963β64';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
"year" text,
"team" text,
"progress" text,
"score" text,
"opponents" text
);
Question: Which Opponents have a Year of 1999β2000, and a Team of leeds united?
<|assistant|>
SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "year"='1999β2000' AND "team"='leeds united';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
"year" text,
"team" text,
"progress" text,
"score" text,
"opponents" text
);
Question: Which Opponents have a Score of 1β2, and a Team of arsenal, and Progress of first round?
<|assistant|>
SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "score"='1β2' AND "team"='arsenal' AND "progress"='first round';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bischofshofen_5_january" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: How much Rank has a Name of simon ammann, and a 2nd (m) larger than 139?
<|assistant|>
SELECT COUNT("rank") FROM "bischofshofen_5_january" WHERE "name"='simon ammann' AND "2nd_m">139;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bischofshofen_5_january" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: How much Rank has Points larger than 282.5?
<|assistant|>
SELECT COUNT("rank") FROM "bischofshofen_5_january" WHERE "points">282.5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bischofshofen_5_january" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: Which Rank is the highest one that has Points smaller than 256.6?
<|assistant|>
SELECT MAX("rank") FROM "bischofshofen_5_january" WHERE "points"<256.6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bischofshofen_5_january" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: Which 2nd (m) is the highest one that has a Nationality of sui, and a Rank smaller than 3?
<|assistant|>
SELECT MAX("2nd_m") FROM "bischofshofen_5_january" WHERE "nationality"='sui' AND "rank"<3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3_1996" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"countries_visited" text
);
Question: What is the UK broadcast date of the episode where Chris Bonington was the presenter?
<|assistant|>
SELECT "uk_broadcast_date" FROM "series_3_1996" WHERE "presenter"='chris bonington';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3_1996" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"countries_visited" text
);
Question: What is the episode title of the episode with Ben Okri as the presenter?
<|assistant|>
SELECT "episode_title" FROM "series_3_1996" WHERE "presenter"='ben okri';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3_1996" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"countries_visited" text
);
Question: Who is the presenter of the episode broadcast in the UK on 1996-09-25?
<|assistant|>
SELECT "presenter" FROM "series_3_1996" WHERE "uk_broadcast_date"='1996-09-25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3_1996" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"countries_visited" text
);
Question: What is the UK broadcast date of the episode with Ben Okri as the presenter?
<|assistant|>
SELECT "uk_broadcast_date" FROM "series_3_1996" WHERE "presenter"='ben okri';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What was the score when the team played at the bobcats?
<|assistant|>
SELECT "score" FROM "february" WHERE "home"='bobcats';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What was the score when the Spurs' record was 43-13?
<|assistant|>
SELECT "score" FROM "february" WHERE "record"='43-13';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gost_7_67_94" (
"country_name" text,
"russian_name" text,
"cyrillic_code" text,
"latin_3_letter_code" text,
"latin_2_letter_code" text,
"numeric_code" real
);
Question: What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv?
<|assistant|>
SELECT "country_name" FROM "gost_7_67_94" WHERE "numeric_code"<246 AND "latin_3_letter_code"='slv';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gost_7_67_94" (
"country_name" text,
"russian_name" text,
"cyrillic_code" text,
"latin_3_letter_code" text,
"latin_2_letter_code" text,
"numeric_code" real
);
Question: What is the Russian name with lbr as the Latin 3-letter code?
<|assistant|>
SELECT "russian_name" FROM "gost_7_67_94" WHERE "latin_3_letter_code"='lbr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gost_7_67_94" (
"country_name" text,
"russian_name" text,
"cyrillic_code" text,
"latin_3_letter_code" text,
"latin_2_letter_code" text,
"numeric_code" real
);
Question: What is the country name with a numeric code less than 580 and a dk Latin 2-letter code?
<|assistant|>
SELECT "country_name" FROM "gost_7_67_94" WHERE "numeric_code"<580 AND "latin_2_letter_code"='dk';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gost_7_67_94" (
"country_name" text,
"russian_name" text,
"cyrillic_code" text,
"latin_3_letter_code" text,
"latin_2_letter_code" text,
"numeric_code" real
);
Question: What is the Cyrillic code with a cu Latin 2-letter code?
<|assistant|>
SELECT "cyrillic_code" FROM "gost_7_67_94" WHERE "latin_2_letter_code"='cu';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dansk_melodi_grand_prix_2008" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
);
Question: Name the least place for draw more than 3 and points of 8
<|assistant|>
SELECT MIN("place") FROM "dansk_melodi_grand_prix_2008" WHERE "draw">3 AND "points"=8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dansk_melodi_grand_prix_2008" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
);
Question: Name the song for points less than 16 and draw less than 3
<|assistant|>
SELECT "song" FROM "dansk_melodi_grand_prix_2008" WHERE "points"<16 AND "draw"<3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "longest_run_at_number_one" (
"position" text,
"artist" text,
"single" text,
"year" text,
"weeks" text
);
Question: what is the single of the queen
<|assistant|>
SELECT "single" FROM "longest_run_at_number_one" WHERE "artist"='queen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "longest_run_at_number_one" (
"position" text,
"artist" text,
"single" text,
"year" text,
"weeks" text
);
Question: what artist won in 1953
<|assistant|>
SELECT "artist" FROM "longest_run_at_number_one" WHERE "year"='1953';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "longest_run_at_number_one" (
"position" text,
"artist" text,
"single" text,
"year" text,
"weeks" text
);
Question: what year did david whitfield win
<|assistant|>
SELECT "year" FROM "longest_run_at_number_one" WHERE "artist"='david whitfield';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "garmisch_partenkirchen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: What is the average rank of Roman Koudelka, who has less than 274.4 points?
<|assistant|>
SELECT AVG("rank") FROM "garmisch_partenkirchen" WHERE "points"<274.4 AND "name"='roman koudelka';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "garmisch_partenkirchen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: What is the lowest rank of the player from Aut with a 1st greater than 132?
<|assistant|>
SELECT MIN("rank") FROM "garmisch_partenkirchen" WHERE "nationality"='aut' AND "1st_m">132;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "garmisch_partenkirchen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: What is the overall WC points of the player from Pol?
<|assistant|>
SELECT "overall_wc_points_rank" FROM "garmisch_partenkirchen" WHERE "nationality"='pol';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "garmisch_partenkirchen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
Question: What is the average rank of Gregor Schlierenzauer, who had a 1st greater than 132?
<|assistant|>
SELECT AVG("rank") FROM "garmisch_partenkirchen" WHERE "name"='gregor schlierenzauer' AND "1st_m">132;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"winner_s_share" text
);
Question: What is the winners share ($) that has atlanta classic as the tournament?
<|assistant|>
SELECT "winner_s_share" FROM "tournament_results" WHERE "tournament"='atlanta classic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"winner_s_share" text
);
Question: What is the winners share ($) that has u.s. open as the tournament?
<|assistant|>
SELECT "winner_s_share" FROM "tournament_results" WHERE "tournament"='u.s. open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many points was before game 14?
<|assistant|>
SELECT SUM("points") FROM "regular_season" WHERE "game"<14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What is the average points on November 6?
<|assistant|>
SELECT AVG("points") FROM "regular_season" WHERE "november"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which average's against score has 2 as a difference and a lost of 5?
<|assistant|>
SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='2' AND "lost"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How many positions had a difference of - 4 and an against of less than 24?
<|assistant|>
SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "difference"='- 4' AND "against"<24;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?
<|assistant|>
SELECT MIN("lost") FROM "torneio_rio_s_o_paulo" WHERE "position">6 AND "drawn"=7 AND "points"<15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the largest played number when the difference is - 8 and position is more than 8?
<|assistant|>
SELECT MAX("played") FROM "torneio_rio_s_o_paulo" WHERE "difference"='- 8' AND "position">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the mean drawn when the difference is 0 and the against stat is more than 31?
<|assistant|>
SELECT AVG("drawn") FROM "torneio_rio_s_o_paulo" WHERE "difference"='0' AND "against">31;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_orchid_handicap_since_199" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
Question: what is the winner of meridiana
<|assistant|>
SELECT "owner" FROM "winners_of_the_orchid_handicap_since_199" WHERE "winner"='meridiana';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"number" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"class" text,
"hometown" text
);
Question: Number of 13 that has what highest weight?
<|assistant|>
SELECT MAX("weight") FROM "roster" WHERE "number"=13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"number" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"class" text,
"hometown" text
);
Question: Weight of 220 has what class?
<|assistant|>
SELECT "class" FROM "roster" WHERE "weight"=220;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"number" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"class" text,
"hometown" text
);
Question: Name of byron geis, and a Weight smaller than 195 involves what average number?
<|assistant|>
SELECT AVG("number") FROM "roster" WHERE "name"='byron geis' AND "weight"<195;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What was the record on March 22?
<|assistant|>
SELECT "record" FROM "march" WHERE "date"='march 22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What day in february was game 53?
<|assistant|>
SELECT AVG("february") FROM "schedule_and_results" WHERE "game"=53;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the team's record on februrary 23?
<|assistant|>
SELECT "record" FROM "schedule_and_results" WHERE "february"=23;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "malta_in_the_eurovision_song_contest_200" (
"draw" real,
"artist" text,
"song" text,
"jury" real,
"televote" real,
"total" real,
"place" real
);
Question: Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7?
<|assistant|>
SELECT MIN("place") FROM "malta_in_the_eurovision_song_contest_200" WHERE "total"<24 AND "draw">7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: with lola t86/50 chassis and less than 7 points what is the entrant?
<|assistant|>
SELECT "entrant" FROM "complete_international_formula_3000_resu" WHERE "points"<7 AND "chassis"='lola t86/50';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: after 1987 and entrant of first racing what is the highest points?
<|assistant|>
SELECT MAX("points") FROM "complete_international_formula_3000_resu" WHERE "entrant"='first racing' AND "year">1987;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: with year greater than 1988 what is the total number of points?
<|assistant|>
SELECT COUNT("points") FROM "complete_international_formula_3000_resu" WHERE "year">1988;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_international_formula_3000_resu" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: what is the points total for forti corse?
<|assistant|>
SELECT SUM("points") FROM "complete_international_formula_3000_resu" WHERE "entrant"='forti corse';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "iupap_s_uno_proposal" (
"coefficient" text,
"parts_per_example" text,
"uno_equiv" text,
"symbol_form" text,
"value_of_quantity" text
);
Question: What is the Parts-per example of 2Γ10 β6?
<|assistant|>
SELECT "parts_per_example" FROM "iupap_s_uno_proposal" WHERE "value_of_quantity"='2Γ10 β6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "iupap_s_uno_proposal" (
"coefficient" text,
"parts_per_example" text,
"uno_equiv" text,
"symbol_form" text,
"value_of_quantity" text
);
Question: What is the Coefficient of 2 ppt?
<|assistant|>
SELECT "coefficient" FROM "iupap_s_uno_proposal" WHERE "parts_per_example"='2 ppt';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
);
Question: what is the format of catalog 865 821-1?
<|assistant|>
SELECT "format" FROM "release_history" WHERE "catalog"='865 821-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_japan_university_rugby_championships" (
"title" text,
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text,
"attendance" text
);
Question: What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th?
<|assistant|>
SELECT "season" FROM "all_japan_university_rugby_championships" WHERE "winner"='kanto gakuin university' AND "attendance"='n/a' AND "title"='37th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_japan_university_rugby_championships" (
"title" text,
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text,
"attendance" text
);
Question: What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details?
<|assistant|>
SELECT "title" FROM "all_japan_university_rugby_championships" WHERE "attendance"='n/a' AND "runner_up"='waseda' AND "season"='1995-6 details';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_japan_university_rugby_championships" (
"title" text,
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text,
"attendance" text
);
Question: What season has a runner-up of waseda, and a title of 47th?
<|assistant|>
SELECT "season" FROM "all_japan_university_rugby_championships" WHERE "runner_up"='waseda' AND "title"='47th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_japan_university_rugby_championships" (
"title" text,
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text,
"attendance" text
);
Question: Who was the winner in the game that had Teikyo as the runner-up?
<|assistant|>
SELECT "winner" FROM "all_japan_university_rugby_championships" WHERE "runner_up"='teikyo';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_japan_university_rugby_championships" (
"title" text,
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text,
"attendance" text
);
Question: Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?
<|assistant|>
SELECT "winner" FROM "all_japan_university_rugby_championships" WHERE "runner_up"='waseda' AND "title"='32nd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"tv_time" text,
"attendance" text
);
Question: what is the date on week 6
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location" text
);
Question: Which City has 600kw 500kw ERP (Analog/ Digital)?
<|assistant|>
SELECT "city" FROM "main_transmitters" WHERE "erp_analog_digital"='600kw 500kw';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location" text
);
Question: Which Region served has of 1176 m 1190 m HAAT (Analog/ Digital) 1?
<|assistant|>
SELECT "region_served" FROM "main_transmitters" WHERE "haat_analog_digital_1"='1176 m 1190 m';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location" text
);
Question: Which City has 600kw 500kw ERP ?
<|assistant|>
SELECT "city" FROM "main_transmitters" WHERE "erp_analog_digital"='600kw 500kw';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location" text
);
Question: Which City has a 360kw 90kw ERP?
<|assistant|>
SELECT "city" FROM "main_transmitters" WHERE "erp_analog_digital"='360kw 90kw';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: What was the series standing for games over 4?
<|assistant|>
SELECT "series" FROM "playoffs" WHERE "game">4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: What is the game number held on May 20?
<|assistant|>
SELECT AVG("game") FROM "playoffs" WHERE "date"='may 20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the score of the game when the Indians ended up with a record of 55-51?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "record"='55-51';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: On which date did the Indians have a record of 67-58
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='67-58';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"award" text,
"year" real,
"category" text,
"work" text,
"result" text
);
Question: Which Work has a Result of nominated, and an Award of contigo award, and a Year smaller than 2002?
<|assistant|>
SELECT "work" FROM "awards_and_nominations" WHERE "result"='nominated' AND "award"='contigo award' AND "year"<2002;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"award" text,
"year" real,
"category" text,
"work" text,
"result" text
);
Question: How many years have an Award of press award?
<|assistant|>
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='press award';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"award" text,
"year" real,
"category" text,
"work" text,
"result" text
);
Question: Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress?
<|assistant|>
SELECT "award" FROM "awards_and_nominations" WHERE "year"<2004 AND "work"='the clone' AND "result"='won' AND "category"='favourite actress';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"award" text,
"year" real,
"category" text,
"work" text,
"result" text
);
Question: Which Year is the highest one that has a Work of the clone, and an Award of contigo award?
<|assistant|>
SELECT MAX("year") FROM "awards_and_nominations" WHERE "work"='the clone' AND "award"='contigo award';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"spacecraft" text,
"destination" text,
"launched" text,
"closest_approach" text,
"time_elapsed" text
);
Question: With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?
<|assistant|>
SELECT "time_elapsed" FROM "1990s" WHERE "destination"='jupiter' AND "closest_approach"='4 february 2004';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1990s" (
"spacecraft" text,
"destination" text,
"launched" text,
"closest_approach" text,
"time_elapsed" text
);
Question: What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?
<|assistant|>
SELECT "time_elapsed" FROM "1990s" WHERE "launched"='15 october 1997' AND "closest_approach"='24 june 1999';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.