messages listlengths 3 3 |
|---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15681686_4 (rating VARCHAR, rank__week_ VARCHAR)",
"role": "system"
},
{
"content": "what is the rating where the rank is 48?",
"role": "user"
},
{
"content": "SELECT rating / SHARE(18 - 49) FROM table_15681686_4 WHERE rank__week_ = \"48\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (round INTEGER, position VARCHAR)",
"role": "system"
},
{
"content": "what is the round when the position is (c)?",
"role": "user"
},
{
"content": "SELECT MAX(round) FROM table_name_85 WHERE position = \"(c)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (score VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game with a record of 81-60?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_71 WHERE record = \"81-60\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (game INTEGER, score VARCHAR)",
"role": "system"
},
{
"content": "What Game had a Score of 101–92?",
"role": "user"
},
{
"content": "SELECT AVG(game) FROM table_name_71 WHERE score = \"101–92\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14934885_1 (performer_2 VARCHAR, episode VARCHAR)",
"role": "system"
},
{
"content": "Who is the second performer in episode 5?",
"role": "user"
},
{
"content": "SELECT performer_2 FROM table_14934885_1 WHERE episode = 5",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (gold INTEGER, rank INTEGER)",
"role": "system"
},
{
"content": "What nation has the lowest gold average that has a rank over 9?",
"role": "user"
},
{
"content": "SELECT MIN(gold) FROM table_name_56 WHERE rank > 9",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1602620_1 (location VARCHAR, term_ended VARCHAR)",
"role": "system"
},
{
"content": "What is the location for the office whose term ended December 2, 1976",
"role": "user"
},
{
"content": "SELECT location FROM table_1602620_1 WHERE term_ended = \"December 2, 1976\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27902171_8 (date VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Name the date for score of w 112-91",
"role": "user"
},
{
"content": "SELECT date FROM table_27902171_8 WHERE score = \"W 112-91\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (best_actor VARCHAR, best_film VARCHAR)",
"role": "system"
},
{
"content": "Which Best Actor has a Best Film of mystery?",
"role": "user"
},
{
"content": "SELECT best_actor FROM table_name_93 WHERE best_film = \"mystery\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (team_2 VARCHAR, date VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What team was 2 on November 22, 2008 when the result was 1-0?",
"role": "user"
},
{
"content": "SELECT team_2 FROM table_name_82 WHERE date = \"november 22, 2008\" AND result = \"1-0\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2409041_2 (directed_by VARCHAR, no_in_series VARCHAR)",
"role": "system"
},
{
"content": "When 17 is the number in series who is the director?",
"role": "user"
},
{
"content": "SELECT directed_by FROM table_2409041_2 WHERE no_in_series = 17",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (term_of_office VARCHAR, electorate VARCHAR)",
"role": "system"
},
{
"content": "What was the term of office for the electorate warringah?",
"role": "user"
},
{
"content": "SELECT term_of_office FROM table_name_1 WHERE electorate = \"warringah\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (location_attendance VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Location Attendance has a Date of april 15?",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_name_52 WHERE date = \"april 15\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16670746_2 (fastest_lap VARCHAR, winning_team VARCHAR)",
"role": "system"
},
{
"content": "Who had the fastest lap when the winning team was Tom's Racing?",
"role": "user"
},
{
"content": "SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = \"TOM'S Racing\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (avg VARCHAR, long VARCHAR)",
"role": "system"
},
{
"content": "What is the total average for long 10?",
"role": "user"
},
{
"content": "SELECT COUNT(avg) FROM table_name_25 WHERE long = 10",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (ihsaa_class VARCHAR, county VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "Name the IHSAA Class of 55 morgan and a School of mooresville?",
"role": "user"
},
{
"content": "SELECT ihsaa_class FROM table_name_8 WHERE county = \"55 morgan\" AND school = \"mooresville\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE building (name VARCHAR, height_feet VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the tallest building?",
"role": "user"
},
{
"content": "SELECT name FROM building ORDER BY height_feet DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (result VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the result of the game from 10 October 2009?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_47 WHERE date = \"10 october 2009\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (year VARCHAR, result VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_28 WHERE result = \"3rd\" AND venue = \"edinburgh, scotland\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (original_title VARCHAR, year VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What is the original title of the film from Japan/Taiwan before 2003?",
"role": "user"
},
{
"content": "SELECT original_title FROM table_name_95 WHERE year < 2003 AND country = \"japan/taiwan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10416547_1 (track VARCHAR, duration VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the track that lasts 5:30?",
"role": "user"
},
{
"content": "SELECT track AS title FROM table_10416547_1 WHERE duration = \"5:30\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (away_captain VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Who was the away captain at Waca Ground?",
"role": "user"
},
{
"content": "SELECT away_captain FROM table_name_60 WHERE venue = \"waca ground\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27771406_1 (club VARCHAR, tests VARCHAR)",
"role": "system"
},
{
"content": "The player for what club had 2 tests?",
"role": "user"
},
{
"content": "SELECT club FROM table_27771406_1 WHERE tests = 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)",
"role": "system"
},
{
"content": "What is the total enrollment for an affiliation of public, and was founded before 1866?",
"role": "user"
},
{
"content": "SELECT COUNT(enrollment) FROM table_name_43 WHERE affiliation = \"public\" AND founded < 1866",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (report VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What was the report for the game played at the Hisense Arena?",
"role": "user"
},
{
"content": "SELECT report FROM table_name_42 WHERE venue = \"hisense arena\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (local_name VARCHAR, network VARCHAR)",
"role": "system"
},
{
"content": "Which Local name has a Network of tvn?",
"role": "user"
},
{
"content": "SELECT local_name FROM table_name_36 WHERE network = \"tvn\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2668405_17 (district VARCHAR, candidates VARCHAR)",
"role": "system"
},
{
"content": "What is the district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%?",
"role": "user"
},
{
"content": "SELECT district FROM table_2668405_17 WHERE candidates = \"Leven Powell (F) 63.8% Roger West (DR) 36.4%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15463188_16 (number VARCHAR, acquisition_via VARCHAR)",
"role": "system"
},
{
"content": "Name the number when acquisition via far eastern",
"role": "user"
},
{
"content": "SELECT number FROM table_15463188_16 WHERE acquisition_via = \"Far Eastern\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (result VARCHAR, opponent VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the result of the match with clyde as the opponent in the h venue?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_27 WHERE opponent = \"clyde\" AND venue = \"h\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (free_practice_driver_s_ VARCHAR, engine_† VARCHAR)",
"role": "system"
},
{
"content": "What kind of free practice is there with a Ford RS2 engine +?",
"role": "user"
},
{
"content": "SELECT free_practice_driver_s_ FROM table_name_8 WHERE engine_† = \"ford rs2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (street_address VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the address of the Life & Casualty Tower?",
"role": "user"
},
{
"content": "SELECT street_address FROM table_name_94 WHERE name = \"life & casualty tower\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (chassis VARCHAR, year VARCHAR, pts VARCHAR)",
"role": "system"
},
{
"content": "Which chassis is more recent than 1972 and has more than 0 Pts. ?",
"role": "user"
},
{
"content": "SELECT chassis FROM table_name_53 WHERE year > 1972 AND pts > 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What was the result of the 2011 US Open when the 2007 was F?",
"role": "user"
},
{
"content": "SELECT 2011 FROM table_name_59 WHERE 2007 = \"f\" AND tournament = \"us open\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game that took place on october 22, 1976?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_53 WHERE date = \"october 22, 1976\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (district VARCHAR, party VARCHAR, results VARCHAR)",
"role": "system"
},
{
"content": "What district re-elected a Republican?",
"role": "user"
},
{
"content": "SELECT district FROM table_name_21 WHERE party = \"republican\" AND results = \"re-elected\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (year VARCHAR, award VARCHAR, category VARCHAR)",
"role": "system"
},
{
"content": "In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_78 WHERE award = \"tv adicto golden awards\" AND category = \"female revelation\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (enrollment INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest enrollment at the pioneer school?",
"role": "user"
},
{
"content": "SELECT MIN(enrollment) FROM table_name_39 WHERE school = \"pioneer\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (year VARCHAR, slogan VARCHAR)",
"role": "system"
},
{
"content": "What year has the wild side of soccer! as the slogan?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_89 WHERE slogan = \"the wild side of soccer!\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (position INTEGER, goals_against VARCHAR, goals_for VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest position number when goals against was 59, and a goals for is smaller than 24?",
"role": "user"
},
{
"content": "SELECT MIN(position) FROM table_name_92 WHERE goals_against = 59 AND goals_for < 24",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What is the low grid total for a retired due to steering in under 15 laps?",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_21 WHERE time_retired = \"steering\" AND laps < 15",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (money___ INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest amount of money player jim colbert has?",
"role": "user"
},
{
"content": "SELECT MIN(money___) AS $__ FROM table_name_96 WHERE player = \"jim colbert\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (tv_station VARCHAR, average_ratings VARCHAR)",
"role": "system"
},
{
"content": "What station has average ratings of 14.7%?",
"role": "user"
},
{
"content": "SELECT tv_station FROM table_name_25 WHERE average_ratings = \"14.7%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28178756_1 (date VARCHAR, team VARCHAR, race_time VARCHAR)",
"role": "system"
},
{
"content": "On what day did joe gibbs racing record a time of 1:53:26?",
"role": "user"
},
{
"content": "SELECT date FROM table_28178756_1 WHERE team = \"Joe Gibbs Racing\" AND race_time = \"1:53:26\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (milan___san_remo VARCHAR, liège_bastogne_liège VARCHAR)",
"role": "system"
},
{
"content": "Name the Milan – San Remo which has a Liège–Bastogne–Liège of danilo di luca ( ita )?",
"role": "user"
},
{
"content": "SELECT milan___san_remo FROM table_name_81 WHERE liège_bastogne_liège = \"danilo di luca ( ita )\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24431264_18 (rank VARCHAR, withdrew_due_to VARCHAR)",
"role": "system"
},
{
"content": "List the rank of the player that left due to right wrist surgery?",
"role": "user"
},
{
"content": "SELECT rank FROM table_24431264_18 WHERE withdrew_due_to = \"right wrist surgery\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (colourist_s VARCHAR, letterer_s VARCHAR, story_title VARCHAR)",
"role": "system"
},
{
"content": "Who is the Colourist that has a Story Title of Broken Glass (part 3) and a Letterer of Albers?",
"role": "user"
},
{
"content": "SELECT colourist_s FROM table_name_89 WHERE letterer_s = \"albers\" AND story_title = \"broken glass (part 3)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (position VARCHAR, years_in_orlando VARCHAR)",
"role": "system"
},
{
"content": "What is the Position for Orlando for 1989–1999?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_52 WHERE years_in_orlando = \"1989–1999\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (date VARCHAR, road_team VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What is the Date of Game 5 with Road Team St. Louis?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_10 WHERE road_team = \"st. louis\" AND game = \"game 5\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (translation VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which translation was published in 1986?",
"role": "user"
},
{
"content": "SELECT translation FROM table_name_78 WHERE date = 1986",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29458735_5 (colonel VARCHAR, regiment VARCHAR)",
"role": "system"
},
{
"content": "what is the name of the coloneo of the 35th regiment ",
"role": "user"
},
{
"content": "SELECT colonel FROM table_29458735_5 WHERE regiment = \"35th regiment\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (pilot_s_ VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Who was the pilot at lake dumbleyung?",
"role": "user"
},
{
"content": "SELECT pilot_s_ FROM table_name_43 WHERE location = \"lake dumbleyung\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (team VARCHAR, date_of_vacancy VARCHAR)",
"role": "system"
},
{
"content": "I want the team for date of vacancy being 28 february",
"role": "user"
},
{
"content": "SELECT team FROM table_name_52 WHERE date_of_vacancy = \"28 february\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341423_40 (party VARCHAR, candidates VARCHAR)",
"role": "system"
},
{
"content": "what is the party when candidates is jim demint (r) 80%?",
"role": "user"
},
{
"content": "SELECT party FROM table_1341423_40 WHERE candidates = \"Jim DeMint (R) 80%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (finalists VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Who were the finalists in the 1972–73 season?",
"role": "user"
},
{
"content": "SELECT finalists FROM table_name_53 WHERE season = \"1972–73\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (score VARCHAR, high_assists VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the Score that has the High assists of rafer alston (8)?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_41 WHERE high_assists = \"rafer alston (8)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18135572_2 (all_neutral VARCHAR, b10__percentage VARCHAR)",
"role": "system"
},
{
"content": "What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833?",
"role": "user"
},
{
"content": "SELECT all_neutral FROM table_18135572_2 WHERE b10__percentage = \".833\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (result VARCHAR, year INTEGER)",
"role": "system"
},
{
"content": "What was the result for years prior to 2005?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_83 WHERE year < 2005",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (bodyweight INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Bodyweight associated with a Clean & jerk larger than 120, and a Total (kg) of 245?",
"role": "user"
},
{
"content": "SELECT MAX(bodyweight) FROM table_name_37 WHERE clean_ & _jerk > 120 AND total__kg_ = 245",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (director VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)",
"role": "system"
},
{
"content": "What is Director, when Result is nominee, and when Year (Ceremony) is 1969 (42nd)?",
"role": "user"
},
{
"content": "SELECT director FROM table_name_65 WHERE result = \"nominee\" AND year__ceremony_ = \"1969 (42nd)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (competition VARCHAR, score VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What competition resulted in 2-0 score, hosted in Amman?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_23 WHERE score = \"2-0\" AND venue = \"amman\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28962227_1 (winner VARCHAR, runners_up VARCHAR)",
"role": "system"
},
{
"content": "Who won the season for which Brendan Lynch is the runner-up?",
"role": "user"
},
{
"content": "SELECT winner FROM table_28962227_1 WHERE runners_up = \"Brendan Lynch\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1973729_2 (founded INTEGER)",
"role": "system"
},
{
"content": "What is the latest founded year?",
"role": "user"
},
{
"content": "SELECT MAX(founded) FROM table_1973729_2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (season INTEGER, mole VARCHAR)",
"role": "system"
},
{
"content": "Which Season has a Mole of frederique van der wal?",
"role": "user"
},
{
"content": "SELECT MAX(season) FROM table_name_77 WHERE mole = \"frederique van der wal\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17326036_5 (score VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What was the score in the game against Boston?",
"role": "user"
},
{
"content": "SELECT score FROM table_17326036_5 WHERE team = \"Boston\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR)",
"role": "system"
},
{
"content": "What's the status for an against below 22 with an opposing team of Australia?",
"role": "user"
},
{
"content": "SELECT status FROM table_name_86 WHERE against < 22 AND opposing_teams = \"australia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE bank (branch_id VARCHAR, state VARCHAR); CREATE TABLE loan (amount INTEGER, branch_id VARCHAR)",
"role": "system"
},
{
"content": "Find the total amount of loans provided by bank branches in the state of New York.",
"role": "user"
},
{
"content": "SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (draft INTEGER, player VARCHAR, pick VARCHAR, round VARCHAR, nationality VARCHAR)",
"role": "system"
},
{
"content": "Which Draft has a Round of 1, a Nationality of canada, a Pick of 1, and a Player of vincent lecavalier?",
"role": "user"
},
{
"content": "SELECT AVG(draft) FROM table_name_56 WHERE round = \"1\" AND nationality = \"canada\" AND pick = \"1\" AND player = \"vincent lecavalier\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (year VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "What is Year, when Wins is \"0\"?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_71 WHERE wins = \"0\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which country has the player Ted Schulz?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_41 WHERE player = \"ted schulz\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (eurozone VARCHAR, population_m__luz_ VARCHAR)",
"role": "system"
},
{
"content": "What is the Eurozone result for Population M (LUZ) of 3.08?",
"role": "user"
},
{
"content": "SELECT eurozone FROM table_name_24 WHERE population_m__luz_ = 3.08",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (ont VARCHAR, nb VARCHAR, normal_total VARCHAR)",
"role": "system"
},
{
"content": "Name the Ont of N.B. of 10 and normal total of 77",
"role": "user"
},
{
"content": "SELECT ont FROM table_name_5 WHERE nb = \"10\" AND normal_total = \"77\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23670057_7 (current_club VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is every current club for the player Artūrs Štālbergs?",
"role": "user"
},
{
"content": "SELECT current_club FROM table_23670057_7 WHERE player = \"Artūrs Štālbergs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (long INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of Long for derrick locke?",
"role": "user"
},
{
"content": "SELECT SUM(long) FROM table_name_30 WHERE name = \"derrick locke\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (owner VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Who's the owner of Thai PBS?",
"role": "user"
},
{
"content": "SELECT owner FROM table_name_28 WHERE name = \"thai pbs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR)",
"role": "system"
},
{
"content": "What is the number of losses for the team with 1 draw and 34 tries against?",
"role": "user"
},
{
"content": "SELECT lost FROM table_name_49 WHERE drawn = \"1\" AND tries_against = \"34\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent at the game with a result of W 26-20?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_20 WHERE result = \"w 26-20\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (home_team VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "Which team has home game with tie of 4?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_88 WHERE tie_no = \"4\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE PERFORMERS (Customer_Phone VARCHAR, Customer_Name VARCHAR)",
"role": "system"
},
{
"content": "What is the phone number of the performer Ashley?",
"role": "user"
},
{
"content": "SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = \"Ashley\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (samples_taken INTEGER, melamine_content_mg_kg_ VARCHAR, producer VARCHAR)",
"role": "system"
},
{
"content": "How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?",
"role": "user"
},
{
"content": "SELECT SUM(samples_taken) FROM table_name_12 WHERE melamine_content_mg_kg_ < 53.4 AND producer = \"qingdao suncare nutritional technology\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (silver INTEGER, bronze INTEGER)",
"role": "system"
},
{
"content": "What is the average number of silvers for nations with over 1 bronze medal?",
"role": "user"
},
{
"content": "SELECT AVG(silver) FROM table_name_62 WHERE bronze > 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (competition VARCHAR, venue VARCHAR, man_of_the_match VARCHAR)",
"role": "system"
},
{
"content": "For what competition was the venue away the n/a the man of the match?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_62 WHERE venue = \"away\" AND man_of_the_match = \"n/a\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (format VARCHAR, catalog VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Format has a Catalog of 61298, and a Date of september 1984?",
"role": "user"
},
{
"content": "SELECT format FROM table_name_51 WHERE catalog = 61298 AND date = \"september 1984\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2668378_13 (candidates VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "who was running where the winner is daniel montgomery",
"role": "user"
},
{
"content": "SELECT candidates FROM table_2668378_13 WHERE incumbent = \"Daniel Montgomery\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_182410_10 (digital_terrestrial_channel VARCHAR, channel VARCHAR)",
"role": "system"
},
{
"content": "What is the digital terrestria channel number for itv3?",
"role": "user"
},
{
"content": "SELECT digital_terrestrial_channel FROM table_182410_10 WHERE channel = \"ITV3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (industrial_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)",
"role": "system"
},
{
"content": "What is Industrial Use (m 3 /p/yr)(in %), when Total Freshwater Withdrawal (km 3/yr) is less than 82.75, and when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%)?",
"role": "user"
},
{
"content": "SELECT industrial_use__m_3__p_yr__in__percentage_ FROM table_name_32 WHERE total_freshwater_withdrawal__km_3__yr_ < 82.75 AND agricultural_use__m_3__p_yr__in__percentage_ = \"1363(92%)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (date VARCHAR, site VARCHAR)",
"role": "system"
},
{
"content": "What is Date, when Site is \"Louisiana Superdome • New Orleans, LA\"?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_65 WHERE site = \"louisiana superdome • new orleans, la\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (category VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What category is Matthew Barton?",
"role": "user"
},
{
"content": "SELECT category FROM table_name_35 WHERE opponent = \"matthew barton\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)",
"role": "system"
},
{
"content": "What ist he entrant later than 1963 with an eagle MK1 chassis?",
"role": "user"
},
{
"content": "SELECT entrant FROM table_name_11 WHERE year > 1963 AND chassis = \"eagle mk1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19495707_1 (license VARCHAR, application VARCHAR)",
"role": "system"
},
{
"content": "Name the license for e-on vue",
"role": "user"
},
{
"content": "SELECT license FROM table_19495707_1 WHERE application = \"E-on Vue\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (opponent VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Which Opponent had an Attendance of 78,883?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_4 WHERE attendance = \"78,883\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (type VARCHAR, newspaper_magazine VARCHAR)",
"role": "system"
},
{
"content": "What is Type, when Newspaper/Magazine is Telecoms & It Magazine?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_97 WHERE newspaper_magazine = \"telecoms & it magazine\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (to_par VARCHAR, place VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What was the par for the t5 place player Steve Jones?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_16 WHERE place = \"t5\" AND player = \"steve jones\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (top_fives INTEGER, poles VARCHAR, top_tens VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of top fives when casey mears had more than 1 poles and top tens less than 9?",
"role": "user"
},
{
"content": "SELECT SUM(top_fives) FROM table_name_54 WHERE poles > 1 AND top_tens < 9",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (quantity_made VARCHAR, inchicore_class VARCHAR)",
"role": "system"
},
{
"content": "What was the quantity for Inchicore of J7?",
"role": "user"
},
{
"content": "SELECT quantity_made FROM table_name_3 WHERE inchicore_class = \"j7\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (population__hervey_bay_ VARCHAR, population__woocoo_ VARCHAR, population__maryborough_ VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of population hervey bay with population woocoo less than 640 and population of maryborough less than 19,257",
"role": "user"
},
{
"content": "SELECT COUNT(population__hervey_bay_) FROM table_name_94 WHERE population__woocoo_ < 640 AND population__maryborough_ < 19 OFFSET 257",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (event VARCHAR, result VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "what is the event when the result is loss and the record is 7-5?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_50 WHERE result = \"loss\" AND record = \"7-5\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"role": "system"
},
{
"content": "List the all the distinct names of the products with the characteristic name 'warm'.",
"role": "user"
},
{
"content": "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = \"warm\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (place INTEGER, team VARCHAR, lost VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "what is the highest place when lost is more than 4, points is less than 18 and team is Team of atlético veragüense?",
"role": "user"
},
{
"content": "SELECT MAX(place) FROM table_name_18 WHERE lost > 4 AND points < 18 AND team = \"atlético veragüense\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26259391_1 (production_code VARCHAR, original_air_date VARCHAR)",
"role": "system"
},
{
"content": "Which production code had original air dated february20,2011",
"role": "user"
},
{
"content": "SELECT production_code FROM table_26259391_1 WHERE original_air_date = \"February20,2011\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the record on April 1?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_44 WHERE date = \"april 1\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.