text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: Which competition had the score 1-0?
<|assistant|>
SELECT "competition" FROM "international_goals" WHERE "score"='1-0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "under_construction" (
"stadium" text,
"capacity" real,
"city" text,
"country" text,
"tenant" text,
"opening" real
);
Question: Timsah arena is in what country?
<|assistant|>
SELECT "country" FROM "under_construction" WHERE "stadium"='timsah arena';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_classification" (
"cyclist" text,
"country" text,
"team" text,
"time" text,
"uci_pro_tour_points" text
);
Question: What country is Relax-Gam from?
<|assistant|>
SELECT "country" FROM "general_classification" WHERE "team"='relax-gam';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_classification" (
"cyclist" text,
"country" text,
"team" text,
"time" text,
"uci_pro_tour_points" text
);
Question: Who is Gerolsteiner's cyclist?
<|assistant|>
SELECT "cyclist" FROM "general_classification" WHERE "team"='gerolsteiner';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_classification" (
"cyclist" text,
"country" text,
"team" text,
"time" text,
"uci_pro_tour_points" text
);
Question: What is Davide Rebellin' UCI ProTour Points?
<|assistant|>
SELECT "uci_pro_tour_points" FROM "general_classification" WHERE "cyclist"='davide rebellin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was North Melbourne's score when they were the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_17" WHERE "home_team"='north melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where did Footscray play as the away team?
<|assistant|>
SELECT "venue" FROM "round_17" WHERE "away_team"='footscray';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team's score in the match at Lake Oval?
<|assistant|>
SELECT "away_team_score" FROM "round_17" WHERE "venue"='lake oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the sum of the crowds that watched Fitzroy play as the away team?
<|assistant|>
SELECT SUM("crowd") FROM "round_17" WHERE "away_team"='fitzroy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscoring" (
"rank" real,
"name" text,
"years" text,
"goals" real,
"apps" real
);
Question: What is the sum of rank with years 1996–2012 and apps greater than 340?
<|assistant|>
SELECT SUM("rank") FROM "goalscoring" WHERE "years"='1996–2012' AND "apps">340;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"nationality" text,
"position" text,
"from" real,
"school_country" text
);
Question: Which player held the position of guard prior to 1982?
<|assistant|>
SELECT "player" FROM "c" WHERE "from"<1982 AND "position"='guard';<|endoftext|> |
<|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: What was the away team that faced Carlton?
<|assistant|>
SELECT "away_team" FROM "round_6" WHERE "home_team"='carlton';<|endoftext|> |
<|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: What was the largest crowd to see the away team score 10.6 (66)?
<|assistant|>
SELECT MAX("crowd") FROM "round_6" WHERE "away_team_score"='10.6 (66)';<|endoftext|> |
<|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: What is the total crowd size that saw Geelong play as the away team?
<|assistant|>
SELECT COUNT("crowd") FROM "round_6" WHERE "away_team"='geelong';<|endoftext|> |
<|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: What away team saw their opponents score 4.5 (29)?
<|assistant|>
SELECT "away_team" FROM "round_6" WHERE "home_team_score"='4.5 (29)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: How many wins did Hobbs had a 15th finish at poles 0?
<|assistant|>
SELECT "wins" FROM "career_summary" WHERE "poles"='0' AND "final_placing"='15th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: What are the points for the GP3 series with 2 podiums?
<|assistant|>
SELECT "points" FROM "career_summary" WHERE "series"='gp3 series' AND "podiums"='2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: Which races have #2 podiums?
<|assistant|>
SELECT "races" FROM "career_summary" WHERE "podiums"='2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: What was the 2009 final placing?
<|assistant|>
SELECT "final_placing" FROM "career_summary" WHERE "season"=2009;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
Question: What was the points with 7 races?
<|assistant|>
SELECT "points" FROM "career_summary" WHERE "races"='7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue had south melbourne as the home team?
<|assistant|>
SELECT "venue" FROM "round_1" WHERE "home_team"='south melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue had collingwood as the away team?
<|assistant|>
SELECT "venue" FROM "round_1" WHERE "away_team"='collingwood';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team score when south melbourne was the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_1" WHERE "home_team"='south melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What day was south melbourne the away squad?
<|assistant|>
SELECT "date" FROM "round_1" WHERE "away_team"='melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What position did he finish after 1998 and a note time of 2:31:40?
<|assistant|>
SELECT "position" FROM "achievements" WHERE "year">1998 AND "notes"='2:31:40';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What venue featured a notes of 2:38:44?
<|assistant|>
SELECT "venue" FROM "achievements" WHERE "notes"='2:38:44';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What date in a week later than 8 had an attendance of more than 57,893, and a Opponent of at atlanta falcons?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week">8 AND "attendance">'57,893' AND "opponent"='at atlanta falcons';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: Who did they play against in a week after 6 and the result was l 30–24?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week">6 AND "result"='l 30–24';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What opponent has a Result of w 31–0?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "result"='w 31–0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: During which round was the final cornerback drafted for the New England Patriots in 2005?
<|assistant|>
SELECT MAX("round") FROM "2005_new_england_patriots_draft_selectio" WHERE "position"='cornerback';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_and_lowest_scoring_performances" (
"dance" text,
"best_dancer" text,
"best_score" real,
"worst_dancer" text,
"worst_score" real
);
Question: What dance was Leeza Gibbons the worst dancer for, receiving a score lower than 15?
<|assistant|>
SELECT MIN("best_score") FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer"='leeza gibbons' AND "worst_score"<15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_and_lowest_scoring_performances" (
"dance" text,
"best_dancer" text,
"best_score" real,
"worst_dancer" text,
"worst_score" real
);
Question: What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?
<|assistant|>
SELECT SUM("worst_score") FROM "highest_and_lowest_scoring_performances" WHERE "best_dancer"='apolo anton ohno' AND "best_score">30;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the biggest crowd when carlton is the away squad?
<|assistant|>
SELECT MAX("crowd") FROM "round_13" WHERE "away_team"='carlton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the sum of crowd(s) when richmond is the away squad?
<|assistant|>
SELECT SUM("crowd") FROM "round_13" WHERE "away_team"='richmond';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"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 in the game played at glenferrie oval?
<|assistant|>
SELECT "home_team_score" FROM "round_13" WHERE "venue"='glenferrie oval';<|endoftext|> |
<|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 was the result of the event against Nate Mohr?
<|assistant|>
SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='nate mohr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When the VFL played Junction Oval what was the home team score?
<|assistant|>
SELECT "home_team_score" FROM "round_2" WHERE "venue"='junction oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was away team Geelong's crowd numbers?
<|assistant|>
SELECT "crowd" FROM "round_2" WHERE "away_team"='geelong';<|endoftext|> |
<|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: What date did the home team score 12.7 (79)?
<|assistant|>
SELECT "date" FROM "round_6" WHERE "home_team_score"='12.7 (79)';<|endoftext|> |
<|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: What is the date they played against fitzroy?
<|assistant|>
SELECT "date" FROM "round_6" WHERE "away_team"='fitzroy';<|endoftext|> |
<|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: What was the team they played when the home team scored 6.10 (46)?
<|assistant|>
SELECT "away_team" FROM "round_6" WHERE "home_team_score"='6.10 (46)';<|endoftext|> |
<|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: How large was the crowd when they played at princes park?
<|assistant|>
SELECT SUM("crowd") FROM "round_6" WHERE "venue"='princes park';<|endoftext|> |
<|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: What was the away team that scored 12.11 (83)?
<|assistant|>
SELECT "away_team" FROM "round_6" WHERE "away_team_score"='12.11 (83)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What day does the home team score 10.10 (70)?
<|assistant|>
SELECT "date" FROM "round_2" WHERE "home_team_score"='10.10 (70)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who is the away team at junction oval?
<|assistant|>
SELECT "away_team" FROM "round_2" WHERE "venue"='junction oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"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's score at princes park?
<|assistant|>
SELECT "away_team_score" FROM "round_2" WHERE "venue"='princes park';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "internet_availability" (
"nation" text,
"population_thousands" real,
"internet_subscriptions_2000_thousands_of_users" real,
"internet_subscriptions_2008_thousands_of_users" real,
"pct_growth_2000_2008" real,
"pct_internet_users" real
);
Question: What was the highest percentage of internet users a nation with a 1622% growth in 2000-2008 had?
<|assistant|>
SELECT MAX("pct_internet_users") FROM "internet_availability" WHERE "pct_growth_2000_2008"=1622;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team when Footscray was the away team?
<|assistant|>
SELECT "home_team" FROM "round_16" WHERE "away_team"='footscray';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the away team when the home team scored 20.15 (135)?
<|assistant|>
SELECT "away_team_score" FROM "round_16" WHERE "home_team_score"='20.15 (135)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team when the away team scored 5.10 (40)?
<|assistant|>
SELECT "home_team" FROM "round_16" WHERE "away_team_score"='5.10 (40)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team's score at the game played at Punt Road Oval with a crowd over 20,000?
<|assistant|>
SELECT "home_team_score" FROM "round_16" WHERE "crowd">'20,000' AND "venue"='punt road oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What day did the team play the buffalo bills?
<|assistant|>
SELECT "date" FROM "exhibition_schedule" WHERE "opponent"='buffalo bills';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1958_1963" (
"year" real,
"bb_pop" text,
"bb_cw" text,
"bb_rb" text,
"bb_el" text,
"cb_cw" text,
"riaa" text
);
Question: What is the BB Pop for the song with RIAA of G that was in a year earlier than 1961?
<|assistant|>
SELECT "bb_pop" FROM "1958_1963" WHERE "riaa"='g' AND "year"<1961;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_goalscorers" (
"name" text,
"years" text,
"league_a" text,
"fa_cup" text,
"league_cup_b" text,
"other" text,
"total" text
);
Question: Which player has an Other of 3 (15)?
<|assistant|>
SELECT "name" FROM "top_goalscorers" WHERE "other"='3 (15)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
Question: What Name has a Time of 01:17:01?
<|assistant|>
SELECT "name" FROM "21st_century" WHERE "time"='01:17:01';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
Question: What is the Magnitude on the Date May 28, 2004?
<|assistant|>
SELECT "magnitude" FROM "21st_century" WHERE "date"='may 28, 2004';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
Question: What Name has a Time of 01:56:52?
<|assistant|>
SELECT "name" FROM "21st_century" WHERE "time"='01:56:52';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
Question: What number of Fatalities did the Epicenter Māzandarān have?
<|assistant|>
SELECT "fatalities" FROM "21st_century" WHERE "epicenter"='māzandarān';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
Question: What number of Fatalties is associated with the Time of 12:38:46?
<|assistant|>
SELECT "fatalities" FROM "21st_century" WHERE "time"='12:38:46';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
Question: What is the Time when the Epicenter was Bam?
<|assistant|>
SELECT "time" FROM "21st_century" WHERE "epicenter"='bam';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_judges" (
"state" text,
"born_died" text,
"active_service" text,
"chief_judge" text,
"senior_status" text,
"appointed_by" text,
"reason_for_termination" text
);
Question: Who did Clinton appoint as a Chief Judge?
<|assistant|>
SELECT "chief_judge" FROM "former_judges" WHERE "appointed_by"='clinton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the smallest crowd for a Carlton away game?
<|assistant|>
SELECT MIN("crowd") FROM "round_17" WHERE "away_team"='carlton';<|endoftext|> |
<|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 time is 1:13?
<|assistant|>
SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='1:13';<|endoftext|> |
<|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: Who was the opponent when the time was 1:47?
<|assistant|>
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='1:47';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue did South Melbourne play as the away team?
<|assistant|>
SELECT "venue" FROM "round_14" WHERE "away_team"='south melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team's score at the match in front of 19,115 at Punt Road Oval?
<|assistant|>
SELECT "home_team_score" FROM "round_14" WHERE "crowd">'19,115' AND "venue"='punt road oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team's score in the match at Victoria Park?
<|assistant|>
SELECT "away_team_score" FROM "round_14" WHERE "venue"='victoria park';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was thome home team whose opponent scored 9.14 (68) in front of 19,115?
<|assistant|>
SELECT "home_team" FROM "round_14" WHERE "crowd">'19,115' AND "away_team_score"='9.14 (68)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1999_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: Which position has a Round of 7, and a College of kansas state?
<|assistant|>
SELECT "position" FROM "1999_new_england_patriots_draft_selectio" WHERE "round"=7 AND "college"='kansas state';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1999_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: How many rounds have an Overall larger than 17, and a Position of quarterback?
<|assistant|>
SELECT COUNT("round") FROM "1999_new_england_patriots_draft_selectio" WHERE "overall">17 AND "position"='quarterback';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1999_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: Which average overall has a Round of 1, and a Position of center?
<|assistant|>
SELECT AVG("overall") FROM "1999_new_england_patriots_draft_selectio" WHERE "round"=1 AND "position"='center';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where did North Melbourne play as the home team?
<|assistant|>
SELECT "venue" FROM "round_10" WHERE "home_team"='north melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the attendance when VFL played MCG?
<|assistant|>
SELECT MAX("crowd") FROM "round_10" WHERE "venue"='mcg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team score when the away team scored 10.10 (70)?
<|assistant|>
SELECT "home_team_score" FROM "round_1" WHERE "away_team_score"='10.10 (70)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people were in the crowd when the away team scored 9.12 (66)?
<|assistant|>
SELECT "crowd" FROM "round_1" WHERE "away_team_score"='9.12 (66)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"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 of the away team when they played at Windy Hill?
<|assistant|>
SELECT "away_team_score" FROM "round_1" WHERE "venue"='windy hill';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How large was the crowd when the away team was melbourne?
<|assistant|>
SELECT "crowd" FROM "round_1" WHERE "away_team"='melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people watched a Glenferrie Oval?
<|assistant|>
SELECT COUNT("crowd") FROM "round_15" WHERE "venue"='glenferrie oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How faced Geelong at home?
<|assistant|>
SELECT "away_team_score" FROM "round_15" WHERE "home_team"='geelong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people watch Essendon as an away team?
<|assistant|>
SELECT SUM("crowd") FROM "round_15" WHERE "away_team"='essendon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where did South Melbourne go to play a team at home?
<|assistant|>
SELECT "home_team" FROM "round_15" WHERE "away_team"='south melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where did a home team score 9.9 (63)?
<|assistant|>
SELECT "venue" FROM "round_15" WHERE "home_team_score"='9.9 (63)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is essendon's away team score?
<|assistant|>
SELECT "away_team_score" FROM "round_15" WHERE "away_team"='essendon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"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 an away team score of 11.15 (81)?
<|assistant|>
SELECT "home_team" FROM "round_15" WHERE "away_team_score"='11.15 (81)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the date with geelong as Away team?
<|assistant|>
SELECT "date" FROM "round_15" WHERE "away_team"='geelong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the highest crowd at arden street oval?
<|assistant|>
SELECT MAX("crowd") FROM "round_15" WHERE "venue"='arden street oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is geelong's aberage crowd as Away Team?
<|assistant|>
SELECT AVG("crowd") FROM "round_15" WHERE "away_team"='geelong';<|endoftext|> |
<|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: What was the date of the game when North Melbourne was the away team?
<|assistant|>
SELECT "date" FROM "round_6" WHERE "away_team"='north melbourne';<|endoftext|> |
<|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: Where was the game held when the home team scored 8.18 (66)?
<|assistant|>
SELECT "venue" FROM "round_6" WHERE "home_team_score"='8.18 (66)';<|endoftext|> |
<|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: Who was the away team when the home team scored 16.16 (112)?
<|assistant|>
SELECT "away_team" FROM "round_6" WHERE "home_team_score"='16.16 (112)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_1_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the team with grid 9?
<|assistant|>
SELECT "team" FROM "race_1_results" WHERE "grid"=9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_1_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What team features garth tander?
<|assistant|>
SELECT "team" FROM "race_1_results" WHERE "name"='garth tander';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
Question: How many stages are in a distance of 2,192 km?
<|assistant|>
SELECT "stages" FROM "marlboro_tour" WHERE "distance"='2,192 km';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
Question: How long was the 16 staged event in 1997?
<|assistant|>
SELECT "distance" FROM "marlboro_tour" WHERE "stages"='16' AND "year"='1997';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
Question: What was the winning time in 1984?
<|assistant|>
SELECT "time" FROM "marlboro_tour" WHERE "year"='1984';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
Question: Who won the 17 staged event in 1987?
<|assistant|>
SELECT "winner" FROM "marlboro_tour" WHERE "stages"='17' AND "year"='1987';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
Question: Which event happened in 1988?
<|assistant|>
SELECT "name" FROM "marlboro_tour" WHERE "year"='1988';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Where did Rick Mears win, after starting in Pole Position?
<|assistant|>
SELECT "city_location" FROM "races" WHERE "pole_position"='rick mears' AND "winning_driver"='rick mears';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Where is the budweiser/g. i. joe's 200?
<|assistant|>
SELECT "city_location" FROM "races" WHERE "race_name"='budweiser/g. i. joe''s 200';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Where is Emerson Fittipaldi starting in Pole position?
<|assistant|>
SELECT "city_location" FROM "races" WHERE "pole_position"='emerson fittipaldi';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.