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_1628792_1 (champion VARCHAR, tournament_location VARCHAR)",
"role": "system"
},
{
"content": "Name the champion for london hunt and country club ( london , on )",
"role": "user"
},
{
"content": "SELECT champion FROM table_1628792_1 WHERE tournament_location = \"London Hunt and country Club ( London , ON )\"",
"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 (country VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which country scored 66-68=134?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_60 WHERE score = 66 - 68 = 134",
"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 (report VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Which Report includes Monaco?",
"role": "user"
},
{
"content": "SELECT report FROM table_name_95 WHERE location = \"monaco\"",
"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 (event VARCHAR, skip VARCHAR, second VARCHAR)",
"role": "system"
},
{
"content": "Which event shows Matt St. Louis in second and a skip of John Morris?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_24 WHERE skip = \"john morris\" AND second = \"matt st. louis\"",
"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 (d_50 VARCHAR, d_41 VARCHAR)",
"role": "system"
},
{
"content": "What is the D 50 when the D 41 is d 41?",
"role": "user"
},
{
"content": "SELECT d_50 FROM table_name_65 WHERE d_41 = \"d 41\"",
"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 (lane INTEGER, country VARCHAR, time VARCHAR, react VARCHAR)",
"role": "system"
},
{
"content": "What is the average lane of the athlete from cuba who has a time greater than 22.57 and react less than 0.245?",
"role": "user"
},
{
"content": "SELECT AVG(lane) FROM table_name_8 WHERE time > 22.57 AND react < 0.245 AND country = \"cuba\"",
"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_29686983_1 (round INTEGER, pole_position VARCHAR)",
"role": "system"
},
{
"content": "what is the maximum round and fabien foret had the pole position?",
"role": "user"
},
{
"content": "SELECT MAX(round) FROM table_29686983_1 WHERE pole_position = \"Fabien Foret\"",
"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 (report VARCHAR, constructor VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "What is the report status of the race with Ferrari as the constructor and a monza circuit?",
"role": "user"
},
{
"content": "SELECT report FROM table_name_92 WHERE constructor = \"ferrari\" AND circuit = \"monza\"",
"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_26250253_1 (result VARCHAR, week__number VARCHAR)",
"role": "system"
},
{
"content": "Where the week # is Top 12, what is the result?",
"role": "user"
},
{
"content": "SELECT result FROM table_26250253_1 WHERE week__number = \"Top 12\"",
"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_21808535_1 (winner VARCHAR)",
"role": "system"
},
{
"content": "Who placed fourth when the winner was Greg Hancock?",
"role": "user"
},
{
"content": "SELECT 4 AS th_placed FROM table_21808535_1 WHERE winner = \"Greg Hancock\"",
"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 (try_bonus VARCHAR, lost VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is Try Bonus, when Lost is \"5\", and when Points is \"73\"?",
"role": "user"
},
{
"content": "SELECT try_bonus FROM table_name_52 WHERE lost = \"5\" AND points = \"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_16815824_1 (round2 VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is the score for round 2 for team Toshiba?",
"role": "user"
},
{
"content": "SELECT COUNT(round2) FROM table_16815824_1 WHERE team = \"team Toshiba\"",
"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 (games VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "How many games does leandro love have?",
"role": "user"
},
{
"content": "SELECT games FROM table_name_96 WHERE name = \"leandro love\"",
"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 screen_mode (used_kb INTEGER)",
"role": "system"
},
{
"content": "List the maximum, minimum and average number of used kb in screen mode.",
"role": "user"
},
{
"content": "SELECT MAX(used_kb), MIN(used_kb), AVG(used_kb) FROM screen_mode",
"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_99 (game_site VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Which Game site has 27,189 Attendances ?",
"role": "user"
},
{
"content": "SELECT game_site FROM table_name_99 WHERE attendance = \"27,189\"",
"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_28019988_2 (series__number INTEGER, production_code VARCHAR)",
"role": "system"
},
{
"content": "What series number is the episode with production code bdf101?",
"role": "user"
},
{
"content": "SELECT MAX(series__number) FROM table_28019988_2 WHERE production_code = \"BDF101\"",
"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_22 (attendance VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance at the Red Sox game that had a loss of Wakefield (7–10)?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_22 WHERE loss = \"wakefield (7–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_40 (team VARCHAR, qual_1 VARCHAR)",
"role": "system"
},
{
"content": "Which team had a qualifying 1 time of 1:01.342?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_40 WHERE qual_1 = \"1:01.342\"",
"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_73 (score VARCHAR, visitor VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game on November 9 when Atlanta was the visiting team?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_73 WHERE visitor = \"atlanta\" AND date = \"november 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_48 (player VARCHAR, school_club_team_country VARCHAR)",
"role": "system"
},
{
"content": "Who is the player for St. Mary's team?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_48 WHERE school_club_team_country = \"st. mary's\"",
"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_63 (result VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the Result of the game on 10/11/1930?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_63 WHERE date = \"10/11/1930\"",
"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_66 (country VARCHAR, rank INTEGER)",
"role": "system"
},
{
"content": "What is the country is ranked more than 4?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_66 WHERE rank > 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_25401_2 (form__to_sing_ VARCHAR, brazilian_portuguese VARCHAR)",
"role": "system"
},
{
"content": "What is the form (\"to sing\") when brazilian portuguese is [kɐ̃ˈtẽmus]?",
"role": "user"
},
{
"content": "SELECT form__to_sing_ FROM table_25401_2 WHERE brazilian_portuguese = \"[kɐ̃ˈtẽmus]\"",
"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_70 (runner_s__up VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "What is the Runner(s)-up of the Kemper Open Tournament?",
"role": "user"
},
{
"content": "SELECT runner_s__up FROM table_name_70 WHERE tournament = \"kemper 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_63 (date VARCHAR, decision VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What date has a Decision of osgood, and a Score of 3 – 4?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_63 WHERE decision = \"osgood\" AND score = \"3 – 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_21046399_3 (won_by VARCHAR, county VARCHAR)",
"role": "system"
},
{
"content": "How many total figures are given for Milwaukee county?",
"role": "user"
},
{
"content": "SELECT COUNT(won_by) FROM table_21046399_3 WHERE county = \"Milwaukee\"",
"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 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)",
"role": "system"
},
{
"content": "What are the lowest top-5 with a top-25 larger than 4, 29 cuts and a top-10 larger than 18?",
"role": "user"
},
{
"content": "SELECT MIN(top_5) FROM table_name_62 WHERE top_25 > 4 AND cuts_made = 29 AND top_10 > 18",
"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 (result VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What was week 5's result?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_81 WHERE week = 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_9 (result VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What is the result of the match with an attendance of 73,855?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_9 WHERE attendance = \"73,855\"",
"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 (year INTEGER, result VARCHAR)",
"role": "system"
},
{
"content": "What is the average year with nominated result?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_32 WHERE result = \"nominated\"",
"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_63 (away_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What was the away score at the game at MCG?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_63 WHERE venue = \"mcg\"",
"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_61 (bronze INTEGER, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the largest number for bronze with a rank of 19?",
"role": "user"
},
{
"content": "SELECT MAX(bronze) FROM table_name_61 WHERE rank = \"19\"",
"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_23248910_11 (score VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What was the score in game 6?",
"role": "user"
},
{
"content": "SELECT score FROM table_23248910_11 WHERE game = 6",
"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_1473672_6 (nationality VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What country did Derek Black come from?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_1473672_6 WHERE player = \"Derek Black\"",
"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_21602734_1 (league VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What league was involved in 2008?",
"role": "user"
},
{
"content": "SELECT league FROM table_21602734_1 WHERE year = 2008",
"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_25517718_3 (extra_points INTEGER)",
"role": "system"
},
{
"content": "What is the smallest number of extra points?",
"role": "user"
},
{
"content": "SELECT MIN(extra_points) FROM table_25517718_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_37 (general_classification VARCHAR, young_rider_classification VARCHAR)",
"role": "system"
},
{
"content": "What is the general classification with riccardo riccò as the young rider classification?",
"role": "user"
},
{
"content": "SELECT general_classification FROM table_name_37 WHERE young_rider_classification = \"riccardo riccò\"",
"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 customers (customer_name VARCHAR, payment_method VARCHAR)",
"role": "system"
},
{
"content": "What are the names of customers who use payment method \"Cash\"?",
"role": "user"
},
{
"content": "SELECT customer_name FROM customers WHERE payment_method = \"Cash\"",
"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_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR)",
"role": "system"
},
{
"content": "What is the maximum number of 2006 subscribers for Glo Mobile?",
"role": "user"
},
{
"content": "SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = \"Glo Mobile\"",
"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 exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)",
"role": "system"
},
{
"content": "What is the theme and artist name for the exhibition with a ticket price higher than the average?",
"role": "user"
},
{
"content": "SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)",
"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_22815568_7 (county VARCHAR, unemployment_rate VARCHAR, market_income_per_capita VARCHAR)",
"role": "system"
},
{
"content": "In what counties is the unemployment rate 5.8% and the market income per capita is $22,866?",
"role": "user"
},
{
"content": "SELECT county FROM table_22815568_7 WHERE unemployment_rate = \"5.8%\" AND market_income_per_capita = \"$22,866\"",
"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_61 (opponents_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "What is Opponents In The Final, when Surface is \"Carpet\", and when Tournament is \"Milan , Italy\"?",
"role": "user"
},
{
"content": "SELECT opponents_in_the_final FROM table_name_61 WHERE surface = \"carpet\" AND tournament = \"milan , italy\"",
"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_1231892_4 (title VARCHAR, broadcast_order VARCHAR)",
"role": "system"
},
{
"content": "What's the title of the episode with a broadcast order s04 e01?",
"role": "user"
},
{
"content": "SELECT title FROM table_1231892_4 WHERE broadcast_order = \"S04 E01\"",
"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_64 (title VARCHAR, left_office VARCHAR, entered_office VARCHAR)",
"role": "system"
},
{
"content": "What is the title of the king who left office in 982 and entered office in 949?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_64 WHERE left_office = \"982\" AND entered_office = \"949\"",
"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_14 (location VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "Where did the match with opponent Laverne Clark occur?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_14 WHERE opponent = \"laverne clark\"",
"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_33 (new_council INTEGER, election_result INTEGER)",
"role": "system"
},
{
"content": "Which New council has an Election result larger than 24?",
"role": "user"
},
{
"content": "SELECT AVG(new_council) FROM table_name_33 WHERE election_result > 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_30 (date VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Result of w 27–20?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_30 WHERE result = \"w 27–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_26 (to_par VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is Tiger Woods' to par?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_26 WHERE player = \"tiger woods\"",
"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 (country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What Country is Gene Littler from?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_60 WHERE player = \"gene littler\"",
"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 (soap_opera VARCHAR, duration VARCHAR, character VARCHAR)",
"role": "system"
},
{
"content": "what is the soap opera when the duration is 18 years and the character is miley byrne?",
"role": "user"
},
{
"content": "SELECT soap_opera FROM table_name_4 WHERE duration = \"18 years\" AND character = \"miley byrne\"",
"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 film (language_id VARCHAR, title VARCHAR); CREATE TABLE LANGUAGE (name VARCHAR, language_id VARCHAR)",
"role": "system"
},
{
"content": "Which language does the film AIRPORT POLLOCK use? List the language name.",
"role": "user"
},
{
"content": "SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK'",
"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_6 (number_of_electorates__2009_ INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What is the electorates in 2009 for Modi Nagar?",
"role": "user"
},
{
"content": "SELECT AVG(number_of_electorates__2009_) FROM table_name_6 WHERE name = \"modi nagar\"",
"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 invoices (total INTEGER, billing_city VARCHAR, billing_state VARCHAR)",
"role": "system"
},
{
"content": "List total amount of invoice from Chicago, IL.",
"role": "user"
},
{
"content": "SELECT SUM(total) FROM invoices WHERE billing_city = \"Chicago\" AND billing_state = \"IL\"",
"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 (points INTEGER, february INTEGER)",
"role": "system"
},
{
"content": "How many Points a February smaller than 1 have?",
"role": "user"
},
{
"content": "SELECT MIN(points) FROM table_name_5 WHERE february < 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 activity (actid VARCHAR, activity_name VARCHAR); CREATE TABLE participates_in (stuid VARCHAR)",
"role": "system"
},
{
"content": "Find the ids of the students who participate in Canoeing and Kayaking.",
"role": "user"
},
{
"content": "SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'",
"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 (overall INTEGER, name VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "What's the Overall average that has brad scioli, and a Pick # larger than 5?",
"role": "user"
},
{
"content": "SELECT AVG(overall) FROM table_name_60 WHERE name = \"brad scioli\" AND pick__number > 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_33 (root_of_all_evil VARCHAR, original_air_date VARCHAR)",
"role": "system"
},
{
"content": "What is the Root of All Evil with an Original air date that is september 3, 2008?",
"role": "user"
},
{
"content": "SELECT root_of_all_evil FROM table_name_33 WHERE original_air_date = \"september 3, 2008\"",
"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 (date VARCHAR, label VARCHAR)",
"role": "system"
},
{
"content": "On what date is the Chrysalis Records label.?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_21 WHERE label = \"chrysalis records\"",
"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_26257223_13 (team_classification VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "Who led team classification during the stage whose winner was Chris Horner?",
"role": "user"
},
{
"content": "SELECT team_classification FROM table_26257223_13 WHERE winner = \"Chris Horner\"",
"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_22514845_5 (reporters VARCHAR, race_caller VARCHAR, s_analyst VARCHAR)",
"role": "system"
},
{
"content": "Name the reporters for dave johnson for eddie arcaro and howard cosell",
"role": "user"
},
{
"content": "SELECT reporters FROM table_22514845_5 WHERE race_caller = \"Dave Johnson\" AND s_analyst = \"Eddie Arcaro and Howard Cosell\"",
"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 (round VARCHAR, track VARCHAR)",
"role": "system"
},
{
"content": "What Round has the Track Clipsal 500 Support?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_42 WHERE track = \"clipsal 500 support\"",
"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_17628022_2 (play_by_play VARCHAR, pregame_host VARCHAR, sideline_reporters VARCHAR)",
"role": "system"
},
{
"content": "Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving?",
"role": "user"
},
{
"content": "SELECT play_by_play FROM table_17628022_2 WHERE pregame_host = \"Brian Williams\" AND sideline_reporters = \"Steve Armitage and Brenda Irving\"",
"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_25563779_4 (season VARCHAR, national_trophy_rookie VARCHAR)",
"role": "system"
},
{
"content": "If the national trophy/rookie is Simone Iaquinta, what is the season total number?",
"role": "user"
},
{
"content": "SELECT COUNT(season) FROM table_25563779_4 WHERE national_trophy_rookie = \"Simone Iaquinta\"",
"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 (date VARCHAR, opponent_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "When did Mathieu play against Flavio Cipolla?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_60 WHERE opponent_in_the_final = \"flavio cipolla\"",
"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_99 (date VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "When was the record 3-3?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_99 WHERE record = \"3-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_60 (team_wins INTEGER, individual_winners VARCHAR, total_wins VARCHAR)",
"role": "system"
},
{
"content": "Which Team wins has an Individual winner smaller than 1 and Total win larger than 1?",
"role": "user"
},
{
"content": "SELECT SUM(team_wins) FROM table_name_60 WHERE individual_winners < 1 AND total_wins > 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 (silver VARCHAR, total VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "How many silvers for the nation with under 6 total and under 0 bronze?",
"role": "user"
},
{
"content": "SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND bronze < 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_40 (Id VARCHAR)",
"role": "system"
},
{
"content": "Tell me the 2011 with 2012 of 2r",
"role": "user"
},
{
"content": "SELECT 2011 FROM table_name_40 WHERE 2012 = \"2r\" AND 2010 = \"2r\" AND 2009 = \"2r\"",
"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_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)",
"role": "system"
},
{
"content": "How many date of appointments are there when the date of vacancy was 2 october 2010?",
"role": "user"
},
{
"content": "SELECT COUNT(date_of_appointment) FROM table_26976615_3 WHERE date_of_vacancy = \"2 October 2010\"",
"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 (date_of_birth__age_ VARCHAR, position VARCHAR, caps VARCHAR)",
"role": "system"
},
{
"content": "When was the lock with 10 caps born?",
"role": "user"
},
{
"content": "SELECT date_of_birth__age_ FROM table_name_20 WHERE position = \"lock\" AND caps = 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_35 (round INTEGER, player VARCHAR, position VARCHAR, nationality VARCHAR)",
"role": "system"
},
{
"content": "What is the highest round of Ian Cole, who played position d from the United States?",
"role": "user"
},
{
"content": "SELECT MAX(round) FROM table_name_35 WHERE position = \"d\" AND nationality = \"united states\" AND player = \"ian cole\"",
"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 (place VARCHAR, score VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "In what place did Des Smyth, who scored less than 71, finish?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_23 WHERE score < 71 AND player = \"des smyth\"",
"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_61 (outcome VARCHAR, partner VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_61 WHERE partner = \"marcella mesker\" AND score = \"6–4, 4–6, 4–6\"",
"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 (code VARCHAR, population INTEGER)",
"role": "system"
},
{
"content": "What is the total code number for places with a population greater than 87,585?",
"role": "user"
},
{
"content": "SELECT COUNT(code) FROM table_name_41 WHERE population > 87 OFFSET 585",
"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_64 (stations VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "Which Stations are in vancouver, bc?",
"role": "user"
},
{
"content": "SELECT stations FROM table_name_64 WHERE city = \"vancouver, bc\"",
"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 CONTINENTS (Id VARCHAR)",
"role": "system"
},
{
"content": "How many continents are there?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM CONTINENTS",
"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 (venue VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "Where did Essendon play as the away team?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_83 WHERE away_team = \"essendon\"",
"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 (attendance INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "Name the average attendance from june 11",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_50 WHERE date = \"june 11\"",
"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 candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR)",
"role": "system"
},
{
"content": "Find id of candidates whose assessment code is \"Pass\"?",
"role": "user"
},
{
"content": "SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = \"Pass\"",
"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_76 (co_drivers VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What were the co-drivers in 2008?",
"role": "user"
},
{
"content": "SELECT co_drivers FROM table_name_76 WHERE year = 2008",
"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_55 (games INTEGER, rank INTEGER)",
"role": "system"
},
{
"content": "What is the average number of games of the player with a rank less than 1?",
"role": "user"
},
{
"content": "SELECT AVG(games) FROM table_name_55 WHERE rank < 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_86 (drawn VARCHAR, lost VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "Name the drawn with lost of 3 and points of 88",
"role": "user"
},
{
"content": "SELECT drawn FROM table_name_86 WHERE lost = \"3\" AND points = \"88\"",
"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_58 (home_team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is Home Team, when Date is \"April 10\"?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_58 WHERE date = \"april 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_54 (league_cup_apps VARCHAR, total_goals VARCHAR, total_apps VARCHAR)",
"role": "system"
},
{
"content": "what is the league cup apps when the total goals is less than 2 and the total apps is 12?",
"role": "user"
},
{
"content": "SELECT league_cup_apps FROM table_name_54 WHERE total_goals < 2 AND total_apps = \"12\"",
"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 (_number_tubes VARCHAR, audio_amp VARCHAR)",
"role": "system"
},
{
"content": "Name the # tubes with audio amp of x",
"role": "user"
},
{
"content": "SELECT _number_tubes FROM table_name_30 WHERE audio_amp = \"x\"",
"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 (place VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "what is the place when the event is 4000 m individual pursuit?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_94 WHERE event = \"4000 m individual pursuit\"",
"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 (state_territory VARCHAR, winning_driver VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What is the state the winning driver Jamie Whincup from in round 2?",
"role": "user"
},
{
"content": "SELECT state_territory FROM table_name_8 WHERE winning_driver = \"jamie whincup\" AND round = 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_29 (tail_code VARCHAR, weapon_systems_officer VARCHAR)",
"role": "system"
},
{
"content": "Which Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue?",
"role": "user"
},
{
"content": "SELECT tail_code FROM table_name_29 WHERE weapon_systems_officer = \"capt charles b. debellevue\"",
"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_46 (score VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Record of 22–20 involved what score?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_46 WHERE record = \"22–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_16 (points_against___tests__ VARCHAR, year_s_ VARCHAR, games_won___tests__ VARCHAR)",
"role": "system"
},
{
"content": "What are the points against for 2001, and games won of 5 (3)?",
"role": "user"
},
{
"content": "SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2001 AND games_won___tests__ = \"5 (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_16 (award VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Which award was given in 2012?",
"role": "user"
},
{
"content": "SELECT award FROM table_name_16 WHERE year = \"2012\"",
"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 (competition VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What is Competition, when Round is \"Group A - Match 1\"?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_59 WHERE round = \"group a - match 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_55 (loser VARCHAR, date VARCHAR, sport VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "Who was the loser playing football with england b as a winner after 1992?",
"role": "user"
},
{
"content": "SELECT loser FROM table_name_55 WHERE sport = \"football\" AND winner = \"england b\" AND date > 1992",
"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 (week_7_oct_12 VARCHAR, week_6_oct_5 VARCHAR)",
"role": "system"
},
{
"content": "Which Week 7 Oct 12 has a Week 6 Oct 5 of boise state (4-0)?",
"role": "user"
},
{
"content": "SELECT week_7_oct_12 FROM table_name_23 WHERE week_6_oct_5 = \"boise state (4-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_5 (poll_source VARCHAR, pat_toomey VARCHAR)",
"role": "system"
},
{
"content": "Which Poll source has Pat Toomey of 23%?",
"role": "user"
},
{
"content": "SELECT poll_source FROM table_name_5 WHERE pat_toomey = \"23%\"",
"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_58 (semifinalists VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "Who are the semifinalists when the tournament is in Cincinnati?",
"role": "user"
},
{
"content": "SELECT semifinalists FROM table_name_58 WHERE tournament = \"cincinnati\"",
"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_91 (round INTEGER, opponent VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is the highest round of the match with Rene Rooze as the opponent in Saitama, Japan?",
"role": "user"
},
{
"content": "SELECT MAX(round) FROM table_name_91 WHERE opponent = \"rene rooze\" AND location = \"saitama, japan\"",
"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 (language VARCHAR, content VARCHAR, television_service VARCHAR)",
"role": "system"
},
{
"content": "What language is telemarket for you with a content of televendita?",
"role": "user"
},
{
"content": "SELECT language FROM table_name_59 WHERE content = \"televendita\" AND television_service = \"telemarket for you\"",
"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_18994724_1 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR)",
"role": "system"
},
{
"content": "Who directed the film Gomorra?",
"role": "user"
},
{
"content": "SELECT director_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = \"Gomorra\"",
"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_69 (avg_g VARCHAR, name VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What's cameron dantley's total avg/g for loss less than 35?",
"role": "user"
},
{
"content": "SELECT COUNT(avg_g) FROM table_name_69 WHERE name = \"cameron dantley\" AND loss < 35",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.