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_name_79 (points VARCHAR, opponent VARCHAR, february VARCHAR, game VARCHAR)", "role": "system" }, { "content": "How many points did the Flyers have against the New York Islanders with a February bigger than 12, and a game smaller than 60?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_79 WHERE february > 12 AND game < 60 AND opponent = \"new york islanders\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (socialist_ticket VARCHAR, democratic_ticket VARCHAR)", "role": "system" }, { "content": "What name is under the Socialist ticket when Thomas J. Kreuzer was on the Democratic ticket?", "role": "user" }, { "content": "SELECT socialist_ticket FROM table_name_92 WHERE democratic_ticket = \"thomas j. kreuzer\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22839669_1 (outcome VARCHAR, score_in_the_final VARCHAR)", "role": "system" }, { "content": "What was the outcome of the match with score 4–6, 3–6, 2–6?", "role": "user" }, { "content": "SELECT outcome FROM table_22839669_1 WHERE score_in_the_final = \"4–6, 3–6, 2–6\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (position VARCHAR, pick VARCHAR, team VARCHAR)", "role": "system" }, { "content": "what is the position when the pick is higher than 32 and the team is atlanta braves?", "role": "user" }, { "content": "SELECT position FROM table_name_8 WHERE pick > 32 AND team = \"atlanta braves\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (tournament VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What tournament has nov. 21, 1999 as the date?", "role": "user" }, { "content": "SELECT tournament FROM table_name_79 WHERE date = \"nov. 21, 1999\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16527640_3 (location VARCHAR, vfl_games VARCHAR)", "role": "system" }, { "content": "What location had a VFL Game number of 9?", "role": "user" }, { "content": "SELECT location FROM table_16527640_3 WHERE vfl_games = 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 employees (department_id VARCHAR, salary INTEGER, commission_pct VARCHAR)", "role": "system" }, { "content": "display the average salary of employees for each department who gets a commission percentage.", "role": "user" }, { "content": "SELECT department_id, AVG(salary) FROM employees WHERE commission_pct <> \"null\" GROUP BY department_id", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (partner VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What is the Partner during the Asian Games Year?", "role": "user" }, { "content": "SELECT partner FROM table_name_23 WHERE year = \"asian games\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18161217_2 (launch_date VARCHAR, cospar_id VARCHAR)", "role": "system" }, { "content": "What was the launch date the satellite with cospar ID is 2008-033A?", "role": "user" }, { "content": "SELECT launch_date FROM table_18161217_2 WHERE cospar_id = \"2008-033A\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (nominee VARCHAR, category VARCHAR)", "role": "system" }, { "content": "Who is the nominee for best director?", "role": "user" }, { "content": "SELECT nominee FROM table_name_86 WHERE category = \"best director\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (year INTEGER, course VARCHAR)", "role": "system" }, { "content": "What is the year when the course is sunset ridge cc?", "role": "user" }, { "content": "SELECT SUM(year) FROM table_name_43 WHERE course = \"sunset ridge cc\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 INTEGER, gold INTEGER)", "role": "system" }, { "content": "What is the number for rank when gold is less than 0?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_91 WHERE gold < 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (result VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the result of the match on January 26, 2006?", "role": "user" }, { "content": "SELECT result FROM table_name_44 WHERE date = \"january 26, 2006\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27547668_4 (directed_by VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "what is the total number of films directy and written by john callaghan?", "role": "user" }, { "content": "SELECT COUNT(directed_by) FROM table_27547668_4 WHERE written_by = \"John Callaghan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (player VARCHAR, team VARCHAR)", "role": "system" }, { "content": "WHAT PLAYER HAS THE OAKLAND ATHLETICS?", "role": "user" }, { "content": "SELECT player FROM table_name_55 WHERE team = \"oakland athletics\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, entrant VARCHAR)", "role": "system" }, { "content": "What is the largest year with an Entrant of ron harris / team lotus?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_79 WHERE entrant = \"ron harris / team lotus\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)", "role": "system" }, { "content": "Show the date and id of the transcript with at least 2 course results.", "role": "user" }, { "content": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING COUNT(*) >= 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_26375386_18 (public INTEGER, couple VARCHAR)", "role": "system" }, { "content": "WHat was the max public with danniella and matthew?", "role": "user" }, { "content": "SELECT MAX(public) FROM table_26375386_18 WHERE couple = \"Danniella and Matthew\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points VARCHAR, assists VARCHAR, rebounds VARCHAR)", "role": "system" }, { "content": "How many points were there when there were less than 16 rebounds and 5 assists?", "role": "user" }, { "content": "SELECT COUNT(points) FROM table_name_83 WHERE assists = 5 AND rebounds < 16", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (segment_c VARCHAR, episode VARCHAR, segment_b VARCHAR)", "role": "system" }, { "content": "Name the segment c with episode less than 179 and segment b of s sticker", "role": "user" }, { "content": "SELECT segment_c FROM table_name_63 WHERE episode < 179 AND segment_b = \"s sticker\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (score VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What was the score for the game where the home team was Wycombe Wanderers?", "role": "user" }, { "content": "SELECT score FROM table_name_73 WHERE home_team = \"wycombe 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_33 (place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the place of the player with a 72-71-65=208 score?", "role": "user" }, { "content": "SELECT place FROM table_name_33 WHERE score = 72 - 71 - 65 = 208", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Who had a to par of +2 and a score of 78-69-68=215?", "role": "user" }, { "content": "SELECT player FROM table_name_22 WHERE to_par = \"+2\" AND score = 78 - 69 - 68 = 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_77 (game VARCHAR, road_team VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What is Game, when Road Team is \"Syracuse\", and when Result is \"109-82\"?", "role": "user" }, { "content": "SELECT game FROM table_name_77 WHERE road_team = \"syracuse\" AND result = \"109-82\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12792876_4 (points_against VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Name the points against for 51 points", "role": "user" }, { "content": "SELECT points_against FROM table_12792876_4 WHERE points = \"51\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (player VARCHAR, round VARCHAR, college_junior_club_team__league_ VARCHAR)", "role": "system" }, { "content": "Who is the player who was from Dynamo-2 moscow (rus) and was picked after round 5?", "role": "user" }, { "content": "SELECT player FROM table_name_43 WHERE round > 5 AND college_junior_club_team__league_ = \"dynamo-2 moscow (rus)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, against VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the venue for the game played on 16/01/1954, when the against was more than 3?", "role": "user" }, { "content": "SELECT venue FROM table_name_96 WHERE against > 3 AND date = \"16/01/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_14 (rank VARCHAR, headquarters VARCHAR, sales__billion_$_ VARCHAR)", "role": "system" }, { "content": "What is Rank, when Headquarters is United Kingdom, and when Sales (billion $) is 370.9?", "role": "user" }, { "content": "SELECT rank FROM table_name_14 WHERE headquarters = \"united kingdom\" AND sales__billion_$_ = 370.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_73 (ihsaa_class VARCHAR, county VARCHAR, mascot VARCHAR)", "role": "system" }, { "content": "What is the IHSAA class for the school in 10 Clark county with mascot of the Mustangs?", "role": "user" }, { "content": "SELECT ihsaa_class FROM table_name_73 WHERE county = \"10 clark\" AND mascot = \"mustangs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (Id VARCHAR)", "role": "system" }, { "content": "Name the sum of 2010 for 2000 of 17 and 2005 more than 16", "role": "user" }, { "content": "SELECT SUM(2010) FROM table_name_53 WHERE 2000 = 17 AND 2005 > 16", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (position VARCHAR, school_club_team VARCHAR)", "role": "system" }, { "content": "What is Position, when School/Club Team is McMaster?", "role": "user" }, { "content": "SELECT position FROM table_name_34 WHERE school_club_team = \"mcmaster\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (host_team VARCHAR, final_score VARCHAR)", "role": "system" }, { "content": "Which host team won on a final scoreline of 13-10?", "role": "user" }, { "content": "SELECT host_team FROM table_name_55 WHERE final_score = \"13-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_27 (opponent VARCHAR, attendance INTEGER)", "role": "system" }, { "content": "who was the opponent when the attendance was larger than 54,766?", "role": "user" }, { "content": "SELECT opponent FROM table_name_27 WHERE attendance > 54 OFFSET 766", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR)", "role": "system" }, { "content": "Which player from Oregon used the number 12?", "role": "user" }, { "content": "SELECT player FROM table_name_16 WHERE no_s_ = \"12\" AND school_club_team_country = \"oregon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (laps INTEGER, team VARCHAR)", "role": "system" }, { "content": "How many Laps does GP Motorsport Team have?", "role": "user" }, { "content": "SELECT SUM(laps) FROM table_name_43 WHERE team = \"gp motorsport\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, competition VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?", "role": "user" }, { "content": "SELECT result FROM table_name_14 WHERE competition = \"1994 fifa world cup qualification\" AND date = \"may 15, 1993\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, engine VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the latest year that has more than 5 points and a renault ef15 1.5 v6 t engine?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_20 WHERE engine = \"renault ef15 1.5 v6 t\" AND points > 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_26099252_1 (latest_stable_release VARCHAR, vp9___webm__ VARCHAR, h264 VARCHAR)", "role": "system" }, { "content": "What is the last stable version where the h.264 is 3.0 and vp9 (webm) is no.", "role": "user" }, { "content": "SELECT latest_stable_release FROM table_26099252_1 WHERE vp9___webm__ = \"No\" AND h264 = \"3.0\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR)", "role": "system" }, { "content": "Which Crude death rate (per 1000) has Deaths of 768, and a Crude birth rate (per 1000) smaller than 29.7?", "role": "user" }, { "content": "SELECT MIN(crude_death_rate__per_1000_) FROM table_name_51 WHERE deaths = \"768\" AND crude_birth_rate__per_1000_ < 29.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_1771753_3 (chassis VARCHAR, average_speed__mph_ VARCHAR)", "role": "system" }, { "content": "When 169.182 is the average speed miles per hour what is the chassis?", "role": "user" }, { "content": "SELECT chassis FROM table_1771753_3 WHERE average_speed__mph_ = \"169.182\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1964010_2 (surface VARCHAR, year VARCHAR, score VARCHAR)", "role": "system" }, { "content": "How many surfaces were played on in 2005 where the score was 6–7 (4–7) , 3–6, 7–6 (7–2) , 3–6?", "role": "user" }, { "content": "SELECT COUNT(surface) FROM table_1964010_2 WHERE year = 2005 AND score = \"6–7 (4–7) , 3–6, 7–6 (7–2) , 3–6\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (points_for VARCHAR, losing_bonus VARCHAR, club VARCHAR)", "role": "system" }, { "content": "Which Points for has a Losing bonus of 2, and a Club of bridgend sports rfc?", "role": "user" }, { "content": "SELECT points_for FROM table_name_33 WHERE losing_bonus = \"2\" AND club = \"bridgend sports rfc\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What is the date with geelong as Away team?", "role": "user" }, { "content": "SELECT date FROM table_name_63 WHERE away_team = \"geelong\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What did the away team score when they visited south melbourne?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_26 WHERE home_team = \"south 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_73 (title VARCHAR, date VARCHAR, artist VARCHAR)", "role": "system" }, { "content": "Which title was created in 2001 by Mellow?", "role": "user" }, { "content": "SELECT title FROM table_name_73 WHERE date = 2001 AND artist = \"mellow\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (decile INTEGER, name VARCHAR)", "role": "system" }, { "content": "What is the avererage decile of Francis Douglas Memorial College?", "role": "user" }, { "content": "SELECT AVG(decile) FROM table_name_74 WHERE name = \"francis douglas memorial college\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (first VARCHAR, surname VARCHAR, position VARCHAR, uni_number VARCHAR, throws VARCHAR)", "role": "system" }, { "content": "Which First has a Uni # larger than 34, and Throws of r, and a Position of rhp, and a Surname of stockman?", "role": "user" }, { "content": "SELECT first FROM table_name_12 WHERE uni_number > 34 AND throws = \"r\" AND position = \"rhp\" AND surname = \"stockman\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE university (school_id VARCHAR, founded VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, ACC_Regular_Season VARCHAR, school_id VARCHAR)", "role": "system" }, { "content": "What is the team name and acc regular season score of the school that was founded for the longest time?", "role": "user" }, { "content": "SELECT t2.team_name, t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded 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_64 (played INTEGER, points VARCHAR, position VARCHAR, goals_for VARCHAR, draws VARCHAR)", "role": "system" }, { "content": "What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points?", "role": "user" }, { "content": "SELECT AVG(played) FROM table_name_64 WHERE goals_for < 43 AND draws > 9 AND position > 17 AND points = \"30-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_29633639_1 (premiere VARCHAR, peak VARCHAR)", "role": "system" }, { "content": "what is the number of the premiere for the 34 peak", "role": "user" }, { "content": "SELECT premiere FROM table_29633639_1 WHERE peak = 34", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11621915_1 (date VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "what's theΒ dateΒ withΒ tournamentΒ value of ford senior players championship", "role": "user" }, { "content": "SELECT date FROM table_11621915_1 WHERE tournament = \"Ford Senior Players Championship\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (gdp_per_capita__us$_ VARCHAR, population VARCHAR)", "role": "system" }, { "content": "What is the GDP per capita (US$) of the country that has a Population of 2,011,473?", "role": "user" }, { "content": "SELECT gdp_per_capita__us$_ FROM table_name_54 WHERE population = \"2,011,473\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_team VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "What home team has 10 as the tie no?", "role": "user" }, { "content": "SELECT home_team FROM table_name_14 WHERE tie_no = \"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_29102612_1 (season__number INTEGER, us_viewers__millions_ VARCHAR)", "role": "system" }, { "content": "What is the season # when ther are 5.3 million U.S viewers?", "role": "user" }, { "content": "SELECT MAX(season__number) FROM table_29102612_1 WHERE us_viewers__millions_ = \"5.3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11173827_1 (english_title VARCHAR, premiere VARCHAR, finale VARCHAR)", "role": "system" }, { "content": "What is the english title where the premiere is less than 30.0 and the finale is bigger than 36.0?", "role": "user" }, { "content": "SELECT english_title FROM table_11173827_1 WHERE premiere < 30.0 AND finale > 36.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_11621915_1 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "what's theΒ scoreΒ withΒ dateΒ  oct 1", "role": "user" }, { "content": "SELECT score FROM table_11621915_1 WHERE date = \"Oct 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_2 (driving_force_gt VARCHAR, g27_racing_wheel VARCHAR, gt_force VARCHAR, driving_force_pro VARCHAR)", "role": "system" }, { "content": "GT Force of no, and a Driving Force Pro of no, and a G27 Racing Wheel of no has what driving force gt?", "role": "user" }, { "content": "SELECT driving_force_gt FROM table_name_2 WHERE gt_force = \"no\" AND driving_force_pro = \"no\" AND g27_racing_wheel = \"no\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, date VARCHAR, competition VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What is Venue, when Competition is 2010 FIFA World Cup Qualification, when Result is Won, and when Date is 14 June 2008?", "role": "user" }, { "content": "SELECT venue FROM table_name_25 WHERE competition = \"2010 fifa world cup qualification\" AND result = \"won\" AND date = \"14 june 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_27 (speed VARCHAR, team VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What was #7 BMW's speed?", "role": "user" }, { "content": "SELECT speed FROM table_name_27 WHERE team = \"bmw\" AND 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_21260421_1 (score VARCHAR, location VARCHAR)", "role": "system" }, { "content": "How many tournaments were held at Alabama?", "role": "user" }, { "content": "SELECT COUNT(score) FROM table_21260421_1 WHERE location = \"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_23285761_7 (record VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What's the record of the game with number 40?", "role": "user" }, { "content": "SELECT record FROM table_23285761_7 WHERE game = 40", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (Id VARCHAR)", "role": "system" }, { "content": "How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999?", "role": "user" }, { "content": "SELECT SUM(2003) FROM table_name_97 WHERE 2001 = 0 AND 2009 > 0 AND 1999 < 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (average INTEGER, week VARCHAR, yards VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Which Average has Yards larger than 167, and a Team of at tb, and a Week larger than 7?", "role": "user" }, { "content": "SELECT MIN(average) FROM table_name_98 WHERE yards > 167 AND team = \"at tb\" AND week > 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_1087659_2 (division VARCHAR, playoffs VARCHAR)", "role": "system" }, { "content": "What is the division for the division semifinals playoffs?", "role": "user" }, { "content": "SELECT division FROM table_1087659_2 WHERE playoffs = \"division Semifinals\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (writer_s_ VARCHAR, recorded_at VARCHAR, time VARCHAR)", "role": "system" }, { "content": "Who wrote the album recorded at funhouse studios with a time of 3:27?", "role": "user" }, { "content": "SELECT writer_s_ FROM table_name_64 WHERE recorded_at = \"funhouse studios\" AND time = \"3:27\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (nfl_recap VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the NFL Recap of the game held on December 24, 2005?", "role": "user" }, { "content": "SELECT nfl_recap FROM table_name_70 WHERE date = \"december 24, 2005\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (silver INTEGER, gold VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What is the silver number when gold is more than 4, and the total is less than 24?", "role": "user" }, { "content": "SELECT AVG(silver) FROM table_name_54 WHERE gold > 4 AND total < 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_13553701_1 (mens_singles VARCHAR, womens_singles VARCHAR)", "role": "system" }, { "content": "Who is the mens singles and womens singlses is wang shixian?", "role": "user" }, { "content": "SELECT mens_singles FROM table_13553701_1 WHERE womens_singles = \"Wang Shixian\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_team VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "Which Home Team has a Tie no of 13?", "role": "user" }, { "content": "SELECT home_team FROM table_name_61 WHERE tie_no = \"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_96 (home VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Who was the home team at the game that had a score of 2 – 2?", "role": "user" }, { "content": "SELECT home FROM table_name_96 WHERE score = \"2 – 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_70 (member VARCHAR, electorate VARCHAR, state VARCHAR, first_elected VARCHAR, party VARCHAR)", "role": "system" }, { "content": "Which memeber has a first elected of 1972, alp as the party, vic as the state, and an electorate of gellibrand?", "role": "user" }, { "content": "SELECT member FROM table_name_70 WHERE first_elected = \"1972\" AND party = \"alp\" AND state = \"vic\" AND electorate = \"gellibrand\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (pick__number INTEGER, rd__number INTEGER)", "role": "system" }, { "content": "Which Pick # is the highest and has the Rd # is under 1?", "role": "user" }, { "content": "SELECT MAX(pick__number) FROM table_name_9 WHERE rd__number < 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_30 (points INTEGER, goals_against VARCHAR, played VARCHAR)", "role": "system" }, { "content": "Which Points have Goals against of 32, and Played larger than 38?", "role": "user" }, { "content": "SELECT MAX(points) FROM table_name_30 WHERE goals_against = 32 AND played > 38", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, country VARCHAR, year_s__won VARCHAR)", "role": "system" }, { "content": "What was the average total for the player from the United States, who won in 1978?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_73 WHERE country = \"united states\" AND year_s__won = \"1978\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (finalists VARCHAR, club VARCHAR)", "role": "system" }, { "content": "Who Finalists has a Club of gyΕ‘ri?", "role": "user" }, { "content": "SELECT finalists FROM table_name_22 WHERE club = \"gyΕ‘ri\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team VARCHAR, games VARCHAR)", "role": "system" }, { "content": "What is the name of the team with a Games listing of 7?", "role": "user" }, { "content": "SELECT team FROM table_name_27 WHERE games = \"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_58 (record VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the record for the St. Louis team?", "role": "user" }, { "content": "SELECT record FROM table_name_58 WHERE team = \"st. louis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (reason_of_departure VARCHAR, date_outgoing VARCHAR)", "role": "system" }, { "content": "Why did the manager who departed on August 1, 2008 leave?", "role": "user" }, { "content": "SELECT reason_of_departure FROM table_name_84 WHERE date_outgoing = \"august 1, 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 station (LOCATION VARCHAR, number_of_platforms INTEGER, total_passengers INTEGER)", "role": "system" }, { "content": "Show all locations and the total number of platforms and passengers for all train stations in each location.", "role": "user" }, { "content": "SELECT LOCATION, SUM(number_of_platforms), SUM(total_passengers) FROM station GROUP BY LOCATION", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13869651_3 (frequency VARCHAR, part_number_s_ VARCHAR)", "role": "system" }, { "content": "What is the frequency of the model whose part number is ado520biaa5do? ", "role": "user" }, { "content": "SELECT frequency FROM table_13869651_3 WHERE part_number_s_ = \"ADO520BIAA5DO\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (goals VARCHAR, caps VARCHAR)", "role": "system" }, { "content": "Caps of 93 had how many goals?", "role": "user" }, { "content": "SELECT goals FROM table_name_94 WHERE caps = 93", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (venue VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Which Venue has a Result of 2–0?", "role": "user" }, { "content": "SELECT venue FROM table_name_2 WHERE result = \"2–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_29127804_3 (tournament VARCHAR, outcome VARCHAR)", "role": "system" }, { "content": "what is the name of the tournament where outcome is runner-up", "role": "user" }, { "content": "SELECT tournament FROM table_29127804_3 WHERE outcome = \"Runner-up\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team VARCHAR, high_assists VARCHAR)", "role": "system" }, { "content": "What team has brad miller (8) as the high assists?", "role": "user" }, { "content": "SELECT team FROM table_name_76 WHERE high_assists = \"brad miller (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_96 (date VARCHAR, site VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What date was the game at Dowdy-Ficklen stadium β€’ Greenville, NC, with 27,321 in attendance?", "role": "user" }, { "content": "SELECT date FROM table_name_96 WHERE site = \"dowdy-ficklen stadium β€’ greenville, nc\" AND attendance = \"27,321\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15872814_3 (score VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Name the score for washington", "role": "user" }, { "content": "SELECT score FROM table_15872814_3 WHERE team = \"Washington\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (ihsaa_class VARCHAR, location VARCHAR)", "role": "system" }, { "content": "Which IHSAA Class has a Location of linton?", "role": "user" }, { "content": "SELECT ihsaa_class FROM table_name_83 WHERE location = \"linton\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (grid INTEGER, laps INTEGER)", "role": "system" }, { "content": "When the laps are over 53, what's the average grid?", "role": "user" }, { "content": "SELECT AVG(grid) FROM table_name_32 WHERE laps > 53", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, opponent VARCHAR)", "role": "system" }, { "content": "What is the highest Year, when Opponent is #2 Syracuse?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_52 WHERE opponent = \"#2 syracuse\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1?", "role": "user" }, { "content": "SELECT SUM(bronze) FROM table_name_8 WHERE silver = 1 AND rank < 4 AND gold > 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_73 (Id VARCHAR)", "role": "system" }, { "content": "What was in 2007 that is from 2004 0f 2r and 2010 of A?", "role": "user" }, { "content": "SELECT 2007 FROM table_name_73 WHERE 2004 = \"2r\" AND 2010 = \"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_2203760_4 (budget VARCHAR, film VARCHAR)", "role": "system" }, { "content": "What was the budget for \"Thirteen Ghosts\"?", "role": "user" }, { "content": "SELECT budget FROM table_2203760_4 WHERE film = \"Thirteen Ghosts\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (round INTEGER, player VARCHAR)", "role": "system" }, { "content": "What lowest round has orlando pace as the player?", "role": "user" }, { "content": "SELECT MIN(round) FROM table_name_3 WHERE player = \"orlando pace\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13399573_3 (points_against VARCHAR, won VARCHAR)", "role": "system" }, { "content": "What was the number of points against when the amount won is 10?", "role": "user" }, { "content": "SELECT points_against FROM table_13399573_3 WHERE won = \"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_37 (time VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What time was the race for the country of france?", "role": "user" }, { "content": "SELECT time FROM table_name_37 WHERE country = \"france\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (part_number_s_ VARCHAR, turbo VARCHAR)", "role": "system" }, { "content": "what is the part number that has a turbo of low power?", "role": "user" }, { "content": "SELECT part_number_s_ FROM table_name_85 WHERE turbo = \"low 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_26882866_1 (points INTEGER, standing VARCHAR)", "role": "system" }, { "content": "Name the leaast points for standing 5th", "role": "user" }, { "content": "SELECT MIN(points) FROM table_26882866_1 WHERE standing = \"5th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (money___$__ VARCHAR, player VARCHAR)", "role": "system" }, { "content": "what is the money for trevor immelman?", "role": "user" }, { "content": "SELECT money___$__ FROM table_name_77 WHERE player = \"trevor immelman\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16400024_1 (model_number VARCHAR, release_price___usd__ VARCHAR)", "role": "system" }, { "content": "What is the model number with a release price of $496?", "role": "user" }, { "content": "SELECT model_number FROM table_16400024_1 WHERE release_price___usd__ = \"$496\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE city (City_ID VARCHAR, Population INTEGER); CREATE TABLE farm_competition (Theme VARCHAR, Host_city_ID VARCHAR)", "role": "system" }, { "content": "Please show the themes of competitions with host cities having populations larger than 1000.", "role": "user" }, { "content": "SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000", "role": "assistant" } ]