chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What was the constructor for round 15?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"season_review\" WHERE \"rnd\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who won the Brands Hatch circuit?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Brands Hatch';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who constructed the I Italian Republic Grand Prix?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"non_championship_race_results\" WHERE \"race_name\"='I Italian Republic Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What race was held at Oulton Park?" }, { "role": "assistant", "content": "SELECT \"race_name\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Oulton Park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Did the I Brazilian Grand Prix have a report?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"non_championship_race_results\" WHERE \"race_name\"='I Brazilian Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what is the race where the pole position is niki lauda and the date is 27 april?" }, { "role": "assistant", "content": "SELECT \"race\" FROM \"season_review\" WHERE \"pole_position\"='Niki Lauda' AND \"date\"='27 April';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what is the date where the constructor is ferrari and the location is anderstorp?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"season_review\" WHERE \"constructor\"='Ferrari' AND \"location\"='Anderstorp';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: how many times is the pole position niki lauda and the race is monaco grand prix?" }, { "role": "assistant", "content": "SELECT COUNT(\"rnd\") FROM \"season_review\" WHERE \"pole_position\"='Niki Lauda' AND \"race\"='Monaco Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what is the report where the location is kyalami?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"season_review\" WHERE \"location\"='Kyalami';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: who is the pole position for the rnd 3" }, { "role": "assistant", "content": "SELECT \"pole_position\" FROM \"season_review\" WHERE \"rnd\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_review\" (\n \"rnd\" real,\n \"race\" text,\n \"date\" text,\n \"location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what is the race where the fastest lap is by jean-pierre jarier?" }, { "role": "assistant", "content": "SELECT \"race\" FROM \"season_review\" WHERE \"fastest_lap\"='Jean-Pierre Jarier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What circuit did Clay Regazzoni win?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"non_championship_race_results\" WHERE \"winning_driver\"='Clay Regazzoni';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What was the date when Chris Amon won?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"non_championship_race_results\" WHERE \"winning_driver\"='Chris Amon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What circuit is the Vi Rhein-Pokalrennen race in?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"non_championship_race_results\" WHERE \"race_name\"='VI Rhein-Pokalrennen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"num\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What date is listed at place 13" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"non_championship_race_results\" WHERE \"num\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"num\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What date has a solitudering circuit" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Solitudering';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"num\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many dates have silverstone circuit" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"non_championship_race_results\" WHERE \"circuit\"='Silverstone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"num\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many constructors are listed for the XVI BRDC international trophy race" }, { "role": "assistant", "content": "SELECT COUNT(\"constructor\") FROM \"non_championship_race_results\" WHERE \"race_name\"='XVI BRDC International Trophy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_races_review\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the name of the circuit in which the race name is ii danish grand prix?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"non_championship_races_review\" WHERE \"race_name\"='II Danish Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_races_review\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is te name of the constructors dated 26 march?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"non_championship_races_review\" WHERE \"date\"='26 March';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_races_review\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the total amount of circuts dated 22 april?" }, { "role": "assistant", "content": "SELECT COUNT(\"circuit\") FROM \"non_championship_races_review\" WHERE \"date\"='22 April';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_races_review\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: what is the name of the constructor that has the circuit zeltweg airfield?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"non_championship_races_review\" WHERE \"circuit\"='Zeltweg Airfield';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_races_review\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the name of the winning driver where the circuit name is posillipo?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"non_championship_races_review\" WHERE \"circuit\"='Posillipo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_races_review\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the name of the circuit where the race xi Syracuse grand prix was held?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"non_championship_races_review\" WHERE \"race_name\"='XI Syracuse Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What kind of report is for the Pau circuit?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Pau';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many different kinds of reports are there for races that Juan Manuel Fangio won?" }, { "role": "assistant", "content": "SELECT COUNT(\"report\") FROM \"non_championship_race_results\" WHERE \"winning_driver\"='Juan Manuel Fangio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who constructed the Syracuse circuit?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Syracuse';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the name of the race in the Modena circuit?" }, { "role": "assistant", "content": "SELECT \"race_name\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Modena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the race name in the Monza circuit?" }, { "role": "assistant", "content": "SELECT \"race_name\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Monza';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: When does V Madgwick Cup take place?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"non_championship_race_results\" WHERE \"race_name\"='V Madgwick Cup';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Which driver won the race xiv el\u00e4intarhanajot?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"non_championship_race_results\" WHERE \"race_name\"='XIV El\u00e4intarhanajot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who won the Modena circuit?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Modena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: How many constructors won the III Redex Trophy?" }, { "role": "assistant", "content": "SELECT COUNT(\"constructor\") FROM \"non_championship_race_results\" WHERE \"race_name\"='III RedeX Trophy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What was the report of Mike Hawthorn's winning race?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"non_championship_race_results\" WHERE \"winning_driver\"='Mike Hawthorn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What was the name of the race in Bordeaux?" }, { "role": "assistant", "content": "SELECT \"race_name\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Bordeaux';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the report for the race name V Ulster Trophy?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"non_championship_race_results\" WHERE \"race_name\"='V Ulster Trophy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the constructor for the Silverstone circuit?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Silverstone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What's the report for the Silverstone circuit?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Silverstone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What's the report for the race name, XIII Grand Prix de l'Albigeois?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"non_championship_race_results\" WHERE \"race_name\"='XIII Grand Prix de l''Albigeois';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Which date did the race name XII Pau Grand Prix take place on?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"non_championship_race_results\" WHERE \"race_name\"='XII Pau Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who was the winning driver for the goodwood circuit?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"non_championship_race_results\" WHERE \"circuit\"='Goodwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11411026_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many millions of U.S. viewers whatched episodes written by Krystal Houghton?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_11411026_2\" WHERE \"written_by\"='Krystal Houghton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11411026_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many titles were directed in series 79?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_11411026_2\" WHERE \"no_in_series\"=79;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11411026_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote an episode watched by 19.01 million US viewers?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_11411026_2\" WHERE \"u_s_viewers_millions\"='19.01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11404452_1\" (\n \"series_num\" real,\n \"episode_title\" text,\n \"writer_s\" text,\n \"director\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: What are the titles of the episodes where Rodman Flender is the director?" }, { "role": "assistant", "content": "SELECT \"episode_title\" FROM \"table1_11404452_1\" WHERE \"director\"='Rodman Flender';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11404452_1\" (\n \"series_num\" real,\n \"episode_title\" text,\n \"writer_s\" text,\n \"director\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the original air date of the Jamie Babbit directed episode?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_11404452_1\" WHERE \"director\"='Jamie Babbit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11404452_1\" (\n \"series_num\" real,\n \"episode_title\" text,\n \"writer_s\" text,\n \"director\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the original air date when there were 12.81 million u.s viewers?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_11404452_1\" WHERE \"u_s_viewers_millions\"='12.81';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11404452_1\" (\n \"series_num\" real,\n \"episode_title\" text,\n \"writer_s\" text,\n \"director\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: When did Shelia Lawrence join the series?" }, { "role": "assistant", "content": "SELECT MIN(\"series_num\") FROM \"table1_11404452_1\" WHERE \"writer_s\"='Shelia Lawrence';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11404452_1\" (\n \"series_num\" real,\n \"episode_title\" text,\n \"writer_s\" text,\n \"director\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who was the director when there were 13.66 million u.s viewers?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_11404452_1\" WHERE \"u_s_viewers_millions\"='13.66';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"yearly_results\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"pct_pct\" text,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: Name the percentage where the amount won was 25" }, { "role": "assistant", "content": "SELECT \"pct_pct\" FROM \"yearly_results\" WHERE \"won\"=25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"yearly_results\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"pct_pct\" text,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: How many games were won with 2nd oha was standing and there were 62 games?" }, { "role": "assistant", "content": "SELECT \"won\" FROM \"yearly_results\" WHERE \"standing\"='2nd OHA' AND \"games\"=62;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_ward\" (\n \"ward\" text,\n \"bello\" text,\n \"ben_tahir\" text,\n \"doucet\" text,\n \"furtenbacher\" text,\n \"gauthier\" text,\n \"haydon\" text,\n \"larter\" text,\n \"lawrance\" text,\n \"libweshya\" text,\n \"liscumb\" text\n);\n\nQuestion: What is the Liscumb when Gauthier is 34?" }, { "role": "assistant", "content": "SELECT \"liscumb\" FROM \"results_by_ward\" WHERE \"gauthier\"='34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_ward\" (\n \"ward\" text,\n \"bello\" text,\n \"ben_tahir\" text,\n \"doucet\" text,\n \"furtenbacher\" text,\n \"gauthier\" text,\n \"haydon\" text,\n \"larter\" text,\n \"lawrance\" text,\n \"libweshya\" text,\n \"liscumb\" text\n);\n\nQuestion: What is the Bello when Ben-Tahir is 296?" }, { "role": "assistant", "content": "SELECT \"bello\" FROM \"results_by_ward\" WHERE \"ben_tahir\"='296';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_ward\" (\n \"ward\" text,\n \"bello\" text,\n \"ben_tahir\" text,\n \"doucet\" text,\n \"furtenbacher\" text,\n \"gauthier\" text,\n \"haydon\" text,\n \"larter\" text,\n \"lawrance\" text,\n \"libweshya\" text,\n \"liscumb\" text\n);\n\nQuestion: What is Ben-Tahir when Bello is 51?" }, { "role": "assistant", "content": "SELECT \"ben_tahir\" FROM \"results_by_ward\" WHERE \"bello\"='51';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_ward\" (\n \"ward\" text,\n \"bello\" text,\n \"ben_tahir\" text,\n \"doucet\" text,\n \"furtenbacher\" text,\n \"gauthier\" text,\n \"haydon\" text,\n \"larter\" text,\n \"lawrance\" text,\n \"libweshya\" text,\n \"liscumb\" text\n);\n\nQuestion: What is Haydon when Larter is 11 and Libweshya is 4?" }, { "role": "assistant", "content": "SELECT \"haydon\" FROM \"results_by_ward\" WHERE \"larter\"='11' AND \"libweshya\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_ward\" (\n \"ward\" text,\n \"bello\" text,\n \"ben_tahir\" text,\n \"doucet\" text,\n \"furtenbacher\" text,\n \"gauthier\" text,\n \"haydon\" text,\n \"larter\" text,\n \"lawrance\" text,\n \"libweshya\" text,\n \"liscumb\" text\n);\n\nQuestion: What is Liscumb when Haydon is 1632?" }, { "role": "assistant", "content": "SELECT \"liscumb\" FROM \"results_by_ward\" WHERE \"haydon\"='1632';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_ward\" (\n \"ward\" text,\n \"bello\" text,\n \"ben_tahir\" text,\n \"doucet\" text,\n \"furtenbacher\" text,\n \"gauthier\" text,\n \"haydon\" text,\n \"larter\" text,\n \"lawrance\" text,\n \"libweshya\" text,\n \"liscumb\" text\n);\n\nQuestion: What is Doucet when Lawrance is 36?" }, { "role": "assistant", "content": "SELECT \"doucet\" FROM \"results_by_ward\" WHERE \"lawrance\"='36';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"tv\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Which tv had the date december 7, 1986?" }, { "role": "assistant", "content": "SELECT \"tv\" FROM \"schedule\" WHERE \"date\"='December 7, 1986';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"tv\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Which kickoff has the opponent at new orleans saints?" }, { "role": "assistant", "content": "SELECT \"kickoff_a\" FROM \"schedule\" WHERE \"opponent\"='at New Orleans Saints';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"houses\" (\n \"house_name\" text,\n \"composition\" text,\n \"named_after\" text,\n \"founded\" real,\n \"colours\" text\n);\n\nQuestion: How many houses are green?" }, { "role": "assistant", "content": "SELECT COUNT(\"house_name\") FROM \"houses\" WHERE \"colours\"='Green';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"houses\" (\n \"house_name\" text,\n \"composition\" text,\n \"named_after\" text,\n \"founded\" real,\n \"colours\" text\n);\n\nQuestion: What year was the house named gongola made?" }, { "role": "assistant", "content": "SELECT \"founded\" FROM \"houses\" WHERE \"house_name\"='Gongola';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"houses\" (\n \"house_name\" text,\n \"composition\" text,\n \"named_after\" text,\n \"founded\" real,\n \"colours\" text\n);\n\nQuestion: What is the name of the green house?" }, { "role": "assistant", "content": "SELECT \"house_name\" FROM \"houses\" WHERE \"colours\"='Green';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"houses\" (\n \"house_name\" text,\n \"composition\" text,\n \"named_after\" text,\n \"founded\" real,\n \"colours\" text\n);\n\nQuestion: What is the green house made of?" }, { "role": "assistant", "content": "SELECT \"composition\" FROM \"houses\" WHERE \"colours\"='Green';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"houses\" (\n \"house_name\" text,\n \"composition\" text,\n \"named_after\" text,\n \"founded\" real,\n \"colours\" text\n);\n\nQuestion: What is the benue house made of?" }, { "role": "assistant", "content": "SELECT \"composition\" FROM \"houses\" WHERE \"house_name\"='Benue';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"tv\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: In which week was the game against a team with a record of 3-6 played?" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"record\"='3-6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"tv\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Which channel had the game against the Minnesota Vikings?" }, { "role": "assistant", "content": "SELECT \"tv\" FROM \"schedule\" WHERE \"opponent\"='Minnesota Vikings';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"tv\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: How many opponents were there at the game with 64,087 people in attendance?" }, { "role": "assistant", "content": "SELECT COUNT(\"opponent\") FROM \"schedule\" WHERE \"attendance\"='64,087';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"tv\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Where was the game played when the team's record was 1-3? " }, { "role": "assistant", "content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"record\"='1-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"tv\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: How many times was there a kickoff in the September 4, 1988 game? " }, { "role": "assistant", "content": "SELECT COUNT(\"kickoff_a\") FROM \"schedule\" WHERE \"date\"='September 4, 1988';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"tv\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: How many crowds watched the game where the record was 1-3? " }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"record\"='1-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_summary\" (\n \"series\" real,\n \"year\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text,\n \"fifth_place\" text,\n \"sixth_place\" text,\n \"host\" text\n);\n\nQuestion: What year finished with Daniel Zueras as the runner-up?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"series_summary\" WHERE \"runner_up\"='Daniel Zueras';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_summary\" (\n \"series\" real,\n \"year\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text,\n \"fifth_place\" text,\n \"sixth_place\" text,\n \"host\" text\n);\n\nQuestion: How many people hosted the show in the year when Chenoa ended up in fourth place?" }, { "role": "assistant", "content": "SELECT COUNT(\"host\") FROM \"series_summary\" WHERE \"fourth_place\"='Chenoa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_summary\" (\n \"series\" real,\n \"year\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text,\n \"fifth_place\" text,\n \"sixth_place\" text,\n \"host\" text\n);\n\nQuestion: How many fourth places were there in 2003?" }, { "role": "assistant", "content": "SELECT COUNT(\"fourth_place\") FROM \"series_summary\" WHERE \"year\"='2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_engines\" (\n \"model\" text,\n \"max_motive_power\" text,\n \"max_torque_at_rpm\" text,\n \"engine_displacement\" text,\n \"engine_type\" text,\n \"engine_configuration_notes_0_100km_h\" text\n);\n\nQuestion: What is the engine type when the max torque at rpm is n\u00b7m ( lbf\u00b7ft ) @ 4,800 Answers:?" }, { "role": "assistant", "content": "SELECT \"engine_type\" FROM \"models_and_engines\" WHERE \"max_torque_at_rpm\"='N\u00b7m ( lbf\u00b7ft ) @ 4,800';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_engines\" (\n \"model\" text,\n \"max_motive_power\" text,\n \"max_torque_at_rpm\" text,\n \"engine_displacement\" text,\n \"engine_type\" text,\n \"engine_configuration_notes_0_100km_h\" text\n);\n\nQuestion: What is the engine configuration $notes 0-100km/h for the engine type b5244 t2?" }, { "role": "assistant", "content": "SELECT \"engine_configuration_notes_0_100km_h\" FROM \"models_and_engines\" WHERE \"engine_type\"='B5244 T2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_engines\" (\n \"model\" text,\n \"max_motive_power\" text,\n \"max_torque_at_rpm\" text,\n \"engine_displacement\" text,\n \"engine_type\" text,\n \"engine_configuration_notes_0_100km_h\" text\n);\n\nQuestion: What is the engine displacement for the engine type b5254 t?" }, { "role": "assistant", "content": "SELECT \"engine_displacement\" FROM \"models_and_engines\" WHERE \"engine_type\"='B5254 T';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_engines\" (\n \"model\" text,\n \"max_motive_power\" text,\n \"max_torque_at_rpm\" text,\n \"engine_displacement\" text,\n \"engine_type\" text,\n \"engine_configuration_notes_0_100km_h\" text\n);\n\nQuestion: How many have are model 2.4 awd?" }, { "role": "assistant", "content": "SELECT COUNT(\"engine_type\") FROM \"models_and_engines\" WHERE \"model\"='2.4 AWD';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_engines\" (\n \"model\" text,\n \"max_motive_power\" text,\n \"max_torque_at_rpm\" text,\n \"engine_displacement\" text,\n \"engine_type\" text,\n \"engine_configuration_notes_0_100km_h\" text\n);\n\nQuestion: How many engine b5204 t3?" }, { "role": "assistant", "content": "SELECT COUNT(\"engine_displacement\") FROM \"models_and_engines\" WHERE \"engine_type\"='B5204 T3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_engines\" (\n \"model\" text,\n \"max_motive_power\" text,\n \"max_torque_at_rpm\" text,\n \"engine_displacement\" text,\n \"engine_type\" text,\n \"engine_configuration_notes_0_100km_h\" text\n);\n\nQuestion: How many engine b5234 t3?" }, { "role": "assistant", "content": "SELECT COUNT(\"model\") FROM \"models_and_engines\" WHERE \"engine_type\"='B5234 T3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: how many\u00a0power (ps)\u00a0with\u00a0torque (nm@rpm)\u00a0being 240@2200-5000" }, { "role": "assistant", "content": "SELECT COUNT(\"power_ps\") FROM \"engines\" WHERE \"torque_nm_rpm\"='240@2200-5000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: what's the\u00a0comment\u00a0with\u00a0model name\u00a0being 2.4 (2001-2007)" }, { "role": "assistant", "content": "SELECT \"comment\" FROM \"engines\" WHERE \"model_name\"='2.4 (2001-2007)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: what's the\u00a0model name\u00a0with\u00a0engine code\u00a0being b5204 t5" }, { "role": "assistant", "content": "SELECT \"model_name\" FROM \"engines\" WHERE \"engine_code\"='B5204 T5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: what's the\u00a0dbeingplacement (cm\u00b3)\u00a0with\u00a0torque (nm@rpm)\u00a0being 350@1800-6000" }, { "role": "assistant", "content": "SELECT \"displacement_cm\" FROM \"engines\" WHERE \"torque_nm_rpm\"='350@1800-6000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: what's the\u00a0model name\u00a0with\u00a0torque (nm@rpm)\u00a0being 230@4500" }, { "role": "assistant", "content": "SELECT \"model_name\" FROM \"engines\" WHERE \"torque_nm_rpm\"='230@4500';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: what's the\u00a0model name\u00a0with\u00a0engine code\u00a0being b5254 t4" }, { "role": "assistant", "content": "SELECT \"model_name\" FROM \"engines\" WHERE \"engine_code\"='B5254 T4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: Name the torque of the engine is d5244 t5" }, { "role": "assistant", "content": "SELECT \"torque_nm_rpm\" FROM \"engines\" WHERE \"engine_code\"='D5244 T5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: What is the model of the engine d5244 t?" }, { "role": "assistant", "content": "SELECT \"model_name\" FROM \"engines\" WHERE \"engine_code\"='D5244 T';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: What is the model of the enginge d5252 t?" }, { "role": "assistant", "content": "SELECT \"model_name\" FROM \"engines\" WHERE \"engine_code\"='D5252 T';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model_name\" text,\n \"power_ps\" real,\n \"torque_nm_rpm\" text,\n \"displacement_cm\" real,\n \"engine_code\" text,\n \"comment\" text\n);\n\nQuestion: What is the model of the engine d5244 t7?" }, { "role": "assistant", "content": "SELECT \"model_name\" FROM \"engines\" WHERE \"engine_code\"='D5244 T7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the position of number 47?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"k\" WHERE \"no\"='47';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Name the position of Turkey" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"k\" WHERE \"nationality\"='Turkey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who is player number 51?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"k\" WHERE \"no\"='51';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the position for the years 1998-99" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"k\" WHERE \"years_for_jazz\"='1998-99';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many positions are for creighton?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"k\" WHERE \"school_club_team\"='Creighton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player is from Marshall and played 1974-75?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"l\" WHERE \"years_for_jazz\"='1974-75' AND \"school_club_team\"='Marshall';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which country is the player that went to Oregon?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"l\" WHERE \"school_club_team\"='Oregon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which country is Jim Les from?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"l\" WHERE \"player\"='Jim Les';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which number is the player from Minnesota?" }, { "role": "assistant", "content": "SELECT MAX(\"no\") FROM \"l\" WHERE \"school_club_team\"='Minnesota';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player played for years 2000-02" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"s\" WHERE \"years_for_jazz\"='2000-02';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which school is Kirk Snyder from?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"s\" WHERE \"player\"='Kirk Snyder';" } ]