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_1342249_13 (first_elected VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "In what year was Leo E. Allen first elected?", "role": "user" }, { "content": "SELECT first_elected FROM table_1342249_13 WHERE incumbent = \"Leo E. Allen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (release_date VARCHAR, title VARCHAR)", "role": "system" }, { "content": "What is the release date of I Wanna Play House?", "role": "user" }, { "content": "SELECT release_date FROM table_name_95 WHERE title = \"i wanna play house\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (competition VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What Competition had a Score of 3–3?", "role": "user" }, { "content": "SELECT competition FROM table_name_27 WHERE score = \"3–3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11207040_5 (team VARCHAR, stadium VARCHAR)", "role": "system" }, { "content": "What team plays at Palmerston Park?", "role": "user" }, { "content": "SELECT team FROM table_11207040_5 WHERE stadium = \"Palmerston Park\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, midwest__des_moines_ VARCHAR)", "role": "system" }, { "content": "What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest?", "role": "user" }, { "content": "SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE midwest__des_moines_ = \"300 g/mi (186 g/km)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank INTEGER, nation VARCHAR)", "role": "system" }, { "content": "What is the lowest Rank with a Nation that is east germany?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_name_43 WHERE nation = \"east germany\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20704243_3 (directed_by VARCHAR, season__number VARCHAR)", "role": "system" }, { "content": "How many directors were in Season 2?", "role": "user" }, { "content": "SELECT COUNT(directed_by) FROM table_20704243_3 WHERE season__number = 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_12828723_5 (lost VARCHAR)", "role": "system" }, { "content": "What was the lost with tries for?", "role": "user" }, { "content": "SELECT lost FROM table_12828723_5 WHERE \"tries_for\" = \"tries_for\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, previous_network VARCHAR)", "role": "system" }, { "content": "For the NBC network, what was the new/returning/same network status?", "role": "user" }, { "content": "SELECT new_returning_same_network FROM table_169766_13 WHERE previous_network = \"NBC\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30121046_1 (area__acres__ INTEGER, townland VARCHAR)", "role": "system" }, { "content": "What is the maximum area (in acres) of the Knockacullen townland?", "role": "user" }, { "content": "SELECT MAX(area__acres__) FROM table_30121046_1 WHERE townland = \"Knockacullen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, event VARCHAR)", "role": "system" }, { "content": "Who set the record in the 500 metres event?", "role": "user" }, { "content": "SELECT name FROM table_name_14 WHERE event = \"500 metres\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (torque VARCHAR, volume VARCHAR, co_2 VARCHAR)", "role": "system" }, { "content": "Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km?", "role": "user" }, { "content": "SELECT torque FROM table_name_21 WHERE volume = \"1896 cc\" AND co_2 = \"140 g/km\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27902171_4 (high_assists VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Who had the high assist total when the team was 0-1?", "role": "user" }, { "content": "SELECT high_assists FROM table_27902171_4 WHERE record = \"0-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_35 (popular_votes INTEGER, percentage VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Name the average popular votes in years after 1990 with percentage of 4.94%", "role": "user" }, { "content": "SELECT AVG(popular_votes) FROM table_name_35 WHERE percentage = \"4.94%\" AND year > 1990", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (diameter__km_ VARCHAR, longitude VARCHAR, year_named VARCHAR)", "role": "system" }, { "content": "What's the total diameter when longitude is 357.8e later than 1985?", "role": "user" }, { "content": "SELECT COUNT(diameter__km_) FROM table_name_60 WHERE longitude = \"357.8e\" AND year_named > 1985", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (pos VARCHAR, to_club VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Teerasil Dangda who had a to club of released plays what position?", "role": "user" }, { "content": "SELECT pos FROM table_name_76 WHERE to_club = \"released\" AND player = \"teerasil dangda\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (player VARCHAR, place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Who scored 74-70-67=211 and placed t5?", "role": "user" }, { "content": "SELECT player FROM table_name_6 WHERE place = \"t5\" AND score = 74 - 70 - 67 = 211", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (street_address VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the street address of Notre Dame Basilica?", "role": "user" }, { "content": "SELECT street_address FROM table_name_74 WHERE name = \"notre dame basilica\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (location VARCHAR, year VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the location for Yemen in 1994?", "role": "user" }, { "content": "SELECT location FROM table_name_1 WHERE year = \"1994\" AND country = \"yemen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Rating (rID VARCHAR, stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "role": "system" }, { "content": "Find the title and star rating of the movie that got the least rating star for each reviewer.", "role": "user" }, { "content": "SELECT T2.title, T1.rID, T1.stars, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (credentials_presented VARCHAR, state VARCHAR)", "role": "system" }, { "content": "What day were credentials presented for vermont?", "role": "user" }, { "content": "SELECT credentials_presented FROM table_name_35 WHERE state = \"vermont\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27277284_28 (ht VARCHAR, mult_1 VARCHAR)", "role": "system" }, { "content": "How much ht does the model with 10x mult. 1 have?", "role": "user" }, { "content": "SELECT ht FROM table_27277284_28 WHERE mult_1 = \"10x\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (laps VARCHAR, time_retired VARCHAR)", "role": "system" }, { "content": "What's the lap number for time/retired of +33.912?", "role": "user" }, { "content": "SELECT COUNT(laps) FROM table_name_71 WHERE time_retired = \"+33.912\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17120964_8 (attendance INTEGER, man_of_the_match VARCHAR)", "role": "system" }, { "content": "What was the attendance at the game where Neil Liddiard was Man of the Match?", "role": "user" }, { "content": "SELECT MIN(attendance) FROM table_17120964_8 WHERE man_of_the_match = \"Neil Liddiard\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18963843_1 (asian_american_population__2010_ INTEGER, combined_statistical_area VARCHAR)", "role": "system" }, { "content": "Name the asian american population 2010 for kansas city-overland park-kansas city, mo-ks csa", "role": "user" }, { "content": "SELECT MAX(asian_american_population__2010_) FROM table_18963843_1 WHERE combined_statistical_area = \"Kansas City-Overland Park-Kansas City, MO-KS CSA\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (population INTEGER, colour VARCHAR, construction_commenced VARCHAR)", "role": "system" }, { "content": "What is the lowest population for the neighborhood with the color blue that commenced its construction before 1987?", "role": "user" }, { "content": "SELECT MIN(population) FROM table_name_20 WHERE colour = \"blue\" AND construction_commenced < 1987", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bronze INTEGER, silver INTEGER)", "role": "system" }, { "content": "What is the least bronze number when the silver is less than 0?", "role": "user" }, { "content": "SELECT MIN(bronze) FROM table_name_34 WHERE silver < 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_75 (date VARCHAR, visiting_team VARCHAR)", "role": "system" }, { "content": "What date had the Houston Texans as visitors?", "role": "user" }, { "content": "SELECT date FROM table_name_75 WHERE visiting_team = \"houston texans\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What's the attendance of the game with a score of 5-4?", "role": "user" }, { "content": "SELECT attendance FROM table_name_52 WHERE score = \"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_32 (pick INTEGER, name VARCHAR, overall VARCHAR)", "role": "system" }, { "content": "The player Cecil Martin with an overall less than 268 has what total pick?", "role": "user" }, { "content": "SELECT SUM(pick) FROM table_name_32 WHERE name = \"cecil martin\" AND overall < 268", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18042409_1 (player VARCHAR, national_lacrosse_league VARCHAR)", "role": "system" }, { "content": "List all of the NLL Toronto Rock players. ", "role": "user" }, { "content": "SELECT player FROM table_18042409_1 WHERE national_lacrosse_league = \"Toronto Rock\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (total INTEGER, bronze INTEGER)", "role": "system" }, { "content": "How many totals had more than 4 bronze?", "role": "user" }, { "content": "SELECT SUM(total) FROM table_name_93 WHERE bronze > 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_70 (points INTEGER, engine VARCHAR, entrant VARCHAR)", "role": "system" }, { "content": "What is the most points when Maserati made the engine, and a Entrant of owen racing organisation?", "role": "user" }, { "content": "SELECT MAX(points) FROM table_name_70 WHERE engine = \"maserati\" AND entrant = \"owen racing organisation\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27155243_3 (total__number VARCHAR, directed_by VARCHAR)", "role": "system" }, { "content": "How many different episode numbers are there for the episodes directed by Sheri Elwood?", "role": "user" }, { "content": "SELECT COUNT(total__number) FROM table_27155243_3 WHERE directed_by = \"Sheri Elwood\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341663_44 (result VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "Name the result when the incumbent was george h. mahon", "role": "user" }, { "content": "SELECT result FROM table_1341663_44 WHERE incumbent = \"George H. Mahon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE countrylanguage (Percentage INTEGER, CountryCode VARCHAR, LANGUAGE VARCHAR)", "role": "system" }, { "content": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", "role": "user" }, { "content": "SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE pets (weight INTEGER)", "role": "system" }, { "content": "Find the number of pets whose weight is heavier than 10.", "role": "user" }, { "content": "SELECT COUNT(*) FROM pets WHERE weight > 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_22514845_3 (reporters VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many reporters for the year 1993?", "role": "user" }, { "content": "SELECT COUNT(reporters) FROM table_22514845_3 WHERE year = 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_59 (city VARCHAR, state VARCHAR, school VARCHAR)", "role": "system" }, { "content": "Which City has a State of massachusetts, and a School of northeastern university?", "role": "user" }, { "content": "SELECT city FROM table_name_59 WHERE state = \"massachusetts\" AND school = \"northeastern university\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (podiums INTEGER, wins VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What is the highest Podiums with 0 as wins, and a season later than 1985?", "role": "user" }, { "content": "SELECT MAX(podiums) FROM table_name_31 WHERE wins = 0 AND season > 1985", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (iwork_version VARCHAR, release_date VARCHAR, pages_version VARCHAR)", "role": "system" }, { "content": "What version of iWork was released on October 22, 2013 with a pages version greater than 2?", "role": "user" }, { "content": "SELECT iwork_version FROM table_name_44 WHERE release_date = \"october 22, 2013\" AND pages_version > 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_95 (meet VARCHAR, time VARCHAR)", "role": "system" }, { "content": "Which Meet has a Time of 3:50.65?", "role": "user" }, { "content": "SELECT meet FROM table_name_95 WHERE time = \"3:50.65\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, place VARCHAR, country VARCHAR)", "role": "system" }, { "content": "Which Score has a Place of t5, and a Country of united states?", "role": "user" }, { "content": "SELECT score FROM table_name_30 WHERE place = \"t5\" AND country = \"united states\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (points_won INTEGER, total_matches VARCHAR, total_w_l_h VARCHAR)", "role": "system" }, { "content": "Can you tell me the lowest Points won that has the Total matches of 4, and the Total W-L-H of 4-0-0?", "role": "user" }, { "content": "SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = \"4-0-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_53 (english VARCHAR, german VARCHAR)", "role": "system" }, { "content": "What's the English word for apfel?", "role": "user" }, { "content": "SELECT english FROM table_name_53 WHERE german = \"apfel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Faculty (rank VARCHAR, Fname VARCHAR, Lname VARCHAR)", "role": "system" }, { "content": "Show the rank, first name, and last name for all the faculty.", "role": "user" }, { "content": "SELECT rank, Fname, Lname FROM Faculty", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (game INTEGER, score VARCHAR)", "role": "system" }, { "content": "What is the Game # that scored 87-92?", "role": "user" }, { "content": "SELECT SUM(game) FROM table_name_46 WHERE score = \"87-92\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2701625_1 (female_life_expectancy INTEGER, country VARCHAR)", "role": "system" }, { "content": "Name the most female life expectancy for djibouti", "role": "user" }, { "content": "SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE country = \"Djibouti\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17632217_2 (third_place VARCHAR, runners_up VARCHAR)", "role": "system" }, { "content": "Who was placed third when the ruuner up was Guangzhou Apollo?", "role": "user" }, { "content": "SELECT third_place FROM table_17632217_2 WHERE runners_up = \"Guangzhou Apollo\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (position VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)", "role": "system" }, { "content": "What is Tina Sachdev's position?", "role": "user" }, { "content": "SELECT position FROM table_name_60 WHERE co_contestant__yaar_vs_pyaar_ = \"tina sachdev\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What home team played against south Melbourne?", "role": "user" }, { "content": "SELECT home_team FROM table_name_54 WHERE away_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_22165661_3 (score VARCHAR, championship_game_opponent VARCHAR)", "role": "system" }, { "content": "How many scores are there when the championship game opponent is Miami University?", "role": "user" }, { "content": "SELECT COUNT(score) FROM table_22165661_3 WHERE championship_game_opponent = \"Miami University\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What date was gabriela paz-franco the opponent?", "role": "user" }, { "content": "SELECT date FROM table_name_2 WHERE opponent = \"gabriela paz-franco\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (e_coli VARCHAR, substrates VARCHAR)", "role": "system" }, { "content": "Which E. coli has a substrate of uracil?", "role": "user" }, { "content": "SELECT e_coli FROM table_name_22 WHERE substrates = \"uracil\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (silver INTEGER, nation VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS?", "role": "user" }, { "content": "SELECT MAX(silver) FROM table_name_43 WHERE nation = \"south korea\" AND gold > 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_15318324_1 (r_z___arcsecond__ VARCHAR, r_y___arcsecond__ VARCHAR)", "role": "system" }, { "content": "How many values of r z (arcsecond) correspond with a r y (arcsecond) value of −0.247?", "role": "user" }, { "content": "SELECT r_z___arcsecond__ FROM table_15318324_1 WHERE r_y___arcsecond__ = \"−0.247\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23235546_1 (score_in_the_final VARCHAR, championship VARCHAR, opponent_in_the_final VARCHAR)", "role": "system" }, { "content": "What was the score in the final when Mats Wilander was the opponent in the Australian Open?", "role": "user" }, { "content": "SELECT score_in_the_final FROM table_23235546_1 WHERE championship = \"Australian Open\" AND opponent_in_the_final = \"Mats Wilander\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (round VARCHAR, time VARCHAR)", "role": "system" }, { "content": "Which round has a time of 3:01?", "role": "user" }, { "content": "SELECT round FROM table_name_43 WHERE time = \"3:01\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (country VARCHAR, nominating_festival VARCHAR)", "role": "system" }, { "content": "Name the country which has prix uip venezia", "role": "user" }, { "content": "SELECT country FROM table_name_9 WHERE nominating_festival = \"prix uip venezia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (_percentage_of_seats VARCHAR, net_gain_loss VARCHAR)", "role": "system" }, { "content": "When there was a net gain/loss of +34, what was the percentage of seats that party held?", "role": "user" }, { "content": "SELECT _percentage_of_seats FROM table_name_74 WHERE net_gain_loss = \"+34\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (finish VARCHAR, manager VARCHAR, record VARCHAR)", "role": "system" }, { "content": "what is the finish when the manager is tom kotchman and the record is 40-36?", "role": "user" }, { "content": "SELECT finish FROM table_name_50 WHERE manager = \"tom kotchman\" AND record = \"40-36\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (champion VARCHAR, year VARCHAR, semi_finalist__number1 VARCHAR)", "role": "system" }, { "content": "Who was champion in 2005 where the semi-finalist was #1 in western Carolina?", "role": "user" }, { "content": "SELECT champion FROM table_name_36 WHERE year = 2005 AND semi_finalist__number1 = \"western carolina\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, rank VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What is the smallest total number of medals for rank 11 and more than 0 silver medals?", "role": "user" }, { "content": "SELECT MIN(total) FROM table_name_25 WHERE rank = \"11\" AND silver > 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 Claims (Amount_Settled VARCHAR, Amount_Claimed VARCHAR)", "role": "system" }, { "content": "Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.", "role": "user" }, { "content": "SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Claimed 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_38 (tunnel VARCHAR, length__imperial_ VARCHAR)", "role": "system" }, { "content": "What Tunnel has an Imperial Length of 307 yd?", "role": "user" }, { "content": "SELECT tunnel FROM table_name_38 WHERE length__imperial_ = \"307 yd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)", "role": "system" }, { "content": "Find the name and age of the person who is a friend of both Dan and Alice.", "role": "user" }, { "content": "SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR)", "role": "system" }, { "content": "How many years did he have an average start of 20.7?", "role": "user" }, { "content": "SELECT COUNT(avg_finish) FROM table_2169966_2 WHERE avg_start = \"20.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_90 (engine_type VARCHAR, model VARCHAR)", "role": "system" }, { "content": "What is the engine type with a model with base 2.4?", "role": "user" }, { "content": "SELECT engine_type FROM table_name_90 WHERE model = \"base 2.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_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR)", "role": "system" }, { "content": "WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?", "role": "user" }, { "content": "SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = \"joe colborne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR)", "role": "system" }, { "content": "WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150?", "role": "user" }, { "content": "SELECT MIN(pick) FROM table_name_57 WHERE round > 1 AND name = \"joe day\" AND overall < 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_name_51 (runner_up VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What is the runner-up when the total is 5?", "role": "user" }, { "content": "SELECT runner_up FROM table_name_51 WHERE total = 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_31 (record VARCHAR, location VARCHAR, method VARCHAR)", "role": "system" }, { "content": "What is Record, when Location is \"Des Moines, Iowa , United States\", and when Method is \"Submission (arm-triangle choke)\"?", "role": "user" }, { "content": "SELECT record FROM table_name_31 WHERE location = \"des moines, iowa , united states\" AND method = \"submission (arm-triangle choke)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Faculty (rank VARCHAR, sex VARCHAR)", "role": "system" }, { "content": "Show all the ranks and the number of male and female faculty for each rank.", "role": "user" }, { "content": "SELECT rank, sex, COUNT(*) FROM Faculty GROUP BY rank, sex", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (enrollment VARCHAR, nickname VARCHAR)", "role": "system" }, { "content": "What is the total enrollment at the school that has the nickname of the Fightin' Blue Hens?", "role": "user" }, { "content": "SELECT COUNT(enrollment) FROM table_name_52 WHERE nickname = \"fightin' blue hens\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17058226_10 (date VARCHAR, team VARCHAR)", "role": "system" }, { "content": "On how many dates did the Timberwolves play Phoenix? ", "role": "user" }, { "content": "SELECT COUNT(date) FROM table_17058226_10 WHERE team = \"Phoenix\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE book_club (category VARCHAR)", "role": "system" }, { "content": "Show all book categories and the number of books in each category.", "role": "user" }, { "content": "SELECT category, COUNT(*) FROM book_club GROUP BY category", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance INTEGER, week VARCHAR)", "role": "system" }, { "content": "What's the lowest Attendance for a Week of 2?", "role": "user" }, { "content": "SELECT MIN(attendance) FROM table_name_3 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_11 (launch_date VARCHAR, space_agency VARCHAR, name VARCHAR)", "role": "system" }, { "content": "When did NASA launch the wide field infrared explorer (wire)?", "role": "user" }, { "content": "SELECT launch_date FROM table_name_11 WHERE space_agency = \"nasa\" AND name = \"wide field infrared explorer (wire)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (d__max_ VARCHAR, morse_taper_number VARCHAR, c__max_ VARCHAR)", "role": "system" }, { "content": "With a Morse Taper number less than 3 and a C (max) of 59.5 what is the total of D (max)?", "role": "user" }, { "content": "SELECT COUNT(d__max_) FROM table_name_59 WHERE morse_taper_number < 3 AND c__max_ = 59.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_57 (family VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What family has the name of eastern cottontail?", "role": "user" }, { "content": "SELECT family FROM table_name_57 WHERE name = \"eastern cottontail\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27114708_2 (manner_of_departure VARCHAR, team VARCHAR)", "role": "system" }, { "content": "For livorno team mention all the manner of departure", "role": "user" }, { "content": "SELECT manner_of_departure FROM table_27114708_2 WHERE team = \"Livorno\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (wins INTEGER, tournament VARCHAR, top_5 VARCHAR)", "role": "system" }, { "content": "What is the average number of Wins in a PGA Championship with a Top-5 less than 2?", "role": "user" }, { "content": "SELECT AVG(wins) FROM table_name_87 WHERE tournament = \"pga championship\" AND top_5 < 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_28 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "Tell me the rank for bronze less than 17 and gold less than 1", "role": "user" }, { "content": "SELECT rank FROM table_name_28 WHERE bronze < 17 AND silver > 1 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_37 (bronze INTEGER, total VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "How many bronzes were held by those with a total of 4 and less than 3 silvers.", "role": "user" }, { "content": "SELECT SUM(bronze) FROM table_name_37 WHERE total = 4 AND silver < 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_98 (venue VARCHAR, crowd INTEGER)", "role": "system" }, { "content": "What venue featured a crowd of over 30,000?", "role": "user" }, { "content": "SELECT venue FROM table_name_98 WHERE crowd > 30 OFFSET 000", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16425614_4 (official__number INTEGER, tf1__number VARCHAR)", "role": "system" }, { "content": "Name the most official number for tf1 # being 42", "role": "user" }, { "content": "SELECT MAX(official__number) FROM table_16425614_4 WHERE tf1__number = 42", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22269839_1 (directed_by VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "Who directed the title written by cherry chevapravatdumrong?", "role": "user" }, { "content": "SELECT directed_by FROM table_22269839_1 WHERE written_by = \"Cherry Chevapravatdumrong\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "WHAT IS THE SCORE WITH A TIE NUMBER OF 13?", "role": "user" }, { "content": "SELECT score FROM table_name_86 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_1160660_1 (university_name VARCHAR, acronym VARCHAR)", "role": "system" }, { "content": "What University has the acrronym of USF", "role": "user" }, { "content": "SELECT university_name FROM table_1160660_1 WHERE acronym = \"USF\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_160510_5 (region VARCHAR, hangul_chosongul VARCHAR)", "role": "system" }, { "content": "Name the number of region for 경상남도", "role": "user" }, { "content": "SELECT COUNT(region) FROM table_160510_5 WHERE hangul_chosongul = \"경상남도\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (round INTEGER, pick VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the sum of rounds that has a pick of 9 and is named jim pyburn?", "role": "user" }, { "content": "SELECT SUM(round) FROM table_name_62 WHERE pick = 9 AND name = \"jim pyburn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14871601_2 (scored INTEGER, points VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is the value scored when there were 19 points for the team 3 de Febrero?", "role": "user" }, { "content": "SELECT MAX(scored) FROM table_14871601_2 WHERE points = 19 AND team = \"3 de Febrero\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, surface VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who played on clay on 3 march 2012?", "role": "user" }, { "content": "SELECT opponent FROM table_name_16 WHERE surface = \"clay\" AND date = \"3 march 2012\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (rank VARCHAR, class VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was the rank of the 1983 team in the 250cc class?", "role": "user" }, { "content": "SELECT rank FROM table_name_51 WHERE class = \"250cc\" AND year = 1983", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29920800_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)", "role": "system" }, { "content": "Who wrote the episode that was watched by 2.97 million U.S. viewers? ", "role": "user" }, { "content": "SELECT written_by FROM table_29920800_1 WHERE us_viewers__million_ = \"2.97\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (province VARCHAR, rank VARCHAR, name VARCHAR)", "role": "system" }, { "content": "what is the province when the rank is higher than 24 and the name is laforge-2?", "role": "user" }, { "content": "SELECT province FROM table_name_42 WHERE rank > 24 AND name = \"laforge-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_82 (nationality VARCHAR, athlete VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What's the nationality of Henry Carr having a time of 20.3y?", "role": "user" }, { "content": "SELECT nationality FROM table_name_82 WHERE athlete = \"henry carr\" AND time = \"20.3y\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What team played at lake oval while away?", "role": "user" }, { "content": "SELECT away_team FROM table_name_51 WHERE venue = \"lake 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_30047613_12 (date VARCHAR, streak VARCHAR)", "role": "system" }, { "content": "in which date the strea was w 2", "role": "user" }, { "content": "SELECT date FROM table_30047613_12 WHERE streak = \"W 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 student (fname VARCHAR, sex VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR)", "role": "system" }, { "content": "Find the first name and gender of student who have more than one pet.", "role": "user" }, { "content": "SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1", "role": "assistant" } ]