text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" text,
"played" real,
"win" real,
"loss" real,
"last_5" text,
"streak" text,
"pf_per_game" text,
"pa_per_game" text,
"pd_per_ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "investment_and_financing" (
"department" text,
"projects" real,
"municipalities" real,
"farmers" real,
"irrigated_ha" real,
"bid_pronar_investment_us" text,
"local_investment_us" text,
"to... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: Who was the opponent of the game with final... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: What was the attendance at the game where N... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: What was the venue of the game that was los... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: What is the venue of the game with Man of t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: How many attendance figures are given for t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: Name the opponent for 4th
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: Name the venue for 19th date
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: Name the result for lukas smital and home
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: Name the man of the match for 24th
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: Name the man of the maatch for sheffield sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: On the 19th, where was the venue?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: What was the total attendance during the h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: On what day was Stuart Potts the Man of th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: At what venue did Alex Mettam/Mark William... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: How many dates did David Savage get man of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: When the attendance was 1568, who was man ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "december" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"competition" text,
"man_of_the_match" text
);
Question: Who was the man of the match when they los... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
Question: what was the competitoin where the opponen... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
Question: where was the venue where the attendance w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
Question: what was the venue where the date was the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text,
"man_of_the_match" text
);
Question: who was the opponent where the date was th... |
<|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: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17121262_10" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: If the census ranking is 231 of 5,008, what was the population?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: If the area is 59.73, what is the official name?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: If the census ranking is 693 of 5,008, what is the status?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: With the official name Quispamsis, what is the census ranking?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What was the population for census ranking 782 of 5,008?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: If the area is 34.73, what is the census ranking?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What are the census ranking(s) for a population of 284?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What are the census ranking(s) that have an area of 369.25 km2?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What is the population that has an area of 715.58?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What are that status(es) of saint-jacques?
<|assistant|>
SELECT "status"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What are the area(s) (km2) for saint-joseph?
<|assistant|>
SELECT "area_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What rank is the parish with 482.81 km^2?
<|assistant|>
SELECT "census_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What status doe the area with a census ranking of 2,290 of 5,008 have?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: How many statuses are listed for the parish officially named Gagetown?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What is Petersville's census ranking?
<|assistant|>
SELECT "census_ranki... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What is the population of each community with city status?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What is the name of the community with an area of 30.75 sq. km.?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What is the area of the community with a population of 1209?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: How many population values are listed for the community with an area ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_171320_3" (
"dvd_name" text,
"ep_num" real,
"region_1" text,
"region_2_scandinavia" text,
"region_2_uk" text,
"region_4" text,
"special_features" text
);
Question: Name the region 1 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_171320_3" (
"dvd_name" text,
"ep_num" real,
"region_1" text,
"region_2_scandinavia" text,
"region_2_uk" text,
"region_4" text,
"special_features" text
);
Question: Name the region 1 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17152787_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"prod_code" real
);
Question: Who directed the episode titled "Episode 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17152787_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"prod_code" real
);
Question: How many episodes have the season number o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
Question: Who was the director of the fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
Question: For what ceremony was "Fire Da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
Question: What name was used for nominat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
Question: What languages were spoken in ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
Question: Who was the director of the fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tree_level_packages" (
"name" text,
"model" text,
"max_fs" text,
"tested_fs" text,
"short_description" text,
"publication" text,
"method" text,
"output" text,
"status" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tree_level_packages" (
"name" text,
"model" text,
"max_fs" text,
"tested_fs" text,
"short_description" text,
"publication" text,
"method" text,
"output" text,
"status" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tree_level_packages" (
"name" text,
"model" text,
"max_fs" text,
"tested_fs" text,
"short_description" text,
"publication" text,
"method" text,
"output" text,
"status" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tree_level_packages" (
"name" text,
"model" text,
"max_fs" text,
"tested_fs" text,
"short_description" text,
"publication" text,
"method" text,
"output" text,
"status" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17156199_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: What was the nominated film title of শ্যামল ছ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17156199_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: What year and ceremony was the original title... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17156199_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: How many years was the original title was স্ব... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
Question... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
Question: What was the percentage in Manitoba in 2011?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
Question: Which province had population of 210295 South Asians in 2001?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
Question: What was the South Asian population in Nova Scotia in 2001?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
Question: What was the percentage in 2011 of the province that had 2.4% po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population" (
"province" text,
"south_asians_2001" real,
"pct_2001" text,
"south_asians_2011" real,
"pct_2011" text
);
Question: How many figures are given for total number of South Asians in 2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "immigration" (
"year" real,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
);
Question: How many India... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "immigration" (
"year" real,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
);
Question: What is the gr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "immigration" (
"year" real,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
);
Question: What is the mo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasonal_timeslots_ratings" (
"season" real,
"tv_season" text,
"regular_timeslot_edt" text,
"episode_count" real,
"season_premiere" text,
"season_finale" text,
"rank" text,
"rating" text
)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasonal_timeslots_ratings" (
"season" real,
"tv_season" text,
"regular_timeslot_edt" text,
"episode_count" real,
"season_premiere" text,
"season_finale" text,
"rank" text,
"rating" text
)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
Question: Name the driver/passenger for 30
<|assistant|>
SELECT COUNT("driver_passenger") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
Question: Name the max bike number of position for 30
<|assistant|>
SELECT MAX("bike_no") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17200372_2" (
"departure" text,
"going_to" text,
"calling_at" text,
"arrival" text,
"operator" text
);
Question: Name the number of going to for thurlby, braceborough spa at departure b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17200372_2" (
"departure" text,
"going_to" text,
"calling_at" text,
"arrival" text,
"operator" text
);
Question: Name the departure for spalding
<|assistant|>
SELECT "departure" FROM "ta... |
<|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: wh... |
<|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: wh... |
<|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: ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Q... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
Question: What grid did the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
Question: Scott Dixon had h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
Question: Car number 15 ear... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.