text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
);... |
<|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 "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 "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 "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 "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 "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: 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 "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What was the year of the finish with the cla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the record for the opponent Atlanta Hawks?
<|assistant|>
SELECT "record" FROM "march" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: Which opponent had a 113-124 score?
<|assistant|>
SELECT "opponent" FROM "march" WHERE "score"='113... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the final record for the Philadelphia 76ers?
<|assistant|>
SELECT "record" FROM "march" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the record for the Detroit Pistons on March 7?
<|assistant|>
SELECT "record" FROM "march" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"round" real,
"pick" text,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the WR player?
<|assistant|>
SELECT "player" FROM "cfl_draft" WHERE "positio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "course" (
"number" real,
"name" text,
"kilometer" real,
"pavement" text,
"length_m" real,
"average_climb_pct" real
);
Question: What is the Length (m) of the Koppenberg course?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "course" (
"number" real,
"name" text,
"kilometer" real,
"pavement" text,
"length_m" real,
"average_climb_pct" real
);
Question: What is the Kilometer of the Berendries asphalt course with an ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "course" (
"number" real,
"name" text,
"kilometer" real,
"pavement" text,
"length_m" real,
"average_climb_pct" real
);
Question: What is the Number of the Koppenberg course with less than 195 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gothic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: Which part three is class 4?
<|assistant|>
SELECT "part_3" FROM "gothic" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gothic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: Which part one is class 7d?
<|assistant|>
SELECT "part_1" FROM "gothic" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gothic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: Which part 3 has class 7b?
<|assistant|>
SELECT "part_3" FROM "gothic" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gothic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: Which class has a part 2 of halp warþ?
<|assistant|>
SELECT "class" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "gothic" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
Question: Which part 2 has a verb that means to leap?
<|assistant|>
SELECT "part_2" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: Who are the semifinalists when the tournament is in Cinc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: What is the finalist in the week of March 12?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: What is the May 7 finalist?
<|assistant|>
SELECT "finali... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
Question: For the week of August 6, who is the finalist?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
Question: What is the lowest Pick #, when College is "Jackson State"?
<|assistant|>
SELECT MIN("pic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
Question: What is Pick #, when Round is "10"?
<|assistant|>
SELECT "pick_num" FROM "nfl_draft" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
Question: What is Player, when Round is greater than 8, when Pick # is greater than 234, and when C... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
Question: What is the average Round, when Player is "Gurnest Brown", and when Pick # is greater tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
Question: What is the lowest Pick #, when College is "Louisville", and when Round is less than 10?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which Class has a Frequency MHz larger than 91.7, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which Frequency MHz has a Call sign of k210dv?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which City of license has a Frequency MHz larger than ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which ERP W has a Frequency MHz larger than 89.1, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which FCC info has a City of license of burley, idaho,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: For the game played on 31 July 2007 on clay what was the score?
<|assistant|>
SELECT "sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: When was Pablo Andújar the opponent?
<|assistant|>
SELECT "date" FROM "singles_5" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the decision when Buffalo was the visitor?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Who is the visiting team when Minnesota is the home team?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the date of the match when Phoenix is the home tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
Question: Who is the quarterback for Arkansas State?
<|assistant|>
SELECT "player" FROM "nfl_draft"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
Question: What is the total round of the 129 pick?
<|assistant|>
SELECT COUNT("round") FROM "nfl_dr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the record for January 19?
<|assistant|>
SELECT "record" FROM "january" WHERE "date"='jan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What record has the score 111-89?
<|assistant|>
SELECT "record" FROM "january" WHERE "score"='111... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: What is the record for January 7?
<|assistant|>
SELECT "record" FROM "january" WHERE "date"='janu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"h_a_n" text,
"opponent" text,
"score" text,
"record" text
);
Question: Who was the opponent on January 7?
<|assistant|>
SELECT "opponent" FROM "january" WHERE "date"='j... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: What home team scored 102-87?
<|assistant|>
SELECT "home... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: What venue had a Score of 120-108?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: What was the score when Sydney Spirit was the home team?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: What was the score at North Shore Events Centre?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
Question: What is the home team venue for the New Zealand Breakers... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Who had the decision when the visitor was Detroit and the ... |
<|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 "opinion_polling_for_the_united_states_se" (
"poll_source" text,
"dates_administered" text,
"democrat_larry_la_rocco" text,
"republican_jim_risch" text,
"lead_margin" real
);
Question: Name the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_polling_for_the_united_states_se" (
"poll_source" text,
"dates_administered" text,
"democrat_larry_la_rocco" text,
"republican_jim_risch" text,
"lead_margin" real
);
Question: Which Pol... |
<|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: For week 15, what was the total number of attendance recorded?
<|assistant|>
SELECT COUNT("a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: what is the score when the home team is king's lynn?
<|assistant|>
SELECT "score"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: what is the home team when the away team is frickley colliery?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: what is the tie no, on 24 november 1971 and the away team is king's lynn?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lineae" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"year_named" real
);
Question: What is the Longitude of the 61.0s Latitude?
<|assistant|>
SELECT "longitude" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lineae" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"year_named" real
);
Question: What name has a longitude of 213.0e?
<|assistant|>
SELECT "name" FROM "lineae" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rides_and_attractions" (
"name" text,
"type" text,
"themed_area" text,
"manufacturer" text,
"opened" text
);
Question: Which type had an unknown manufacturer?
<|assistant|>
SELECT "type" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rides_and_attractions" (
"name" text,
"type" text,
"themed_area" text,
"manufacturer" text,
"opened" text
);
Question: What is the name of the dreamworks experience from Ferrari?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rides_and_attractions" (
"name" text,
"type" text,
"themed_area" text,
"manufacturer" text,
"opened" text
);
Question: Which type opened in 1982?
<|assistant|>
SELECT "type" FROM "rides_and_att... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rides_and_attractions" (
"name" text,
"type" text,
"themed_area" text,
"manufacturer" text,
"opened" text
);
Question: What themed area opened in 2010 as an animal show?
<|assistant|>
SELECT "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: Which visitor lives in Minnesota?
<|assistant|>
SELECT "visitor" FROM "game_log" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: What was the score on november 21?
<|assistant|>
SELECT "score" FROM "game_log" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who has the lead in the season where Cathrine Norberg is second and Anna Rindeskog is third?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the score of game 21?
<|assistant|>
SELECT "score" FROM "ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the score of the game on December 22?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the record when the game is greater than 24?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_list" (
"rank" text,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_list" (
"rank" text,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_list" (
"rank" text,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
Questio... |
<|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" real,
"population" real,
"census_ranking" text
);
Question: What is the status of the community that has an area larger than 5.2 ... |
<|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" real,
"population" real,
"census_ranking" text
);
Question: What is saint-andré's population?
<|assistant|>
SELECT "population" F... |
<|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" text
);
Question: what's the results of week 12?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week"=12... |
<|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" text
);
Question: What opponent has 76,202 attendance ?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_15_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" real,
"holmenkollen" text
);
Question: What is the FIS Nordic World Ski Championship y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_15_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" real,
"holmenkollen" text
);
Question: Which country has a FIS Nordic World Ski Champi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: When the Grids is less than 2 what are the total laps?
<|assistant|>
SELECT COUNT("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Which Player has a To par of –1?
<|assistant|>
SELECT "player" FROM "first_round" WHERE "to_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Which Player has a To par of –4?
<|assistant|>
SELECT "player" FROM "first_round" WHERE "to_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Which Place has a Score larger than 68, and a Player of david ogrin?
<|assistant|>
SELECT "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Which Player has a Place of t2?
<|assistant|>
SELECT "player" FROM "first_round" WHERE "plac... |
<|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 event did Mikhail Avetis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammar_and_rules" (
"trident" text,
"gecko" text,
"web_kit" text,
"khtml" text,
"presto" text,
"prince_xml" text
);
Question: For the item that has a Gecko of 'font', what is the KHTML value... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammar_and_rules" (
"trident" text,
"gecko" text,
"web_kit" text,
"khtml" text,
"presto" text,
"prince_xml" text
);
Question: What is the Prince XML value for the engine that has a Gecko val... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammar_and_rules" (
"trident" text,
"gecko" text,
"web_kit" text,
"khtml" text,
"presto" text,
"prince_xml" text
);
Question: What is the Gecko value for the item that has a Trident value of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammar_and_rules" (
"trident" text,
"gecko" text,
"web_kit" text,
"khtml" text,
"presto" text,
"prince_xml" text
);
Question: What is the Gecko value for the item that has a Prince XML value... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammar_and_rules" (
"trident" text,
"gecko" text,
"web_kit" text,
"khtml" text,
"presto" text,
"prince_xml" text
);
Question: Which Trident version has a Gecko value of 19.0?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grammar_and_rules" (
"trident" text,
"gecko" text,
"web_kit" text,
"khtml" text,
"presto" text,
"prince_xml" text
);
Question: For the item with a Prince XML value of 'font', what is the WebK... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Which Played has a T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.