text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest total amount of medals from countries with 0 gold medals, more than 2 bronze medals, and more than 1 silver medal? <|assistant|> SELECT MIN("total") FROM "medal_table" WHERE "gold"=0 AND "bronze">2 AND "silver">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of silver medals for countries of rank 14, with less than 1 total medals? <|assistant|> SELECT SUM("silver") FROM "medal_table" WHERE "rank"='14' AND "total"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tackles" ( "player" text, "solo" real, "total" real, "sacks" text, "fumble_force" real, "fumble_rec" real ); Question: How many tackles for the player with over 0 fumble recovries and 0 forced fumbles? <|assistant|> SELECT COUNT("total") FROM "tackles" WHERE "fumble_rec">0 AND "fumble_force"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tackles" ( "player" text, "solo" real, "total" real, "sacks" text, "fumble_force" real, "fumble_rec" real ); Question: How many forced fumbles for jim laney with under 2 solo tackles? <|assistant|> SELECT COUNT("fumble_force") FROM "tackles" WHERE "solo"<2 AND "player"='jim laney';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tackles" ( "player" text, "solo" real, "total" real, "sacks" text, "fumble_force" real, "fumble_rec" real ); Question: What is the high total for players with over 15 solo tackles? <|assistant|> SELECT MAX("total") FROM "tackles" WHERE "solo">15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tackles" ( "player" text, "solo" real, "total" real, "sacks" text, "fumble_force" real, "fumble_rec" real ); Question: How many fumble recoveries for scott gajos with 0 forced fubmles, 0 sacks, and under 2 solo tackles? <|assistant|> SELECT SUM("fumble_rec") FROM "tackles" WHERE "sacks"='0' AND "fumble_force"=0 AND "player"='scott gajos' AND "solo"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly" ( "date" text, "time" text, "competition" text, "opponent" text, "ground" text, "score" text ); Question: Who is the Opponent playing at 20:00 GMT at Camp Nou? <|assistant|> SELECT "opponent" FROM "friendly" WHERE "time"='20:00 gmt' AND "ground"='camp nou';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly" ( "date" text, "time" text, "competition" text, "opponent" text, "ground" text, "score" text ); Question: What time was the match played with a score of 3-2? <|assistant|> SELECT "time" FROM "friendly" WHERE "score"='3-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly" ( "date" text, "time" text, "competition" text, "opponent" text, "ground" text, "score" text ); Question: On which ground did the team play Aston Villa? <|assistant|> SELECT "ground" FROM "friendly" WHERE "opponent"='aston villa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly" ( "date" text, "time" text, "competition" text, "opponent" text, "ground" text, "score" text ); Question: What kind of competition was it at San Siro at 18:30 GMT? <|assistant|> SELECT "competition" FROM "friendly" WHERE "ground"='san siro' AND "time"='18:30 gmt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wellington_city" ( "name" text, "years" text, "gender" text, "locality" text, "authority" text, "decile" real ); Question: What is the total number of decile for the redwood school locality? <|assistant|> SELECT COUNT("decile") FROM "wellington_city" WHERE "name"='redwood school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Which report includes a Circuit of Tripoli? <|assistant|> SELECT "report" FROM "other_grands_prix" WHERE "circuit"='tripoli';<|endoftext|>