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_1639689_2 (date VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What day(s) did they play on week 2?",
"role": "user"
},
{
"content": "SELECT date FROM table_1639689_2 WHERE week = 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_7 (away_team VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "Where Bolton Wanderers is the home team, who is the away team?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_7 WHERE home_team = \"bolton wanderers\"",
"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 (interface VARCHAR, controller VARCHAR, codename VARCHAR)",
"role": "system"
},
{
"content": "Which interface uses Sandforce with a code name of Sierra Star?",
"role": "user"
},
{
"content": "SELECT interface FROM table_name_27 WHERE controller = \"sandforce\" AND codename = \"sierra star\"",
"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_20667854_1 (company VARCHAR, free_float VARCHAR)",
"role": "system"
},
{
"content": "Which companies have a free float of 0.2726?",
"role": "user"
},
{
"content": "SELECT company FROM table_20667854_1 WHERE free_float = \"0.2726\"",
"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 (population__percentage_1971 VARCHAR, population__percentage_1981 VARCHAR)",
"role": "system"
},
{
"content": "For the group with 1.92% population in 1981, what was their percentage of the population in 1971?",
"role": "user"
},
{
"content": "SELECT population__percentage_1971 FROM table_name_62 WHERE population__percentage_1981 = \"1.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_30 (visitor VARCHAR, home VARCHAR, game__number VARCHAR)",
"role": "system"
},
{
"content": "Who is the visitor team of game 19 with Los Angeles as the home team?",
"role": "user"
},
{
"content": "SELECT visitor FROM table_name_30 WHERE home = \"los angeles\" AND game__number = 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_name_74 (class VARCHAR, laps VARCHAR, pos VARCHAR)",
"role": "system"
},
{
"content": "In what class is the laps greater than 134 and the position is 4th?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_74 WHERE laps > 134 AND pos = \"4th\"",
"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_79 (country VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What country has a score of 71-66-72-72=281?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_79 WHERE score = 71 - 66 - 72 - 72 = 281",
"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 (ties INTEGER, losses VARCHAR, games_played VARCHAR)",
"role": "system"
},
{
"content": "what is the lowest number of ties when the losses is 7 and games played is less than 10?",
"role": "user"
},
{
"content": "SELECT MIN(ties) FROM table_name_10 WHERE losses = 7 AND games_played < 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_12485020_1 (ds_division VARCHAR, main_town VARCHAR)",
"role": "system"
},
{
"content": "Kaluvanchikudy is the main town in what DS division?",
"role": "user"
},
{
"content": "SELECT ds_division FROM table_12485020_1 WHERE main_town = \"Kaluvanchikudy\"",
"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_23186738_9 (game INTEGER, score VARCHAR)",
"role": "system"
},
{
"content": "Name the least game for score of l 93–109 (ot)",
"role": "user"
},
{
"content": "SELECT MIN(game) FROM table_23186738_9 WHERE score = \"L 93–109 (OT)\"",
"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 (round VARCHAR, college VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of rounds of the player from lehigh college with an overall less than 152?",
"role": "user"
},
{
"content": "SELECT COUNT(round) FROM table_name_39 WHERE college = \"lehigh\" AND overall < 152",
"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_1036189_1 (bullet_tip_color VARCHAR, headstamp_id VARCHAR)",
"role": "system"
},
{
"content": "For the headstamp id of h2, what was the color of the bullet tip?",
"role": "user"
},
{
"content": "SELECT bullet_tip_color FROM table_1036189_1 WHERE headstamp_id = \"H2\"",
"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_25355501_2 (january_15_16 VARCHAR, august_21_22 VARCHAR)",
"role": "system"
},
{
"content": " january 15-16 when august 21-22 is august 22, 1979?",
"role": "user"
},
{
"content": "SELECT january_15_16 FROM table_25355501_2 WHERE august_21_22 = \"August 22, 1979\"",
"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 (position VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "Rutgers college holds what position?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_32 WHERE college = \"rutgers\"",
"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 (score VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What is the score when the tie is 9?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_29 WHERE tie_no = \"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_2818164_5 (no_in_series VARCHAR, no_in_season VARCHAR)",
"role": "system"
},
{
"content": "What episode number in the series is also number 17 in the season?",
"role": "user"
},
{
"content": "SELECT no_in_series FROM table_2818164_5 WHERE no_in_season = \"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_27713030_11 (team VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent for the game with a score of w 94–88 (ot)?",
"role": "user"
},
{
"content": "SELECT team FROM table_27713030_11 WHERE score = \"W 94–88 (OT)\"",
"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_87 (date VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What date did Hawthorn play as the away team?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_87 WHERE away_team = \"hawthorn\"",
"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 (Id VARCHAR)",
"role": "system"
},
{
"content": "Which 1991 has an A 1993 ?",
"role": "user"
},
{
"content": "SELECT 1991 FROM table_name_77 WHERE 1993 = \"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_64 (producer VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What company is known as the producer at the kethanur location?",
"role": "user"
},
{
"content": "SELECT producer FROM table_name_64 WHERE location = \"kethanur\"",
"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 (competition VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What competition is at 23:00 cet?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_91 WHERE time = \"23:00 cet\"",
"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 (score VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What is the score where the country is Japan?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_95 WHERE country = \"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_77 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)",
"role": "system"
},
{
"content": "Which Player has a Round smaller than 5, and a School/Club Team of florida state?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_77 WHERE round < 5 AND school_club_team = \"florida state\"",
"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 (athlete VARCHAR, round_3 VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "Which athlete in the 76 kg class, did not advance at the end of Round 3.",
"role": "user"
},
{
"content": "SELECT athlete FROM table_name_1 WHERE round_3 = \"did not advance\" AND event = \"76 kg\"",
"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_2588674_1 (population__2000_census__ INTEGER, area_km² VARCHAR)",
"role": "system"
},
{
"content": "What is the population for the place with an area of 2.33 km2?",
"role": "user"
},
{
"content": "SELECT MAX(population__2000_census__) FROM table_2588674_1 WHERE area_km² = \"2.33\"",
"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 vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)",
"role": "system"
},
{
"content": "Find the number of vocal types used in song \"Demon Kitty Rag\"?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Demon Kitty Rag\"",
"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 (date VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Record of 3-4?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_54 WHERE record = \"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_name_65 (position VARCHAR)",
"role": "system"
},
{
"content": "Who held the Communications Rep position in 2011?",
"role": "user"
},
{
"content": "SELECT 2011 FROM table_name_65 WHERE position = \"communications rep\"",
"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_72 (number_of_people_1991 VARCHAR, village__german_ VARCHAR)",
"role": "system"
},
{
"content": "How many people in 1991 have a Village (German) of rupertiberg?",
"role": "user"
},
{
"content": "SELECT COUNT(number_of_people_1991) FROM table_name_72 WHERE village__german_ = \"rupertiberg\"",
"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 (hometown_school VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Which Hometown/School has a Team of cleveland indians?",
"role": "user"
},
{
"content": "SELECT hometown_school FROM table_name_94 WHERE team = \"cleveland indians\"",
"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 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)",
"role": "system"
},
{
"content": "What is the appointment day for 4 December 2008 vacancy?",
"role": "user"
},
{
"content": "SELECT date_of_appointment FROM table_name_40 WHERE date_of_vacancy = \"4 december 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_28 (number_ VARCHAR, _name VARCHAR, date INTEGER)",
"role": "system"
},
{
"content": "What's the number & name for the date after 1954?",
"role": "user"
},
{
"content": "SELECT number_ & _name FROM table_name_28 WHERE date > 1954",
"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 (written_by VARCHAR, no_in_series VARCHAR)",
"role": "system"
},
{
"content": "Who was the number 24 series written by?",
"role": "user"
},
{
"content": "SELECT written_by FROM table_name_36 WHERE no_in_series = 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_38 (platform VARCHAR, actual_version VARCHAR)",
"role": "system"
},
{
"content": "Which platform has an Actual version of 0.147?",
"role": "user"
},
{
"content": "SELECT platform FROM table_name_38 WHERE actual_version = \"0.147\"",
"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_14959246_2 (attendance VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance at the game played on December 10, 1972?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_14959246_2 WHERE date = \"December 10, 1972\"",
"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_74 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What was the district Incumbent Julius Kahn was in that was smaller than 1906?",
"role": "user"
},
{
"content": "SELECT district FROM table_name_74 WHERE first_elected < 1906 AND incumbent = \"julius kahn\"",
"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 department (creation VARCHAR, department_id VARCHAR); CREATE TABLE management (department_id VARCHAR, head_id VARCHAR); CREATE TABLE head (head_id VARCHAR, born_state VARCHAR)",
"role": "system"
},
{
"content": "What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?",
"role": "user"
},
{
"content": "SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T3.born_state = 'Alabama'",
"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 (source VARCHAR, net_worth_us$__billions_ VARCHAR)",
"role": "system"
},
{
"content": "What's the source of wealth of the person worth $17 billion?",
"role": "user"
},
{
"content": "SELECT source FROM table_name_10 WHERE net_worth_us$__billions_ = 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_6 (Id VARCHAR)",
"role": "system"
},
{
"content": "1996[2] larger than 68, and a 1990 smaller than 352, and a 1970 larger than 105, and a 1950 of 119 is the sum of what 1980?",
"role": "user"
},
{
"content": "SELECT SUM(1980) FROM table_name_6 WHERE 1996[2] > 68 AND 1990 < 352 AND 1970 > 105 AND 1950 = 119",
"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 (language VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "What is the language for Strong Heart?",
"role": "user"
},
{
"content": "SELECT language FROM table_name_64 WHERE title = \"strong heart\"",
"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_38 (score VARCHAR, location VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "What was the score of Tommy Aaron (2) when the tournament was in georgia?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_38 WHERE location = \"georgia\" AND winner = \"tommy aaron (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_9 (school_year VARCHAR, volleyball VARCHAR, cross_country VARCHAR, soccer VARCHAR)",
"role": "system"
},
{
"content": "What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster?",
"role": "user"
},
{
"content": "SELECT school_year FROM table_name_9 WHERE cross_country = \"lexington\" AND soccer = \"ashland\" AND volleyball = \"wooster\"",
"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_17693171_1 (laps INTEGER, time_retired VARCHAR)",
"role": "system"
},
{
"content": "If the time/retired is +1 lap, what is the amount of maximum laps?",
"role": "user"
},
{
"content": "SELECT MAX(laps) FROM table_17693171_1 WHERE time_retired = \"+1 lap\"",
"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 Accounts (account_id VARCHAR, date_account_opened VARCHAR, account_name VARCHAR, other_account_details VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR)",
"role": "system"
},
{
"content": "Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'.",
"role": "user"
},
{
"content": "SELECT T1.account_id, T1.date_account_opened, T1.account_name, T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan'",
"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_17 (bask INTEGER, soft VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "Which Bask has Soft of 18, and a Total larger than 35?",
"role": "user"
},
{
"content": "SELECT AVG(bask) FROM table_name_17 WHERE soft = \"18\" AND total > 35",
"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_29296103_10 (tournament VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "Which tournament was runner-up paul annacone eric korita?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_29296103_10 WHERE runner_up = \"Paul Annacone Eric Korita\"",
"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 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What player placed t6 for the United States with a score of 67-69=136?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_71 WHERE country = \"united states\" AND place = \"t6\" AND score = 67 - 69 = 136",
"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 (goals_scored INTEGER, team VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10?",
"role": "user"
},
{
"content": "SELECT MAX(goals_scored) FROM table_name_33 WHERE team = \"san salvador f.c.\" AND points < 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 (player VARCHAR, year_born VARCHAR)",
"role": "system"
},
{
"content": "Who is the Player born in 1981?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_40 WHERE year_born = 1981",
"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 (sixth VARCHAR, second VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE SIXTH WITH A SECOND OF WHITE LIES?",
"role": "user"
},
{
"content": "SELECT sixth FROM table_name_66 WHERE second = \"white lies\"",
"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 (episode_number INTEGER, title VARCHAR)",
"role": "system"
},
{
"content": "What is the number of the episode titled 'Sugar Daddy'?",
"role": "user"
},
{
"content": "SELECT AVG(episode_number) FROM table_name_40 WHERE title = \"sugar daddy\"",
"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_79 (tries INTEGER, player VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of Tries with less than 28 Points for Mike Forshaw?",
"role": "user"
},
{
"content": "SELECT AVG(tries) FROM table_name_79 WHERE player = \"mike forshaw\" AND points < 28",
"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 (winner VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "What is Winner, when Circuit is June 8?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_33 WHERE circuit = \"june 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_24426072_1 (team__number2 VARCHAR)",
"role": "system"
},
{
"content": "What was team number 2's Fluminense's 2nd leg?",
"role": "user"
},
{
"content": "SELECT 2 AS nd_leg FROM table_24426072_1 WHERE team__number2 = \"Fluminense\"",
"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_17968274_2 (team VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What was the team that scored 122 points?",
"role": "user"
},
{
"content": "SELECT team FROM table_17968274_2 WHERE points = 122",
"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 (event VARCHAR, position VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Which event had 4th place and took place in the year 2007?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_76 WHERE position = \"4th\" AND year = 2007",
"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 (home_captain VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Home captain has Date of 25,26,27,29,30 march 1994?",
"role": "user"
},
{
"content": "SELECT home_captain FROM table_name_6 WHERE date = \"25,26,27,29,30 march 1994\"",
"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 (total__kg_ INTEGER, bodyweight VARCHAR, snatch VARCHAR)",
"role": "system"
},
{
"content": "What is the total for the person with 73.28 bodyweight and fewer snatches than 75?",
"role": "user"
},
{
"content": "SELECT AVG(total__kg_) FROM table_name_22 WHERE bodyweight = 73.28 AND snatch < 75",
"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 (city_country VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Name the place where adelaide oval is",
"role": "user"
},
{
"content": "SELECT city_country FROM table_name_51 WHERE venue = \"adelaide oval\"",
"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 (roll VARCHAR, area VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the total number of Roll that has the Area of aranga?",
"role": "user"
},
{
"content": "SELECT COUNT(roll) FROM table_name_95 WHERE area = \"aranga\"",
"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 (no_4 VARCHAR, no_10 VARCHAR, no_5 VARCHAR)",
"role": "system"
},
{
"content": "Who is number 4 when Harper is number 10 and Abigail is number 5?",
"role": "user"
},
{
"content": "SELECT no_4 FROM table_name_24 WHERE no_10 = \"harper\" AND no_5 = \"abigail\"",
"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 (republican VARCHAR, dates_administered VARCHAR)",
"role": "system"
},
{
"content": "Who is the republican Jon Huntsman that was administered June 19, 2008?",
"role": "user"
},
{
"content": "SELECT republican AS :_jon_huntsman FROM table_name_76 WHERE dates_administered = \"june 19, 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 Rooms (decor VARCHAR, roomName VARCHAR)",
"role": "system"
},
{
"content": "What is the decor of room Recluse and defiance?",
"role": "user"
},
{
"content": "SELECT decor FROM Rooms WHERE roomName = \"Recluse and defiance\"",
"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_80 (white VARCHAR, opening VARCHAR, year VARCHAR, moves VARCHAR, black VARCHAR)",
"role": "system"
},
{
"content": "What's the white of E93 King's Indian Defence when Kasparov was black, moves were greater than 19, and happened before 2000?",
"role": "user"
},
{
"content": "SELECT white FROM table_name_80 WHERE moves > 19 AND black = \"kasparov\" AND year < 2000 AND opening = \"e93 king's indian defence\"",
"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 (visitor VARCHAR, home VARCHAR)",
"role": "system"
},
{
"content": "Who was the visiting team that played against the Kings?",
"role": "user"
},
{
"content": "SELECT visitor FROM table_name_42 WHERE home = \"kings\"",
"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 (draws INTEGER, byes INTEGER)",
"role": "system"
},
{
"content": "What is the sum of draws for all byes larger than 0?",
"role": "user"
},
{
"content": "SELECT SUM(draws) FROM table_name_94 WHERE byes > 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_26493520_3 (rank_on_channel VARCHAR, original_air_date VARCHAR)",
"role": "system"
},
{
"content": "Name the rank on channel for january 21, 2011",
"role": "user"
},
{
"content": "SELECT rank_on_channel FROM table_26493520_3 WHERE original_air_date = \"January 21, 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_38 (rank INTEGER, state VARCHAR)",
"role": "system"
},
{
"content": "What is the average rank of a mountain range located in Maine?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_38 WHERE state = \"maine\"",
"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 (tournament VARCHAR, winning_score VARCHAR)",
"role": "system"
},
{
"content": "Which tournament had a winning score of −5 (69-69-73=211)?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_37 WHERE winning_score = −5(69 - 69 - 73 = 211)",
"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_24910733_2 (timeslot__est_ VARCHAR, rating VARCHAR)",
"role": "system"
},
{
"content": "How many timeslots received a rating of 5.7?",
"role": "user"
},
{
"content": "SELECT COUNT(timeslot__est_) FROM table_24910733_2 WHERE rating = \"5.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_name_18 (team__number2 VARCHAR)",
"role": "system"
},
{
"content": "What is the 2nd leg for the team #2 junior?",
"role": "user"
},
{
"content": "SELECT 2 AS nd_leg FROM table_name_18 WHERE team__number2 = \"junior\"",
"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 parking_fines (cmi_cross_ref_id VARCHAR); CREATE TABLE cmi_cross_references (cmi_cross_ref_id VARCHAR)",
"role": "system"
},
{
"content": "Which cmi cross reference id is not related to any parking taxes?",
"role": "user"
},
{
"content": "SELECT cmi_cross_ref_id FROM cmi_cross_references EXCEPT SELECT cmi_cross_ref_id FROM parking_fines",
"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_13608101_1 (bush_percentage VARCHAR, total_number VARCHAR)",
"role": "system"
},
{
"content": " how many bush% with total# being 191269",
"role": "user"
},
{
"content": "SELECT COUNT(bush_percentage) FROM table_13608101_1 WHERE total_number = 191269",
"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 (specific_orbital_energy VARCHAR, orbital_period VARCHAR)",
"role": "system"
},
{
"content": "Orbital period of 89 to 128 min has what specific orbital energy?",
"role": "user"
},
{
"content": "SELECT specific_orbital_energy FROM table_name_73 WHERE orbital_period = \"89 to 128 min\"",
"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 (magnitude VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the Magnitude on the Date May 28, 2004?",
"role": "user"
},
{
"content": "SELECT magnitude FROM table_name_49 WHERE date = \"may 28, 2004\"",
"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 (residence VARCHAR, party VARCHAR, representative VARCHAR)",
"role": "system"
},
{
"content": "Which Residence has a Party of dem, and a Representative of linda lawson?",
"role": "user"
},
{
"content": "SELECT residence FROM table_name_20 WHERE party = \"dem\" AND representative = \"linda lawson\"",
"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_19 (name VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "Who was the head coach?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_19 WHERE position = \"head coach\"",
"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_75 (season VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Which season was harrisburg lunatics in?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_75 WHERE team = \"harrisburg lunatics\"",
"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_25810656_3 (title VARCHAR, no_in_series VARCHAR)",
"role": "system"
},
{
"content": "Name the number of title for number in series being 25",
"role": "user"
},
{
"content": "SELECT COUNT(title) FROM table_25810656_3 WHERE no_in_series = 25",
"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 (type VARCHAR, block VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What type is the 105/107e Block from a year prior to 1960?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_50 WHERE block = \"105/107e\" AND year < 1960",
"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_19 (october INTEGER, game INTEGER)",
"role": "system"
},
{
"content": "Name the most october for game less than 1",
"role": "user"
},
{
"content": "SELECT MAX(october) FROM table_name_19 WHERE game < 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_23 (year VARCHAR, pick VARCHAR)",
"role": "system"
},
{
"content": "What year was the player pick number 15 picked?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_23 WHERE pick = \"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_27987767_2 (match_points VARCHAR, losers VARCHAR)",
"role": "system"
},
{
"content": "how many match points did gran parma lost",
"role": "user"
},
{
"content": "SELECT match_points FROM table_27987767_2 WHERE losers = \"Gran Parma\"",
"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_16951593_1 (original_air_date VARCHAR, no_in_season VARCHAR)",
"role": "system"
},
{
"content": "Name the original air date for number in season being 13",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_16951593_1 WHERE no_in_season = \"13\"",
"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_171361_2 (status VARCHAR, official_name VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of status for eldon",
"role": "user"
},
{
"content": "SELECT COUNT(status) FROM table_171361_2 WHERE official_name = \"Eldon\"",
"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_14984078_1 (game_site VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "Where did the team play the Detroit Lions?",
"role": "user"
},
{
"content": "SELECT game_site FROM table_14984078_1 WHERE opponent = \"Detroit Lions\"",
"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_1661124_1 (target VARCHAR, approval_date VARCHAR)",
"role": "system"
},
{
"content": "How many targets are there with an approval date of 1997?",
"role": "user"
},
{
"content": "SELECT COUNT(target) FROM table_1661124_1 WHERE approval_date = 1997",
"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 (games INTEGER, team VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "How many Games has a Team of cai zaragoza and a Rank smaller than 1?",
"role": "user"
},
{
"content": "SELECT SUM(games) FROM table_name_24 WHERE team = \"cai zaragoza\" AND 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_20 (model VARCHAR, builder__family_ VARCHAR, power_output__kw_ VARCHAR)",
"role": "system"
},
{
"content": "What model has a builder of zhuzhou, and a power output of 9600 (kw)?",
"role": "user"
},
{
"content": "SELECT model FROM table_name_20 WHERE builder__family_ = \"zhuzhou\" AND power_output__kw_ = \"9600\"",
"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 (bayonet_lug VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Name the bayonet lug with ar-15 lightweight",
"role": "user"
},
{
"content": "SELECT bayonet_lug FROM table_name_92 WHERE name = \"ar-15 lightweight\"",
"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_11206916_1 (average INTEGER, stadium VARCHAR)",
"role": "system"
},
{
"content": "The firs park stadium had the lowest average attendence of what?",
"role": "user"
},
{
"content": "SELECT MIN(average) FROM table_11206916_1 WHERE stadium = \"Firs Park\"",
"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_240936_2 (region_1__can_ VARCHAR, region_2__uk_ VARCHAR)",
"role": "system"
},
{
"content": "What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?",
"role": "user"
},
{
"content": "SELECT region_1__can_ FROM table_240936_2 WHERE region_2__uk_ = \"May 18, 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_50 (surface VARCHAR, partner VARCHAR)",
"role": "system"
},
{
"content": "What was the surface made of in the contest where Paula Ormaechea was the partner?",
"role": "user"
},
{
"content": "SELECT surface FROM table_name_50 WHERE partner = \"paula ormaechea\"",
"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 FACULTY (Lname VARCHAR, Building VARCHAR)",
"role": "system"
},
{
"content": "Find the last names of faculties in building Barton in alphabetic order.",
"role": "user"
},
{
"content": "SELECT Lname FROM FACULTY WHERE Building = \"Barton\" ORDER BY Lname",
"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_10935548_1 (title VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "Which episode was directed by Jean de Segonzac?",
"role": "user"
},
{
"content": "SELECT title FROM table_10935548_1 WHERE directed_by = \"Jean de Segonzac\"",
"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_12125069_2 (attendance VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "How many games were on May 20?",
"role": "user"
},
{
"content": "SELECT COUNT(attendance) FROM table_12125069_2 WHERE date = \"May 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_16799784_8 (diameter__km_ VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the diameter in km of the feature named Colette Patera? ",
"role": "user"
},
{
"content": "SELECT diameter__km_ FROM table_16799784_8 WHERE name = \"Colette Patera\"",
"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_25802618_15 (stage INTEGER, winner VARCHAR)",
"role": "system"
},
{
"content": "What was the latest stage won by Mikhail Ignatiev? ",
"role": "user"
},
{
"content": "SELECT MAX(stage) FROM table_25802618_15 WHERE winner = \"Mikhail Ignatiev\"",
"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 (gold INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR)",
"role": "system"
},
{
"content": "What is the average Gold, when Total is 2, when Silver is less than 1, and when Rank is greater than 5?",
"role": "user"
},
{
"content": "SELECT AVG(gold) FROM table_name_95 WHERE total = 2 AND silver < 1 AND rank > 5",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.