text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Who constructed juan manuel fangio's car with over 76 laps and a grid under 10?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: what is the sum of laps when grid is less than 20 and johnny herbert is driving?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: who is the driver when grid is 11?
<|assistant|>
SELECT "driver" FROM "race" WHERE "grid"=1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_tries" (
"date" text,
"venue" text,
"opponent" text,
"result" text,
"tournament" text,
"scored" real
);
Question: Who was the opponent with a score of 30-12?
<|assistant|>
SELECT "oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_tries" (
"date" text,
"venue" text,
"opponent" text,
"result" text,
"tournament" text,
"scored" real
);
Question: Who was the opponent with a score of 40-20?
<|assistant|>
SELECT "oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When did Geelong play as the away team?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_notable_onshore_wind_farms" (
"wind_farm" text,
"capacity_mw" real,
"country" text,
"state_province" text,
"notes" text
);
Question: What is the total capacity (MW) of the farm that is no... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_notable_onshore_wind_farms" (
"wind_farm" text,
"capacity_mw" real,
"country" text,
"state_province" text,
"notes" text
);
Question: Which state is Tehachapi Pass Wind Farm located in?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_notable_onshore_wind_farms" (
"wind_farm" text,
"capacity_mw" real,
"country" text,
"state_province" text,
"notes" text
);
Question: Which wind farm is in the USA and is noted as having m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_notable_onshore_wind_farms" (
"wind_farm" text,
"capacity_mw" real,
"country" text,
"state_province" text,
"notes" text
);
Question: What special notes are included for the windfarm with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_notable_onshore_wind_farms" (
"wind_farm" text,
"capacity_mw" real,
"country" text,
"state_province" text,
"notes" text
);
Question: What is the total capacity (MW) of the windfarm locate... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: In the game held at Arden Street Oval, w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people in total have attended g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which game at Arden Street Oval had the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where was the game against the away team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What team was playing at home when the a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the score when Collingwood was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What team had a score of 18.12 (120) whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On which date did Geelong play at home?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team has a venue of windy hill... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If essendon is the home team, what venue ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the home team is richmond, what was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: If the home team playing is hawthorn and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
Question: When was the lock with 10 caps born?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What were the laps of driver Jean-Christophe Boullion?
<|assistant|>
SELECT "laps" FROM "ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"league" text,
"reg_season" text,
"playoffs" text,
"attendance_average" text
);
Question: What Playoffs were held during the years of 2007-08?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On which date did Richmond play as an awa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What away team did Melbourne play as the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team has an away team score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team has an away team score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"chapter" text,
"university" text,
"city" text,
"state" text,
"conference" text,
"founding_date" real,
"status" text
);
Question: Which chapter was founded later than 2012... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"chapter" text,
"university" text,
"city" text,
"state" text,
"conference" text,
"founding_date" real,
"status" text
);
Question: What is the chapter in Lubbock?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "member_universities" (
"university" text,
"location" text,
"year_of_foundation" real,
"university_status" real,
"the_world_university_rankings_2012_13" text,
"academic_ranking_of_world_univers... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_scores" (
"state" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
);
Question: What was the highest Interview score from a contestant who had a swimsuit s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: What year has a To... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: What is the highes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: What is the smalle... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: What is the highes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_career_summary" (
"year" text,
"starts" real,
"cuts_made" real,
"wins" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" text
);
Question: How many Starts th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: Which event was in round 1, r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What is the result when the t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_club" (
"club" text,
"wins" text,
"last_win" text,
"runners_up" text,
"last_final_lost" text
);
Question: How many wins did Ayr United have?
<|assistant|>
SELECT "wins" FROM "per... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_club" (
"club" text,
"wins" text,
"last_win" text,
"runners_up" text,
"last_final_lost" text
);
Question: When was the final loss of the club last won in 2001 and has a total of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_club" (
"club" text,
"wins" text,
"last_win" text,
"runners_up" text,
"last_final_lost" text
);
Question: When was the last win for the club that had a final loss in 2011?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_club" (
"club" text,
"wins" text,
"last_win" text,
"runners_up" text,
"last_final_lost" text
);
Question: How many wins did the 8 time runner-up have?
<|assistant|>
SELECT "wins"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performance_by_club" (
"club" text,
"wins" text,
"last_win" text,
"runners_up" text,
"last_final_lost" text
);
Question: How many wins did the club have with the last win in 2000?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
);
Question: Who has the highest TDs, with yards of 9, and carries smaller than 13?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
);
Question: What are the carries of the player Jeremiah Pope?
<|assistant|>
SELECT SUM("car") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the largest crowd that was in at... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_picks" (
"round" text,
"player" text,
"position" text,
"team" text,
"college" text
);
Question: Who plays g position for the st. louis bombers?
<|assistant|>
SELECT "player" FROM "other_p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_picks" (
"round" text,
"player" text,
"position" text,
"team" text,
"college" text
);
Question: Who plays f position for depauw?
<|assistant|>
SELECT "player" FROM "other_picks" WHERE "po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_picks" (
"round" text,
"player" text,
"position" text,
"team" text,
"college" text
);
Question: What position does the saint louis player play?
<|assistant|>
SELECT "position" FROM "other... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_picks" (
"round" text,
"player" text,
"position" text,
"team" text,
"college" text
);
Question: Who plays for sam houston state?
<|assistant|>
SELECT "player" FROM "other_picks" WHERE "co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "waterford_and_limerick_railway" (
"year" text,
"type" text,
"nos" text,
"gswr_class" real,
"gswr_nos" text,
"gsr_class" text,
"inchicore_class" text,
"withdrawn" text
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "waterford_and_limerick_railway" (
"year" text,
"type" text,
"nos" text,
"gswr_class" real,
"gswr_nos" text,
"gsr_class" text,
"inchicore_class" text,
"withdrawn" text
);
Question: What In... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "waterford_and_limerick_railway" (
"year" text,
"type" text,
"nos" text,
"gswr_class" real,
"gswr_nos" text,
"gsr_class" text,
"inchicore_class" text,
"withdrawn" text
);
Question: What In... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "waterford_and_limerick_railway" (
"year" text,
"type" text,
"nos" text,
"gswr_class" real,
"gswr_nos" text,
"gsr_class" text,
"inchicore_class" text,
"withdrawn" text
);
Question: Which G... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Crowd has a Home team score of 15.2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Home team score has an Away team sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which number of Crowd has an Away team sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "serial_details_by_episode" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: On the episode that had a run time of 24:57, how man... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hazleton_mountaineers_epbl" (
"year" text,
"league" text,
"record" text,
"reg_season" text,
"playoffs" text
);
Question: What year had a record of 4-21?
<|assistant|>
SELECT "year" FROM "hazlet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hazleton_mountaineers_epbl" (
"year" text,
"league" text,
"record" text,
"reg_season" text,
"playoffs" text
);
Question: What regular season had a record of 16-12?
<|assistant|>
SELECT "reg_sea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hazleton_mountaineers_epbl" (
"year" text,
"league" text,
"record" text,
"reg_season" text,
"playoffs" text
);
Question: What is the regular season info that had a record of 20-10?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Tell me the 1st leg for asfa rabat
<|assistant|>
SELECT "1st_leg" FROM "qualifyin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Tell me the 2nd leg for alemannia aachen
<|assistant|>
SELECT "2nd_leg" FROM "qua... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Tell me the 1st leg for antwerp bc
<|assistant|>
SELECT "1st_leg" FROM "qualifyin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Tell me the team 2 for handelsministerium vienna
<|assistant|>
SELECT "team_num2"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date did the away team Melbourne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What home team played the away team Sout... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the name of the away team that p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the name of the away team that s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "counties" (
"county" text,
"year_founded" text,
"county_seat" text,
"2010_census_population" real,
"july_1_2012_population_estimate" real,
"area_sq_mi" real,
"land_area_sq_mi" real
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "counties" (
"county" text,
"year_founded" text,
"county_seat" text,
"2010_census_population" real,
"july_1_2012_population_estimate" real,
"area_sq_mi" real,
"land_area_sq_mi" real
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "counties" (
"county" text,
"year_founded" text,
"county_seat" text,
"2010_census_population" real,
"july_1_2012_population_estimate" real,
"area_sq_mi" real,
"land_area_sq_mi" real
);
Quest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hyperons" (
"particle" text,
"symbol" text,
"makeup" text,
"rest_mass_me_v_c_2" text,
"isospin_i" text,
"spin_parity_j_p" text,
"commonly_decays_to" text
);
Question: Which Particle has a R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hyperons" (
"particle" text,
"symbol" text,
"makeup" text,
"rest_mass_me_v_c_2" text,
"isospin_i" text,
"spin_parity_j_p" text,
"commonly_decays_to" text
);
Question: Which Particle has an ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hyperons" (
"particle" text,
"symbol" text,
"makeup" text,
"rest_mass_me_v_c_2" text,
"isospin_i" text,
"spin_parity_j_p" text,
"commonly_decays_to" text
);
Question: When the Makeup is u s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hyperons" (
"particle" text,
"symbol" text,
"makeup" text,
"rest_mass_me_v_c_2" text,
"isospin_i" text,
"spin_parity_j_p" text,
"commonly_decays_to" text
);
Question: Which Particle has an ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hyperons" (
"particle" text,
"symbol" text,
"makeup" text,
"rest_mass_me_v_c_2" text,
"isospin_i" text,
"spin_parity_j_p" text,
"commonly_decays_to" text
);
Question: Which Particle has a M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hyperons" (
"particle" text,
"symbol" text,
"makeup" text,
"rest_mass_me_v_c_2" text,
"isospin_i" text,
"spin_parity_j_p" text,
"commonly_decays_to" text
);
Question: Which Particle has a R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammy_awards_and_nominations" (
"year" real,
"category" text,
"genre" text,
"title" text,
"result" text
);
Question: What was the title of Ashanti's 2003 rap song?
<|assistant|>
SELECT "title"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1999_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
);
Question: How many tries did the player Paul Sykes take when he earned 0 points?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1999_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
);
Question: Mike Forshaw had 0 goals and 28 points. What is his position?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How big is the Venue of Brunswick Street ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the Away Team score of North Melb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_quarters_and_support_regiments" (
"unit" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: What was the number of Personal Staff Units Killed?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_quarters_and_support_regiments" (
"unit" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: What was the Complement of Artillery Corps Units that had 0 off... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_quarters_and_support_regiments" (
"unit" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: How many were Wounded while in a Unit with a Complement of 83 o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_quarters_and_support_regiments" (
"unit" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: How many of the Royal Waggon Train Unit were Missing while havi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_quarters_and_support_regiments" (
"unit" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: How many were Wounded in the Artillery Corps unit while having ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_27_15_12" (
"outcome" text,
"date" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What suface during the game that had Yevgeny Kafelnikov as an opponent?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the Home team's score when the Aw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"home_away" text,
"result" text
);
Question: What was the earliest week that the Storm played the San Jose Sabercats?
<|assistant|>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.