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 submission (Scores INTEGER)",
"role": "system"
},
{
"content": "What is the average score of submissions?",
"role": "user"
},
{
"content": "SELECT AVG(Scores) FROM submission",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (country VARCHAR, to_par VARCHAR, money___$__ VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_18 WHERE to_par < 6 AND money___$__ > 700 AND score = 69 - 73 - 70 - 71 = 283",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (years VARCHAR, ties INTEGER)",
"role": "system"
},
{
"content": "What years did the person coach who had more than 31 ties?",
"role": "user"
},
{
"content": "SELECT years FROM table_name_5 WHERE ties > 31",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (home_team VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "Which Home team faced the Away team, Hawthorn?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_9 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_11236195_5 (grand_finaldate VARCHAR, losingteam VARCHAR)",
"role": "system"
},
{
"content": "What was the date that the st. george-illawarra dragons lost?",
"role": "user"
},
{
"content": "SELECT grand_finaldate FROM table_11236195_5 WHERE losingteam = \"St. George-Illawarra Dragons\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (home_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the home team score at glenferrie oval?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_65 WHERE venue = \"glenferrie 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_17386066_2 (result VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the result of the game that was played on Nov. 26, 1972?",
"role": "user"
},
{
"content": "SELECT result FROM table_17386066_2 WHERE date = \"Nov. 26\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (opponent VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What was week 2's opponent?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_47 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_47 (venue VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "Which Venue has a Home team of essendon?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_47 WHERE home_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_28164986_4 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "when was the next coach appointed after niger tornadoes fired their coach?",
"role": "user"
},
{
"content": "SELECT date_of_appointment FROM table_28164986_4 WHERE manner_of_departure = \"fired\" AND team = \"Niger Tornadoes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16636344_1 (playoffs VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What was the team's playoff status in 2011?",
"role": "user"
},
{
"content": "SELECT playoffs FROM table_16636344_1 WHERE year = \"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_19605700_1 (capital VARCHAR, population VARCHAR)",
"role": "system"
},
{
"content": "What capital has a population of exactly 1339724852?",
"role": "user"
},
{
"content": "SELECT capital FROM table_19605700_1 WHERE population = 1339724852",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR)",
"role": "system"
},
{
"content": "What was the highest attendance for the Hispano team?",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_56 WHERE home = \"hispano\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (tie_no VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the Tie no of the Blackburn Rovers Away game?",
"role": "user"
},
{
"content": "SELECT tie_no FROM table_name_61 WHERE away_team = \"blackburn rovers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (region VARCHAR, area__km_2__ VARCHAR)",
"role": "system"
},
{
"content": "Tell me the number of regions with an area of 58.81",
"role": "user"
},
{
"content": "SELECT COUNT(region) FROM table_name_76 WHERE area__km_2__ = 58.81",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342249_5 (party VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "What party did the incumbent from the Arkansas 5 district belong to? ",
"role": "user"
},
{
"content": "SELECT party FROM table_1342249_5 WHERE district = \"Arkansas 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_20866024_2 (model_type VARCHAR, model_designation VARCHAR)",
"role": "system"
},
{
"content": "What model type has model designation 97500?",
"role": "user"
},
{
"content": "SELECT model_type FROM table_20866024_2 WHERE model_designation = \"97500\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (cup_finaldate VARCHAR, winningteam VARCHAR)",
"role": "system"
},
{
"content": "On what date did the Brisbane Lions (1) win?",
"role": "user"
},
{
"content": "SELECT cup_finaldate FROM table_name_44 WHERE winningteam = \"brisbane lions (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_27914606_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)",
"role": "system"
},
{
"content": "who were the writers of the episode that had 5.56 millions of north american viewers? ",
"role": "user"
},
{
"content": "SELECT written_by FROM table_27914606_1 WHERE us_viewers__millions_ = \"5.56\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is the Team when the match was in buenos aires , argentina?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_60 WHERE location = \"buenos aires , argentina\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (total INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)",
"role": "system"
},
{
"content": "Tell me the total for silver more than 0 for italy with gold less than 29",
"role": "user"
},
{
"content": "SELECT MIN(total) FROM table_name_26 WHERE silver > 0 AND nation = \"italy\" AND gold < 29",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (member VARCHAR, electorate VARCHAR)",
"role": "system"
},
{
"content": "Which member has Cook as the electorate?",
"role": "user"
},
{
"content": "SELECT member FROM table_name_16 WHERE electorate = \"cook\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (date VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "What is the Date, when the Winner is Aaron Gustavson?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_79 WHERE winner = \"aaron gustavson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (to_par VARCHAR, country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is To par, when Country is \"United States\", and when Player is \"Mark Brooks\"?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_74 WHERE country = \"united states\" AND player = \"mark brooks\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (Id VARCHAR)",
"role": "system"
},
{
"content": "What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?",
"role": "user"
},
{
"content": "SELECT 2012 FROM table_name_88 WHERE 2011 = \"7.7%\" AND 2008 = \"7.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_74 (points INTEGER, goals_for INTEGER)",
"role": "system"
},
{
"content": "What are the fewest points for goals fewer than 13?",
"role": "user"
},
{
"content": "SELECT MIN(points) FROM table_name_74 WHERE goals_for < 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_name_71 (goals INTEGER, rank INTEGER)",
"role": "system"
},
{
"content": "What is the total Goals with Rank larger than 10?",
"role": "user"
},
{
"content": "SELECT SUM(goals) FROM table_name_71 WHERE rank > 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_21 (country VARCHAR, year_s__won VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the Country that has the Year(s) Won of 1988?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_21 WHERE year_s__won = \"1988\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29077342_19 (mountains_classification VARCHAR, team_classification VARCHAR, general_classification VARCHAR)",
"role": "system"
},
{
"content": "Name the mountains classification for rabobank and damiano cunego",
"role": "user"
},
{
"content": "SELECT mountains_classification FROM table_29077342_19 WHERE team_classification = \"Rabobank\" AND general_classification = \"Damiano Cunego\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11630008_4 (original_air_date VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "How many air dates are there for production code 206?",
"role": "user"
},
{
"content": "SELECT COUNT(original_air_date) FROM table_11630008_4 WHERE production_code = 206",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (villages INTEGER, hanzi VARCHAR, population VARCHAR)",
"role": "system"
},
{
"content": "Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802?",
"role": "user"
},
{
"content": "SELECT MAX(villages) FROM table_name_92 WHERE hanzi = \"南流乡\" AND population > 24 OFFSET 802",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_68 (competition VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Which competition with a result of 3-1?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_68 WHERE result = \"3-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_17118006_2 (department VARCHAR, local_investment__us$_ VARCHAR)",
"role": "system"
},
{
"content": "What was the department that got $626,798 in local investments?",
"role": "user"
},
{
"content": "SELECT department FROM table_17118006_2 WHERE local_investment__us$_ = \"626,798\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (date VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "When is the record 5-4?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_51 WHERE record = \"5-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_73 (recorded VARCHAR, track VARCHAR)",
"role": "system"
},
{
"content": "What is the recorded date of track 8?",
"role": "user"
},
{
"content": "SELECT recorded FROM table_name_73 WHERE track = 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_name_16 (event VARCHAR, inductee_s_ VARCHAR)",
"role": "system"
},
{
"content": "What even was Jerry Lynn the inductee?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_16 WHERE inductee_s_ = \"jerry lynn\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE parties (party_email VARCHAR, party_id VARCHAR); CREATE TABLE party_services (customer_id VARCHAR)",
"role": "system"
},
{
"content": "Which is the email of the party that has used the services the most number of times?",
"role": "user"
},
{
"content": "SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (proposed VARCHAR, listed VARCHAR, county VARCHAR)",
"role": "system"
},
{
"content": "What date was proposed when the listed date was 12/16/1994 in the County of beaufort?",
"role": "user"
},
{
"content": "SELECT proposed FROM table_name_65 WHERE listed = \"12/16/1994\" AND county = \"beaufort\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (city VARCHAR, floors VARCHAR, height__m_ VARCHAR, height__ft_ VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "what is the city with the height (ft) more than 328.1, rank higher than 56, a height (m) of 103 and floors less than 28?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_14 WHERE height__ft_ > 328.1 AND rank > 56 AND height__m_ = 103 AND floors < 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_32 (chassis VARCHAR, engine VARCHAR)",
"role": "system"
},
{
"content": "What chassis was paired with climax straight-4?",
"role": "user"
},
{
"content": "SELECT chassis FROM table_name_32 WHERE engine = \"climax straight-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_52 (home VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who is the home team on March 5?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_52 WHERE date = \"march 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_7 (title VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Which title placed in rank 7?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_7 WHERE rank = 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_86 (listed VARCHAR, county VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is the listed for the bridge at Daniel in Sublette county?",
"role": "user"
},
{
"content": "SELECT listed FROM table_name_86 WHERE county = \"sublette\" AND location = \"daniel\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (name VARCHAR, best VARCHAR)",
"role": "system"
},
{
"content": "Tell me the name with best of 58.403",
"role": "user"
},
{
"content": "SELECT name FROM table_name_46 WHERE best = \"58.403\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12338595_1 (interview VARCHAR, evening_gown VARCHAR)",
"role": "system"
},
{
"content": "Which interview score corresponds with the evening gown score of 8.977?",
"role": "user"
},
{
"content": "SELECT interview FROM table_12338595_1 WHERE evening_gown = \"8.977\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (geohash_length INTEGER, lat_bits VARCHAR, km_error VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest geohash length when the lat bits are less than 7, and the km error of ±2500?",
"role": "user"
},
{
"content": "SELECT MIN(geohash_length) FROM table_name_94 WHERE lat_bits < 7 AND km_error = \"±2500\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_98 (title VARCHAR, rank VARCHAR, director VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE TITLE THAT HAS A RANK BIGGER THAN 10, FOR DIRECTOR WALTER HILL?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_98 WHERE rank > 10 AND director = \"walter hill\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (founded INTEGER, nickname VARCHAR)",
"role": "system"
},
{
"content": "What is the most recent year founded that has a nickname of bruins?",
"role": "user"
},
{
"content": "SELECT MAX(founded) FROM table_name_7 WHERE nickname = \"bruins\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (to_par VARCHAR, total INTEGER)",
"role": "system"
},
{
"content": "Which to par has a total less than 296?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_5 WHERE total < 296",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What place has a 67-68-78-77=290 score?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_25 WHERE score = 67 - 68 - 78 - 77 = 290",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (season_outcome VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "What is the Season Outcome for the Sussex Central School?",
"role": "user"
},
{
"content": "SELECT season_outcome FROM table_name_10 WHERE school = \"sussex central\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (capacity VARCHAR, volts VARCHAR, power_to_weight_ratio VARCHAR)",
"role": "system"
},
{
"content": "What is the capacity with 2.7v volts and a power-to-weight ratio of 5.44 w/kg c/1 (1.875a)?",
"role": "user"
},
{
"content": "SELECT capacity FROM table_name_11 WHERE volts = \"2.7v\" AND power_to_weight_ratio = \"5.44 w/kg c/1 (1.875a)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (pages VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "How many pages does a dream of spring have?",
"role": "user"
},
{
"content": "SELECT pages FROM table_name_3 WHERE title = \"a dream of spring\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE ship (Name VARCHAR, Nationality VARCHAR)",
"role": "system"
},
{
"content": "Show the name of ships whose nationality is either United States or United Kingdom.",
"role": "user"
},
{
"content": "SELECT Name FROM ship WHERE Nationality = \"United States\" OR Nationality = \"United Kingdom\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE stadium (capacity INTEGER)",
"role": "system"
},
{
"content": "What is the average and maximum capacities for all stadiums ?",
"role": "user"
},
{
"content": "SELECT AVG(capacity), MAX(capacity) FROM stadium",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_31 (to_par VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the to par of player vijay singh?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_31 WHERE player = \"vijay singh\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (director VARCHAR, rank VARCHAR, worldwide_gross VARCHAR)",
"role": "system"
},
{
"content": "What director has a worldwide gross of $149,022,650 and is ranked greater than 7?",
"role": "user"
},
{
"content": "SELECT director FROM table_name_39 WHERE rank > 7 AND worldwide_gross = \"$149,022,650\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (rank VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, location VARCHAR, number_of_platforms VARCHAR)",
"role": "system"
},
{
"content": "How many ranks are in liverpool with more than 3 platforms and an annual interchange less than 0.778 million?",
"role": "user"
},
{
"content": "SELECT COUNT(rank) FROM table_name_91 WHERE location = \"liverpool\" AND number_of_platforms > 3 AND annual_interchanges__millions__2011_12 < 0.778",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (opponent VARCHAR, february VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What team was the opponent when February shows more than 2, with a game number less than 55?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_92 WHERE february > 2 AND game < 55",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (lead VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "What is the Lead in the 2004-05 Season?",
"role": "user"
},
{
"content": "SELECT lead FROM table_name_19 WHERE season = \"2004-05\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17104539_10 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "On July 8, what was the score?",
"role": "user"
},
{
"content": "SELECT score FROM table_17104539_10 WHERE date = \"July 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_1341423_20 (party VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What party did incumbent Albert Wynn belong to? ",
"role": "user"
},
{
"content": "SELECT party FROM table_1341423_20 WHERE incumbent = \"Albert Wynn\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (fa_cup_goals INTEGER, league_goals VARCHAR, league_cup_apps VARCHAR, fa_cup_apps VARCHAR)",
"role": "system"
},
{
"content": "what is the average ga cup goals when the league cup apps is 2, the fa cup apps is 3 and the league goals is 3?",
"role": "user"
},
{
"content": "SELECT AVG(fa_cup_goals) FROM table_name_96 WHERE league_cup_apps = \"2\" AND fa_cup_apps = \"3\" AND league_goals = 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_39 (venue VARCHAR, team_1 VARCHAR, score VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_39 WHERE score = \"0:0\" AND season > 2010 AND team_1 = \"t&t hanoi\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (away_team VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE AWAY TEAM WHEN HOME IS LEEDS UNITED?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_44 WHERE home_team = \"leeds united\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12280396_1 (rank VARCHAR, municipality VARCHAR)",
"role": "system"
},
{
"content": "Name the rank where the municipality is sunndal?",
"role": "user"
},
{
"content": "SELECT rank FROM table_12280396_1 WHERE municipality = \"Sunndal\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24600706_1 (released INTEGER, song VARCHAR)",
"role": "system"
},
{
"content": "Name the most released for apologize",
"role": "user"
},
{
"content": "SELECT MAX(released) FROM table_24600706_1 WHERE song = \"Apologize\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What is the highest rank that has 5 silvers, less than 5 golds, and less than 7 total medals?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_83 WHERE silver = 5 AND gold < 5 AND total < 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_41 (week INTEGER, attendance VARCHAR)",
"role": "system"
},
{
"content": "what is the lowest week when the attendance is 54,714?",
"role": "user"
},
{
"content": "SELECT MIN(week) FROM table_name_41 WHERE attendance = 54 OFFSET 714",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1749567_2 (number INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "The Eyserweg race was which race #?",
"role": "user"
},
{
"content": "SELECT MAX(number) FROM table_1749567_2 WHERE name = \"Eyserweg\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (tv_station VARCHAR, romaji_title VARCHAR)",
"role": "system"
},
{
"content": "Which TV station had a Romaji Title Maou?",
"role": "user"
},
{
"content": "SELECT tv_station FROM table_name_64 WHERE romaji_title = \"maou\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (flag VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the flag for Terkoeli?",
"role": "user"
},
{
"content": "SELECT flag FROM table_name_52 WHERE name = \"terkoeli\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (record VARCHAR, h_a_n VARCHAR)",
"role": "system"
},
{
"content": "What is Record, when H/A/N is n?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_42 WHERE h_a_n = \"n\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (losing_bonus VARCHAR, drawn VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "What is the losing bonus with 1 draw and 13 losses?",
"role": "user"
},
{
"content": "SELECT losing_bonus FROM table_name_22 WHERE drawn = \"1\" AND lost = \"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 rooms (roomname VARCHAR, baseprice INTEGER)",
"role": "system"
},
{
"content": "Find the name of rooms whose base price is between 120 and 150.",
"role": "user"
},
{
"content": "SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2562572_33 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)",
"role": "system"
},
{
"content": "What is the other name for martonoš?",
"role": "user"
},
{
"content": "SELECT cyrillic_name_other_names FROM table_2562572_33 WHERE settlement = \"Martonoš\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11111116_8 (written_by VARCHAR, us_viewers__million_ VARCHAR)",
"role": "system"
},
{
"content": "Who wrote the episodes that were viewed by 2.12 million viewers?",
"role": "user"
},
{
"content": "SELECT written_by FROM table_11111116_8 WHERE us_viewers__million_ = \"2.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_63 (week INTEGER, attendance VARCHAR)",
"role": "system"
},
{
"content": "What was the latest week of a game that had an attendance of 63,001?",
"role": "user"
},
{
"content": "SELECT MAX(week) FROM table_name_63 WHERE attendance = \"63,001\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26615633_3 (gender VARCHAR, species VARCHAR)",
"role": "system"
},
{
"content": "what gender has an asian black bear?",
"role": "user"
},
{
"content": "SELECT gender FROM table_26615633_3 WHERE species = \"Asian black bear\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (attendance VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "How many people were watching when Livingston was the runner-up?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_95 WHERE runner_up = \"livingston\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE stay (patient VARCHAR, room VARCHAR)",
"role": "system"
},
{
"content": "How many patients stay in room 112?",
"role": "user"
},
{
"content": "SELECT COUNT(patient) FROM stay WHERE room = 112",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (country VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Country has a Score of 71-74-70=215?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_37 WHERE score = 71 - 74 - 70 = 215",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (assists INTEGER, club VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "How many Assists have a Club of adler mannheim, and Points larger than 57?",
"role": "user"
},
{
"content": "SELECT SUM(assists) FROM table_name_60 WHERE club = \"adler mannheim\" AND points > 57",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Fault_Log (asset_model VARCHAR, asset_id VARCHAR); CREATE TABLE Assets (asset_model VARCHAR, asset_id VARCHAR)",
"role": "system"
},
{
"content": "Which assets did not incur any fault log? List the asset model.",
"role": "user"
},
{
"content": "SELECT asset_model FROM Assets WHERE NOT asset_id IN (SELECT asset_id FROM Fault_Log)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341472_12 (district VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What district is Mac Collins an incumbent in?",
"role": "user"
},
{
"content": "SELECT district FROM table_1341472_12 WHERE incumbent = \"Mac Collins\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (club VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Which Club has a Rank of 1?",
"role": "user"
},
{
"content": "SELECT club FROM table_name_69 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_26250155_1 (original_artist VARCHAR, theme VARCHAR)",
"role": "system"
},
{
"content": "Who was the original artist of the First solo theme?",
"role": "user"
},
{
"content": "SELECT original_artist FROM table_26250155_1 WHERE theme = \"First Solo\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1831262_2 (sesamin VARCHAR, foodstuff VARCHAR)",
"role": "system"
},
{
"content": "how much sesamin is in sesame seed?",
"role": "user"
},
{
"content": "SELECT sesamin FROM table_1831262_2 WHERE foodstuff = \"Sesame seed\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24427210_1 (payout___us VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of payout for december 28, 2009",
"role": "user"
},
{
"content": "SELECT COUNT(payout___us) AS $__ FROM table_24427210_1 WHERE date = \"December 28, 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_56 (team__number2 VARCHAR)",
"role": "system"
},
{
"content": "what's the first leg with gran canaria as team #2?",
"role": "user"
},
{
"content": "SELECT 1 AS st_leg FROM table_name_56 WHERE team__number2 = \"gran canaria\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16732659_2 (rnd INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "FOR AUGUST 13 WHAT IS THE RND ?",
"role": "user"
},
{
"content": "SELECT MAX(rnd) FROM table_16732659_2 WHERE date = \"August 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_name_94 (comp INTEGER, rating VARCHAR, yds_game VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than 100?",
"role": "user"
},
{
"content": "SELECT SUM(comp) FROM table_name_94 WHERE yds_game < 209.5 AND name = \"brytus\" AND rating < 100",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (highway_commissioners VARCHAR)",
"role": "system"
},
{
"content": "When Treasurer was treasurer, who was the highway commissioner?",
"role": "user"
},
{
"content": "SELECT highway_commissioners FROM table_name_37 WHERE \"treasurer\" = \"treasurer\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (laps VARCHAR, driver VARCHAR, grid VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "How many laps are associated with a grid greater than 8, under 11 points, and will power?",
"role": "user"
},
{
"content": "SELECT COUNT(laps) FROM table_name_29 WHERE grid > 8 AND points < 11 AND driver = \"will power\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (home_team VARCHAR)",
"role": "system"
},
{
"content": "What was Melbourne's score when they were the home team?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_37 WHERE home_team = \"melbourne\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (episodes INTEGER, last_airdate VARCHAR)",
"role": "system"
},
{
"content": "How many episodes were in the season that ended on April 29, 1986?",
"role": "user"
},
{
"content": "SELECT AVG(episodes) FROM table_name_65 WHERE last_airdate = \"april 29, 1986\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (place INTEGER, song VARCHAR)",
"role": "system"
},
{
"content": "What is the place of the song 'Never Change'?",
"role": "user"
},
{
"content": "SELECT SUM(place) FROM table_name_79 WHERE song = \"never change\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (celebrity VARCHAR, exited VARCHAR, famous_for VARCHAR)",
"role": "system"
},
{
"content": "Which celebrity who was famous for being the ex busted member and TV presenter exited on day 19?",
"role": "user"
},
{
"content": "SELECT celebrity FROM table_name_53 WHERE exited = \"day 19\" AND famous_for = \"ex busted member and tv presenter\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (venue VARCHAR, home_team VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What was the Venue of the San Francisco 49ers Home game with a Result of 30-10?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_89 WHERE home_team = \"san francisco 49ers\" AND result = \"30-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_28 (ngc_number INTEGER, declination___j2000__ VARCHAR, apparent_magnitude VARCHAR)",
"role": "system"
},
{
"content": "What's the total number of NGC that has a Declination ( J2000 ) of °15′55″, and an Apparent magnitude greater than 10?",
"role": "user"
},
{
"content": "SELECT SUM(ngc_number) FROM table_name_28 WHERE declination___j2000__ = \"°15′55″\" AND apparent_magnitude > 10",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.