text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"inns" real,
"runs" real,
"high_score" real,
"average" real,
"catches" real,
"stump" real
);
Question: What is the total number of runs for the player with fewer than 9 Inns?
<|assistant|>
SELECT COUNT("runs") FROM "batting_averages" WHERE "inns"<9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"inns" real,
"runs" real,
"high_score" real,
"average" real,
"catches" real,
"stump" real
);
Question: What is the smallest average for the player with 13 matches and fewer than 7 catches?
<|assistant|>
SELECT MIN("average") FROM "batting_averages" WHERE "matches"=13 AND "catches"<7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Which city is the host of the University of Texas?
<|assistant|>
SELECT "city" FROM "first_and_second_rounds" WHERE "host"='university of texas';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: In which region is the Thompson-Boling arena located?
<|assistant|>
SELECT "region" FROM "first_and_second_rounds" WHERE "venue"='thompson-boling arena';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Who is the host in the city of Philadelphia?
<|assistant|>
SELECT "host" FROM "first_and_second_rounds" WHERE "city"='philadelphia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Which city in the mideast region is the hot of Temple University?
<|assistant|>
SELECT "city" FROM "first_and_second_rounds" WHERE "region"='mideast' AND "host"='temple university';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Which city is the University of Montana located in?
<|assistant|>
SELECT "city" FROM "first_and_second_rounds" WHERE "host"='university of montana';<|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 was the away team score at Hawthorn?
<|assistant|>
SELECT "away_team_score" FROM "round_13" WHERE "home_team"='hawthorn';<|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: Who went to Geelong to play?
<|assistant|>
SELECT "away_team" FROM "round_13" WHERE "home_team"='geelong';<|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: Who did Collingwood play at home?
<|assistant|>
SELECT "home_team" FROM "round_13" WHERE "away_team"='collingwood';<|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: When did an away team score 7.8 (50)?
<|assistant|>
SELECT "date" FROM "round_13" WHERE "away_team_score"='7.8 (50)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_density" (
"rank" text,
"state" text,
"population" real,
"area_km" real,
"density" real
);
Question: What population has an area (km²) of 62,848 and a density less than 37.7?
<|assistant|>
SELECT COUNT("population") FROM "by_density" WHERE "area_km"='62,848' AND "density"<37.7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_density" (
"rank" text,
"state" text,
"population" real,
"area_km" real,
"density" real
);
Question: Which population is the greatest, has a density of 20.3, and an area (km²) larger than 50,350?
<|assistant|>
SELECT MAX("population") FROM "by_density" WHERE "density"=20.3 AND "area_km">'50,350';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_density" (
"rank" text,
"state" text,
"population" real,
"area_km" real,
"density" real
);
Question: The state of Aguascalientes has an area (km²) larger than 151,571 and a density greater than 80.9, what is the rank?
<|assistant|>
SELECT "rank" FROM "by_density" WHERE "area_km">'151,571' AND "density">80.9 AND "state"='aguascalientes';<|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: Who was the home team at the game held at the Junction Oval?
<|assistant|>
SELECT "home_team" FROM "round_15" WHERE "venue"='junction 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: Where was the game held when Fitzroy was the away team?
<|assistant|>
SELECT "venue" FROM "round_15" WHERE "away_team"='fitzroy';<|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" text
);
Question: How many people attended the Rams game against the Kansas City Chiefs?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "opponent"='kansas city chiefs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is China's IATA?
<|assistant|>
SELECT "iata" FROM "references" WHERE "country"='china';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Where is the City of Douala?
<|assistant|>
SELECT "country" FROM "references" WHERE "city"='douala';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: Which airport is in South Africa and has a ICAO fajs?
<|assistant|>
SELECT "airport" FROM "references" WHERE "country"='south africa' AND "icao"='fajs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is Cuba's ICAO?
<|assistant|>
SELECT "icao" FROM "references" WHERE "country"='cuba';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is Angola's airport and ICAO of fnsa?
<|assistant|>
SELECT "airport" FROM "references" WHERE "country"='angola' AND "icao"='fnsa';<|endoftext|> |
<|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 team plays at home at Windy Hill?
<|assistant|>
SELECT "home_team" FROM "round_9" WHERE "venue"='windy hill';<|endoftext|> |
<|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 was the size of the crowd that saw the Home team score 11.10 (76)?
<|assistant|>
SELECT COUNT("crowd") FROM "round_9" WHERE "home_team_score"='11.10 (76)';<|endoftext|> |
<|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 was Footscray's score as an away team?
<|assistant|>
SELECT "away_team_score" FROM "round_9" WHERE "away_team"='footscray';<|endoftext|> |
<|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 was the home teams score agains the team that scored 7.15 (57)?
<|assistant|>
SELECT "home_team_score" FROM "round_9" WHERE "away_team_score"='7.15 (57)';<|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 day is richmond the away side?
<|assistant|>
SELECT "date" FROM "round_17" WHERE "away_team"='richmond';<|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: Who is the home team when hawthorn is the away team?
<|assistant|>
SELECT "home_team" FROM "round_17" WHERE "away_team"='hawthorn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scratchers" (
"game_name" text,
"price" text,
"top_prize" text,
"launch_date" text,
"odds_of_winning" text
);
Question: What is the name of the game with odds of winning 1 in 4.23 with a top prize of $15,000?
<|assistant|>
SELECT "game_name" FROM "scratchers" WHERE "odds_of_winning"='1 in 4.23' AND "top_prize"='$15,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scratchers" (
"game_name" text,
"price" text,
"top_prize" text,
"launch_date" text,
"odds_of_winning" text
);
Question: What is the launch date odds of winning 1 in 4.23 with a top prize of $15,000?
<|assistant|>
SELECT "launch_date" FROM "scratchers" WHERE "odds_of_winning"='1 in 4.23' AND "top_prize"='$15,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scratchers" (
"game_name" text,
"price" text,
"top_prize" text,
"launch_date" text,
"odds_of_winning" text
);
Question: What is the launch date odds of winning 1 in 4.54?
<|assistant|>
SELECT "launch_date" FROM "scratchers" WHERE "odds_of_winning"='1 in 4.54';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scratchers" (
"game_name" text,
"price" text,
"top_prize" text,
"launch_date" text,
"odds_of_winning" text
);
Question: What is the launch date odds of winning 1 in 4.44?
<|assistant|>
SELECT "launch_date" FROM "scratchers" WHERE "odds_of_winning"='1 in 4.44';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scratchers" (
"game_name" text,
"price" text,
"top_prize" text,
"launch_date" text,
"odds_of_winning" text
);
Question: What is the name of the game with a top prize of $888?
<|assistant|>
SELECT "game_name" FROM "scratchers" WHERE "top_prize"='$888';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "scratchers" (
"game_name" text,
"price" text,
"top_prize" text,
"launch_date" text,
"odds_of_winning" text
);
Question: What is the top price of $1 with a launch date on February 12, 2008?
<|assistant|>
SELECT "top_prize" FROM "scratchers" WHERE "price"='$1' AND "launch_date"='february 12, 2008';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_3_results" (
"name" text,
"team" text,
"laps" real,
"grid" real,
"points" real
);
Question: What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23?
<|assistant|>
SELECT MAX("laps") FROM "race_3_results" WHERE "points"<5 AND "team"='garry rogers motorsport' AND "grid"<23;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_3_results" (
"name" text,
"team" text,
"laps" real,
"grid" real,
"points" real
);
Question: What is the name of the driver who went 46 laps had less than 9 points and had a grid number under 12?
<|assistant|>
SELECT "name" FROM "race_3_results" WHERE "laps"=46 AND "points"<9 AND "grid"<12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"year" real,
"winner" text,
"score" text,
"runner_up" text,
"finals_venue_surface" text,
"city" text
);
Question: Where was the 1966 final played?
<|assistant|>
SELECT "finals_venue_surface" FROM "list_of_finals" WHERE "year"=1966;<|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 average Worst score for Mario Lopez as the Best dancer and Tango as the Dance?
<|assistant|>
SELECT AVG("worst_score") FROM "highest_and_lowest_scoring_performances" WHERE "best_dancer"='mario lopez' AND "dance"='tango';<|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 highest Best score for the Dance Mambo?
<|assistant|>
SELECT MAX("best_score") FROM "highest_and_lowest_scoring_performances" WHERE "dance"='mambo';<|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: Who is the Best dancer with the Worst dancer of Jerry Springer, a Best score of 29, and the Dance was the Quickstep?
<|assistant|>
SELECT "best_dancer" FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer"='jerry springer' AND "best_score"=29 AND "dance"='quickstep';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "averages" (
"rank_by_average" real,
"place" real,
"couple" text,
"total_points" real,
"number_of_dances" real,
"average" real
);
Question: How many dances placed below 1 with a point total of 40?
<|assistant|>
SELECT "number_of_dances" FROM "averages" WHERE "place">1 AND "total_points"=40;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "averages" (
"rank_by_average" real,
"place" real,
"couple" text,
"total_points" real,
"number_of_dances" real,
"average" real
);
Question: What is the lowest number of dances with a rank larger than 4 and a place of 8?
<|assistant|>
SELECT MIN("number_of_dances") FROM "averages" WHERE "rank_by_average">4 AND "place"=8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "averages" (
"rank_by_average" real,
"place" real,
"couple" text,
"total_points" real,
"number_of_dances" real,
"average" real
);
Question: What is the lowest number of dances with a less than 2 place and an average smaller than 27.5?
<|assistant|>
SELECT MIN("number_of_dances") FROM "averages" WHERE "place"<2 AND "average"<27.5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "europe_pool_a" (
"club" text,
"played" real,
"lost" real,
"drawn" real,
"against" real,
"diff" real,
"points" real
);
Question: What is the total difference for teams that played less than 6 games?
<|assistant|>
SELECT SUM("diff") FROM "europe_pool_a" WHERE "played"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "europe_pool_a" (
"club" text,
"played" real,
"lost" real,
"drawn" real,
"against" real,
"diff" real,
"points" real
);
Question: What is the highest number of games played for teams that lost over 5 games and had an against total of 228?
<|assistant|>
SELECT MAX("played") FROM "europe_pool_a" WHERE "lost">5 AND "against"=228;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "europe_pool_a" (
"club" text,
"played" real,
"lost" real,
"drawn" real,
"against" real,
"diff" real,
"points" real
);
Question: How many games lost for team(s) with less than 4 paints and against total of over 340?
<|assistant|>
SELECT COUNT("lost") FROM "europe_pool_a" WHERE "points"<4 AND "against">340;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What week was the game that had an attendance of 24,242?
<|assistant|>
SELECT "week" FROM "game_by_game_results" WHERE "attendance"='24,242';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the attendance of the game that had a score of l 35–14?
<|assistant|>
SELECT "attendance" FROM "game_by_game_results" WHERE "result"='l 35–14';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: When was the pre-Week 10 game that had an attendance of over 38,865?
<|assistant|>
SELECT "date" FROM "game_by_game_results" WHERE "week"<10 AND "attendance"='38,865';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_in_sports" (
"date" text,
"event" text,
"alternate_name_s" text,
"location" text,
"attendance" text,
"ppv_buyrate" text
);
Question: Which Location has a PPV Buyrate of 775,000?
<|assistant|>
SELECT "location" FROM "2006_in_sports" WHERE "ppv_buyrate"='775,000';<|endoftext|> |
<|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: Where did Geelong play as the away team?
<|assistant|>
SELECT "venue" FROM "round_5" WHERE "away_team"='geelong';<|endoftext|> |
<|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 was the away team's score against Hawthorn?
<|assistant|>
SELECT "away_team_score" FROM "round_5" WHERE "away_team"='hawthorn';<|endoftext|> |
<|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 was the largest crowd when the home team scored 14.7 (91)?
<|assistant|>
SELECT MAX("crowd") FROM "round_5" WHERE "home_team_score"='14.7 (91)';<|endoftext|> |
<|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 as the home team that scored 18.15 (123)?
<|assistant|>
SELECT "home_team" FROM "round_5" WHERE "home_team_score"='18.15 (123)';<|endoftext|> |
<|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 was the away team that scored 6.13 (49)?
<|assistant|>
SELECT "away_team" FROM "round_5" WHERE "away_team_score"='6.13 (49)';<|endoftext|> |
<|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: When Fitzroy was the home team, what was the away team's score?
<|assistant|>
SELECT "away_team_score" FROM "round_12" WHERE "home_team"='fitzroy';<|endoftext|> |
<|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 what date did the home team score 5.8 (38)?
<|assistant|>
SELECT "date" FROM "round_12" WHERE "home_team_score"='5.8 (38)';<|endoftext|> |
<|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: How big was the largest crowd recorded at the Arden Street Oval venue?
<|assistant|>
SELECT MAX("crowd") FROM "round_12" WHERE "venue"='arden street oval';<|endoftext|> |
<|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: How big was the crowd at the match where the away team had a score of 10.14 (74)?
<|assistant|>
SELECT COUNT("crowd") FROM "round_12" WHERE "away_team_score"='10.14 (74)';<|endoftext|> |
<|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 is the average crowd size at all matches where the home team scored 6.12 (48)?
<|assistant|>
SELECT AVG("crowd") FROM "round_12" WHERE "home_team_score"='6.12 (48)';<|endoftext|> |
<|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: At what venue did the match where the home team scored 8.6 (54) take place?
<|assistant|>
SELECT "venue" FROM "round_12" WHERE "home_team_score"='8.6 (54)';<|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 is the smallest attendance in week 1?
<|assistant|>
SELECT MIN("attendance") FROM "exhibition_schedule" WHERE "week"=1;<|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 is the larges week for the date august 9, 1968 and less than 64,020 in attendance?
<|assistant|>
SELECT MAX("week") FROM "exhibition_schedule" WHERE "date"='august 9, 1968' AND "attendance"<'64,020';<|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 is the smallest attendance number for august 9, 1968?
<|assistant|>
SELECT MIN("attendance") FROM "exhibition_schedule" WHERE "date"='august 9, 1968';<|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 was the result of the game on august 30, 1968?
<|assistant|>
SELECT "result" FROM "exhibition_schedule" WHERE "date"='august 30, 1968';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_wbfj_fm" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"facility_id" real,
"erp_w" real,
"height_m_ft" text,
"class" text,
"fcc_info" text
);
Question: What is the class of the w267an call sign?
<|assistant|>
SELECT "class" FROM "broadcast_translators_of_wbfj_fm" WHERE "call_sign"='w267an';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_wbfj_fm" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"facility_id" real,
"erp_w" real,
"height_m_ft" text,
"class" text,
"fcc_info" text
);
Question: What is the lowest ERP W of the 67829 Facility ID?
<|assistant|>
SELECT MIN("erp_w") FROM "broadcast_translators_of_wbfj_fm" WHERE "facility_id"=67829;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "broadcast_translators_of_wbfj_fm" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"facility_id" real,
"erp_w" real,
"height_m_ft" text,
"class" text,
"fcc_info" text
);
Question: What is the FCC info for the call sign with a frequency MHz of 101.3, a ERP W over 10, and a Facility ID smaller than 87027?
<|assistant|>
SELECT "fcc_info" FROM "broadcast_translators_of_wbfj_fm" WHERE "frequency_m_hz"=101.3 AND "erp_w">10 AND "facility_id"<87027;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"rank" real,
"score" real,
"date" text,
"player" text,
"opponent" text,
"minutes" real,
"fgm_fga" text,
"3_pm_3_pa" text,
"ftm_fta" text,
"off_reb" real,
"def_reb" real,
"assists" real,
"steals" real,
"blocks" real,
"turnovers" real,
"fouls" real,
"points" real
);
Question: What was the average of the Off Reb with steals less than 8 and FTM-FTA of 16-17?
<|assistant|>
SELECT AVG("off_reb") FROM "external_links" WHERE "ftm_fta"='16-17' AND "steals"<8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"song" text,
"release_date" text,
"release_info" text,
"formats" text,
"album" text
);
Question: Which song released on heavenly (hvn152)?
<|assistant|>
SELECT "song" FROM "singles" WHERE "release_info"='heavenly (hvn152)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"song" text,
"release_date" text,
"release_info" text,
"formats" text,
"album" text
);
Question: Which album had a release of heavenly (hvn95)?
<|assistant|>
SELECT "album" FROM "singles" WHERE "release_info"='heavenly (hvn95)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: What is the sum of all the rounds when a Florida State player was drafted?
<|assistant|>
SELECT COUNT("round") FROM "1997_new_england_patriots_draft_selectio" WHERE "college"='florida state';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: What is the average round in which a Safety with an overall rank higher than 89 was drafted?
<|assistant|>
SELECT AVG("round") FROM "1997_new_england_patriots_draft_selectio" WHERE "position"='safety' AND "overall">89;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"venue" text
);
Question: Where was 2010 tournament where the United States received the silver?
<|assistant|>
SELECT "venue" FROM "results" WHERE "silver"='united states' AND "year"=2010;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"venue" text
);
Question: Where was the tournament where Finland received the bronze and the United States received the silver?
<|assistant|>
SELECT "venue" FROM "results" WHERE "bronze"='finland' AND "silver"='united states';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"venue" text
);
Question: Who received the gold at the tournament at bratislava where the Czech Republic received the silver?
<|assistant|>
SELECT "gold" FROM "results" WHERE "silver"='czech republic' AND "venue"='bratislava';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"venue" text
);
Question: Where was the post 1991 tournament where the Czech Republic received the bronze and Russia received the silver?
<|assistant|>
SELECT "venue" FROM "results" WHERE "year">1991 AND "bronze"='czech republic' AND "silver"='russia';<|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 was the away team when the home team scored 10.12 (72)?
<|assistant|>
SELECT "away_team" FROM "round_2" WHERE "home_team_score"='10.12 (72)';<|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 was the away team at the game at Kardinia Park?
<|assistant|>
SELECT "away_team" FROM "round_2" WHERE "venue"='kardinia park';<|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 the smallest crowd for a Melbourne away game?
<|assistant|>
SELECT MIN("crowd") FROM "round_2" WHERE "away_team"='melbourne';<|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 was the home team that scored 10.12 (72)?
<|assistant|>
SELECT "home_team" FROM "round_2" WHERE "home_team_score"='10.12 (72)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What day did the team play on week 8?
<|assistant|>
SELECT "date" FROM "regular_season_schedule" WHERE "week"=8;<|endoftext|> |
<|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 average size of the crowd for matches held at Corio Oval?
<|assistant|>
SELECT AVG("crowd") FROM "round_12" WHERE "venue"='corio oval';<|endoftext|> |
<|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: For the match with an away team score of 16.21 (117), what was the home team score?
<|assistant|>
SELECT "home_team_score" FROM "round_12" WHERE "away_team_score"='16.21 (117)';<|endoftext|> |
<|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: For the match with a home team score of 11.14 (80), what was the venue?
<|assistant|>
SELECT "venue" FROM "round_12" WHERE "home_team_score"='11.14 (80)';<|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 home team played against St Kilda?
<|assistant|>
SELECT "home_team" FROM "round_14" WHERE "away_team"='st kilda';<|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: At what venue was South Melbourne the home team?
<|assistant|>
SELECT "venue" FROM "round_14" WHERE "home_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 Hawthorn's score when they were the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_14" WHERE "home_team"='hawthorn';<|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: At which venue did the away team score 7.7 (49)?
<|assistant|>
SELECT "venue" FROM "round_14" WHERE "away_team_score"='7.7 (49)';<|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 was the home team's score when they played at Lake Oval?
<|assistant|>
SELECT "home_team_score" FROM "round_13" WHERE "venue"='lake oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indicators" (
"country" text,
"area_km_2010" text,
"population_2011" text,
"gdp_ppp_intl_2011" text,
"gdp_ppp_per_capita_intl_2011" text,
"income_inequality_1994_2011_latest_available" text,
"hdi_2011" text,
"fsi_2012" text,
"cpi_2011" text,
"ief_2011" text,
"gpi_2012" text,
"wpfi_2011_2012" text,
"di_2011" text
);
Question: What is the latest available income inequality for the country with a population of 21,315,135?
<|assistant|>
SELECT "income_inequality_1994_2011_latest_available" FROM "indicators" WHERE "population_2011"='21,315,135';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indicators" (
"country" text,
"area_km_2010" text,
"population_2011" text,
"gdp_ppp_intl_2011" text,
"gdp_ppp_per_capita_intl_2011" text,
"income_inequality_1994_2011_latest_available" text,
"hdi_2011" text,
"fsi_2012" text,
"cpi_2011" text,
"ief_2011" text,
"gpi_2012" text,
"wpfi_2011_2012" text,
"di_2011" text
);
Question: What is the IEF 2011 of the country with an FSI 2012 of 99.2?
<|assistant|>
SELECT "ief_2011" FROM "indicators" WHERE "fsi_2012"='99.2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indicators" (
"country" text,
"area_km_2010" text,
"population_2011" text,
"gdp_ppp_intl_2011" text,
"gdp_ppp_per_capita_intl_2011" text,
"income_inequality_1994_2011_latest_available" text,
"hdi_2011" text,
"fsi_2012" text,
"cpi_2011" text,
"ief_2011" text,
"gpi_2012" text,
"wpfi_2011_2012" text,
"di_2011" text
);
Question: What is the current income inequality for the country of Seychelles?
<|assistant|>
SELECT "income_inequality_1994_2011_latest_available" FROM "indicators" WHERE "country"='seychelles';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indicators" (
"country" text,
"area_km_2010" text,
"population_2011" text,
"gdp_ppp_intl_2011" text,
"gdp_ppp_per_capita_intl_2011" text,
"income_inequality_1994_2011_latest_available" text,
"hdi_2011" text,
"fsi_2012" text,
"cpi_2011" text,
"ief_2011" text,
"gpi_2012" text,
"wpfi_2011_2012" text,
"di_2011" text
);
Question: What is the HDI 2011 of the country with a DI 2011 of 7.63?
<|assistant|>
SELECT "hdi_2011" FROM "indicators" WHERE "di_2011"='7.63';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indicators" (
"country" text,
"area_km_2010" text,
"population_2011" text,
"gdp_ppp_intl_2011" text,
"gdp_ppp_per_capita_intl_2011" text,
"income_inequality_1994_2011_latest_available" text,
"hdi_2011" text,
"fsi_2012" text,
"cpi_2011" text,
"ief_2011" text,
"gpi_2012" text,
"wpfi_2011_2012" text,
"di_2011" text
);
Question: What country has an IEF 2011 of 45.3?
<|assistant|>
SELECT "country" FROM "indicators" WHERE "ief_2011"='45.3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What date did South Melbourne play as the Away team?
<|assistant|>
SELECT "date" FROM "round_18" WHERE "away_team"='south melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where did Essendon play as the home team?
<|assistant|>
SELECT "venue" FROM "round_18" WHERE "home_team"='essendon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: What is the school or country for the guard from 2000?
<|assistant|>
SELECT "school_country" FROM "p" WHERE "position"='guard' AND "from"='2000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: What is the player from the year 2000?
<|assistant|>
SELECT "player" FROM "p" WHERE "from"='2000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"from" text,
"school_country" text
);
Question: What position does the player from 2002 play?
<|assistant|>
SELECT "position" FROM "p" WHERE "from"='2002';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.