text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text ); Question: A major third of C has what listed for the Minor seventh? <|assistant|> SELECT "minor_seventh" FROM "augmented_seventh_chord_table" WHERE "major_third"='c';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text ); Question: What is the listed chord for a Minor seventh of F? <|assistant|> SELECT "chord" FROM "augmented_seventh_chord_table" WHERE "minor_seventh"='f';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_watched_programmes" ( "rank" real, "show" text, "episode" text, "number_of_viewers" real, "date" text ); Question: Which Rank has a Show of alcatraz, and a Number of Viewers larger than 1,229,000? <|assistant|> SELECT MIN("rank") FROM "most_watched_programmes" WHERE "show"='alcatraz' AND "number_of_viewers">'1,229,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_watched_programmes" ( "rank" real, "show" text, "episode" text, "number_of_viewers" real, "date" text ); Question: Which Episode has a Rank of 1? <|assistant|> SELECT "episode" FROM "most_watched_programmes" WHERE "rank"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text ); Question: Where was adac rally deutschland's rally HQ? <|assistant|> SELECT "rally_hq" FROM "calendar" WHERE "rally_name"='adac rally deutschland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text ); Question: Where was the Rally HQ for Round 1? <|assistant|> SELECT "rally_hq" FROM "calendar" WHERE "round"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text ); Question: Which Support Category had a Round score of 9? <|assistant|> SELECT "support_category" FROM "calendar" WHERE "round"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text ); Question: What Surface had a Rally HQ of salou? <|assistant|> SELECT "surface" FROM "calendar" WHERE "rally_hq"='salou';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the lowest lane in the Czech Republic and a time larger than 21.05? <|assistant|> SELECT MIN("lane") FROM "heat_1" WHERE "nationality"='czech republic' AND "time">21.05;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the highest lane with a rank larger than 2 in Guyana? <|assistant|> SELECT MAX("lane") FROM "heat_1" WHERE "rank">2 AND "nationality"='guyana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the sum rank of Solomon Bayoh when his time was smaller than 22.16? <|assistant|> SELECT SUM("rank") FROM "heat_1" WHERE "athlete"='solomon bayoh' AND "time"<22.16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_5_british_albums" ( "rank" real, "artist" text, "album" text, "peak_position" text, "sales" real, "certification" text ); Question: Who is the artist of the album Soul? <|assistant|> SELECT "artist" FROM "top_5_british_albums" WHERE "album"='soul';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); Question: who is the athlete when the time is less than 11.13 and the country is belgium? <|assistant|> SELECT "athlete" FROM "round_2" WHERE "time"<11.13 AND "country"='belgium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); Question: who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2? <|assistant|> SELECT "athlete" FROM "round_2" WHERE "rank"<13 AND "time">11.13 AND "country"='bahamas' AND "heat">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); Question: what is the heat when the athlete is anita pistone? <|assistant|> SELECT SUM("heat") FROM "round_2" WHERE "athlete"='anita pistone';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); Question: how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5? <|assistant|> SELECT COUNT("time") FROM "round_2" WHERE "rank">29 AND "athlete"='barbara pierre' AND "heat"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); Question: Which IHSAA Class has a Location of linton? <|assistant|> SELECT "ihsaa_class" FROM "membership" WHERE "location"='linton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the sum of matches played for teams with more than 10 losses and under 5 points? <|assistant|> SELECT SUM("played") FROM "first_round" WHERE "lost">10 AND "points"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the total number of positions for teams with more than 5 points, 3 draws, and under 2 losses? <|assistant|> SELECT COUNT("position") FROM "first_round" WHERE "points">5 AND "drawn"=3 AND "lost"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the average number of losses for teams with under 4 losses and under 21 points? <|assistant|> SELECT AVG("drawn") FROM "first_round" WHERE "lost"<4 AND "points"<21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the home team at the game with an Attendance of 2,029? <|assistant|> SELECT "home_team" FROM "southern_section" WHERE "attendance"='2,029';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the away team at the game with an Attendance of 1,730? <|assistant|> SELECT "away_team" FROM "southern_section" WHERE "attendance"='1,730';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the away team at the game with a Tie no of 2? <|assistant|> SELECT "away_team" FROM "southern_section" WHERE "tie_no"='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, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What F/Laps listing has entries of n/a Points, 1 Poles, and 0 Wins? <|assistant|> SELECT "f_laps" FROM "career_summary" WHERE "points"='n/a' AND "poles"='1' AND "wins"='0';<|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, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a? <|assistant|> SELECT "series" FROM "career_summary" WHERE "season"<2003 AND "podiums"='1' AND "points"='n/a';<|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, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What Podiums listing has a World Rally Championship series entry? <|assistant|> SELECT "podiums" FROM "career_summary" WHERE "series"='world rally championship';<|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, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What races have n/a Points, 0 Wins, and 6th Position entries? <|assistant|> SELECT "races" FROM "career_summary" WHERE "points"='n/a' AND "wins"='0' AND "position"='6th';<|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, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What is the most recent season for the Prema Powerteam with a Masters of Formula Three series? <|assistant|> SELECT MAX("season") FROM "career_summary" WHERE "team"='prema powerteam' AND "series"='masters of formula three';<|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, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What listing for Podiums has 0 F/laps and 39 points? <|assistant|> SELECT "podiums" FROM "career_summary" WHERE "f_laps"='0' AND "points"='39';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); Question: Which Date has an Attendance larger than 16,186, and Points smaller than 52, and a Record of 21–16–9? <|assistant|> SELECT "date" FROM "regular_season" WHERE "attendance">'16,186' AND "points"<52 AND "record"='21–16–9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); Question: Which Loss has a Record of 20–16–9? <|assistant|> SELECT "loss" FROM "regular_season" WHERE "record"='20–16–9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); Question: Which Date has a Record of 19–16–8? <|assistant|> SELECT "date" FROM "regular_season" WHERE "record"='19–16–8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Can you tell me the Time that has the Lane of 8? <|assistant|> SELECT "time" FROM "semifinal_1" WHERE "lane"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Can you tell me the Total number of Rankthat has the Lane of 4? <|assistant|> SELECT COUNT("rank") FROM "semifinal_1" WHERE "lane"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel jones, and the Lane larger than 4? <|assistant|> SELECT MIN("rank") FROM "semifinal_1" WHERE "nationality"='australia' AND "name"='leisel jones' AND "lane">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Can you tell me the Name that has the Rank of 4? <|assistant|> SELECT "name" FROM "semifinal_1" WHERE "rank"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: What is the highest Against for a game against Bristol City? <|assistant|> SELECT MAX("against") FROM "anglo_italian_cup" WHERE "opposing_team"='bristol city';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: What was the date of the game against Oxford United? <|assistant|> SELECT "date" FROM "anglo_italian_cup" WHERE "opposing_team"='oxford united';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What country is ranked number 4? <|assistant|> SELECT "country" FROM "semifinal_a_b_2" WHERE "rank"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What are the notes from the rank of 1? <|assistant|> SELECT "notes" FROM "semifinal_a_b_2" WHERE "rank"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What rowers have FA as the notes? <|assistant|> SELECT "rowers" FROM "heat_1" WHERE "notes"='fa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is the lowest rank has 7:09.06 as the time? <|assistant|> SELECT MIN("rank") FROM "heat_1" WHERE "time"='7:09.06';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What notes have 2 as the rank? <|assistant|> SELECT "notes" FROM "heat_1" WHERE "rank"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: What was the match that happened in Bishop's Stortford? <|assistant|> SELECT "match" FROM "stats" WHERE "opponent"='bishop''s stortford';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: What was the final score for the Thurrock? <|assistant|> SELECT "score1" FROM "stats" WHERE "opponent"='thurrock';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Which IHSAA class has a mascot of the Raiders? <|assistant|> SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='raiders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Which school has a mascot of the Panthers? <|assistant|> SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='panthers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What's Italy's time when the notes were SA/B? <|assistant|> SELECT "time" FROM "heat_1" WHERE "notes"='sa/b' AND "country"='italy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is Italy's rank? <|assistant|> SELECT "rank" FROM "heat_1" WHERE "country"='italy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alumni" ( "name" text, "nationality" text, "position" text, "year_of_birth" real, "career" text, "appearances" real, "goals" real, "club" text ); Question: How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make? <|assistant|> SELECT COUNT("appearances") FROM "alumni" WHERE "club"='rayo vallecano' AND "goals">37;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who's the player that was eliminated on episode 4? <|assistant|> SELECT "player" FROM "cast" WHERE "eliminated"='episode 4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who is the player in 20th place? <|assistant|> SELECT "player" FROM "cast" WHERE "placing"='20th place';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: What's the original season in 11th place? <|assistant|> SELECT "original_season" FROM "cast" WHERE "placing"='11th place';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who's the player eliminated on episode 5? <|assistant|> SELECT "player" FROM "cast" WHERE "eliminated"='episode 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who's the player that's male and on the original season of RW: Key West? <|assistant|> SELECT "player" FROM "cast" WHERE "gender"='male' AND "original_season"='rw: key west';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who's the player eliminated on episode 8 of Fresh Meat? <|assistant|> SELECT "player" FROM "cast" WHERE "original_season"='fresh meat' AND "eliminated"='episode 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boats_of_the_class" ( "name" text, "hull" real, "pennant_number" text, "status" text, "date_of_commission" text ); Question: The boat named Agamemnon has what status? <|assistant|> SELECT "status" FROM "boats_of_the_class" WHERE "name"='agamemnon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boats_of_the_class" ( "name" text, "hull" real, "pennant_number" text, "status" text, "date_of_commission" text ); Question: What status does the boat Ajax have? <|assistant|> SELECT "status" FROM "boats_of_the_class" WHERE "name"='ajax';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the average upper index MJ/Nm 3 for the upper index Kcal/Nm 3 entry of 19,376? <|assistant|> SELECT AVG("upper_index_mj_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_kcal_nm_3"='19,376';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the Upper index Kcal/ Nm 3 of iso-butane, and a Lower index MJ/ Nm 3 smaller than 84.71? <|assistant|> SELECT COUNT("upper_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "fuel_gas"='iso-butane' AND "lower_index_mj_nm_3"<84.71;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54? <|assistant|> SELECT AVG("lower_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3"=74.54 AND "upper_index_kcal_nm_3"<'19,376';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 of 47.91, and an Upper index MJ/ Nm 3 larger than 53.28? <|assistant|> SELECT SUM("upper_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3"=47.91 AND "upper_index_mj_nm_3">53.28;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04? <|assistant|> SELECT SUM("upper_index_kcal_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3">47.91 AND "fuel_gas"='propylene' AND "upper_index_mj_nm_3">77.04;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the entry for Lower index MJ/ Nm 3 for the row that has an Upper index Kcal/ Nm 3 larger than 19,376, for lpg, and an Upper index MJ/ Nm 3 smaller than 86.84? <|assistant|> SELECT AVG("lower_index_mj_nm_3") FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_kcal_nm_3">'19,376' AND "fuel_gas"='lpg' AND "upper_index_mj_nm_3"<86.84;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: What match number has a ground of H and the opponent Chelsea under 18s? <|assistant|> SELECT AVG("match") FROM "stats" WHERE "ground"='h' AND "opponent"='chelsea under 18s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: On what date is there a match lower than 14 with a ground of H and the opponent Aston Villa under 18s? <|assistant|> SELECT "date" FROM "stats" WHERE "match"<14 AND "ground"='h' AND "opponent"='aston villa under 18s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s? <|assistant|> SELECT "date" FROM "stats" WHERE "score1"='2 - 4' AND "opponent"='chelsea under 18s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "not_all_data_are_listed" ( "date_s" text, "venue" text, "city" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); Question: What is the ticket price at Canadian National Exhibition Stadium? <|assistant|> SELECT "ticket_price_s" FROM "not_all_data_are_listed" WHERE "venue"='canadian national exhibition stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "not_all_data_are_listed" ( "date_s" text, "venue" text, "city" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); Question: What was the ticket price at Red Rocks Amphitheatre? <|assistant|> SELECT "ticket_price_s" FROM "not_all_data_are_listed" WHERE "venue"='red rocks amphitheatre';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "not_all_data_are_listed" ( "date_s" text, "venue" text, "city" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); Question: What was the ticket price on September 16, 1986? <|assistant|> SELECT "ticket_price_s" FROM "not_all_data_are_listed" WHERE "date_s"='september 16, 1986';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text ); Question: Who was the opposition for the player who has a total of 10 points? <|assistant|> SELECT "opposition" FROM "single_game" WHERE "total"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text ); Question: Which player is from County Dublin? <|assistant|> SELECT "player" FROM "single_game" WHERE "county"='dublin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_and_economy_size_for_latin_am" ( "rank" real, "metropolitan_area" text, "country" text, "gdp_ppp_2008_billions_of_us" real, "metropolitan_population_2006_millions" real, "gdp_ppp_us_per_capita" real ); Question: What is the average 2006 metropolitan population of Lima with a GDP per capita over $13,100? <|assistant|> SELECT AVG("metropolitan_population_2006_millions") FROM "population_and_economy_size_for_latin_am" WHERE "metropolitan_area"='lima' AND "gdp_ppp_us_per_capita">'13,100';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_and_economy_size_for_latin_am" ( "rank" real, "metropolitan_area" text, "country" text, "gdp_ppp_2008_billions_of_us" real, "metropolitan_population_2006_millions" real, "gdp_ppp_us_per_capita" real ); Question: What is the lowest 2006 metropolitan population for a Mexico City, Mexico with a GDP per capita of less than 20,300? <|assistant|> SELECT MIN("metropolitan_population_2006_millions") FROM "population_and_economy_size_for_latin_am" WHERE "country"='mexico' AND "metropolitan_area"='mexico city' AND "gdp_ppp_us_per_capita"<'20,300';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Who placed highest with a time of 1:47.70? <|assistant|> SELECT MIN("rank") FROM "semifinal_1" WHERE "time"='1:47.70';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "surrounding" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: How much Col (m) has an Elevation (m) smaller than 3,187, and a Prominence (m) smaller than 1,570? <|assistant|> SELECT COUNT("col_m") FROM "surrounding" WHERE "elevation_m"<'3,187' AND "prominence_m"<'1,570';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "surrounding" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: Which Elevation (m) has a Prominence (m) larger than 2,120, and a Peak of mount karisimbi, and a Col (m) larger than 1195? <|assistant|> SELECT MIN("elevation_m") FROM "surrounding" WHERE "prominence_m">'2,120' AND "peak"='mount karisimbi' AND "col_m">1195;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "surrounding" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: Which Prominence (m) has an Elevation (m) of 3,095? <|assistant|> SELECT MIN("prominence_m") FROM "surrounding" WHERE "elevation_m"='3,095';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "poland" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: How long did Witold Latoszek character lasted? <|assistant|> SELECT "duration" FROM "poland" WHERE "character"='witold latoszek';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Which episode was the last written by chris hawkshaw this season? <|assistant|> SELECT MAX("no_in_season") FROM "episodes" WHERE "written_by"='chris hawkshaw';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "and_neighbouring_islands" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: What is the highest col for the prominence of 1,834 meters and elevation higher than 1,834 meters? <|assistant|> SELECT MAX("col_m") FROM "and_neighbouring_islands" WHERE "prominence_m"='1,834' AND "elevation_m">'1,834';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "patronage_ridership" ( "type_of_service" text, "2006" real, "2007" real, "2008" real, "change_06_07" text, "change_07_08" text ); Question: What is the greatest 2007 when the change 06-07 was 14.7%? <|assistant|> SELECT MAX("2007") FROM "patronage_ridership" WHERE "change_06_07"='14.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: when was the ship completed when laid down is 21 august 1925? <|assistant|> SELECT "completed" FROM "list_of_ships" WHERE "laid_down"='21 august 1925';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: When was satsuki dd-27 completed? <|assistant|> SELECT "completed" FROM "list_of_ships" WHERE "name"='satsuki dd-27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: when was the ship launched when it was laid down 20 october 1924 and built by fujinagata shipyards, japan? <|assistant|> SELECT "launched" FROM "list_of_ships" WHERE "builder"='fujinagata shipyards, japan' AND "laid_down"='20 october 1924';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: when was the ship completed that was laid down on 23 march 1926? <|assistant|> SELECT "completed" FROM "list_of_ships" WHERE "laid_down"='23 march 1926';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: when was the ship laid down when it was completed on 3 july 1926? <|assistant|> SELECT "laid_down" FROM "list_of_ships" WHERE "completed"='3 july 1926';<|endoftext|>
<|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 was the score of the game at the Chicago Stadium? <|assistant|> SELECT "score" FROM "game_log" WHERE "location_attendance"='chicago stadium';<|endoftext|>
<|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 was the date of the game when the record was 46-31? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='46-31';<|endoftext|>
<|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 was the score of the game at the Chicago Stadium? <|assistant|> SELECT "score" FROM "game_log" WHERE "location_attendance"='chicago stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the Rank of the Swimmer in Lane 5? <|assistant|> SELECT AVG("rank") FROM "semifinal_1" WHERE "lane"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger? <|assistant|> SELECT COUNT("rank") FROM "semifinal_1" WHERE "time"=49 AND "lane">7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the Lane of the swimmer with a Rank of 8? <|assistant|> SELECT MAX("lane") FROM "semifinal_1" WHERE "rank"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What Level has a Season larger than 2010? <|assistant|> SELECT "level" FROM "season_to_season" WHERE "season">2010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What Adminstration has a Season of 2000? <|assistant|> SELECT "administration" FROM "season_to_season" WHERE "season"=2000;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What Position has a Season larger than 2000 with a Level of Tier 3? <|assistant|> SELECT "position" FROM "season_to_season" WHERE "season">2000 AND "level"='tier 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What Position has a Level of tier 4 with a Season smaller than 2003? <|assistant|> SELECT "position" FROM "season_to_season" WHERE "level"='tier 4' AND "season"<2003;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Who had the most rebounds in the game against New York? <|assistant|> SELECT "high_rebounds" FROM "regular_season" WHERE "opponent"='new york';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Who was the opponent for game 30? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "game"=30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Who had the most rebounds in the game at the Mohegan Sun Arena that led to a 24-7 record? <|assistant|> SELECT "high_rebounds" FROM "regular_season" WHERE "location"='mohegan sun arena' AND "record"='24-7';<|endoftext|>