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_12 (subject VARCHAR, pinyin VARCHAR)",
"role": "system"
},
{
"content": "Name the subject of shiyan",
"role": "user"
},
{
"content": "SELECT subject FROM table_name_12 WHERE pinyin = \"shiyan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (touchdowns INTEGER, yards VARCHAR, long VARCHAR)",
"role": "system"
},
{
"content": "What is the average Touchdowns, when Yards is less than 293, and when Long is greater than 39?",
"role": "user"
},
{
"content": "SELECT AVG(touchdowns) FROM table_name_7 WHERE yards < 293 AND long > 39",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (cuts_made VARCHAR, events VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of cuts made of tournaments with 2 Events?",
"role": "user"
},
{
"content": "SELECT COUNT(cuts_made) FROM table_name_81 WHERE events = 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 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the score on August 8?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_82 WHERE date = \"august 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_33 (notes VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What is the notes entry for the row with a Time of 1:42.309?",
"role": "user"
},
{
"content": "SELECT notes FROM table_name_33 WHERE time = \"1:42.309\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (fleet_numbers VARCHAR, diagram VARCHAR, lot_no VARCHAR)",
"role": "system"
},
{
"content": "Name the fleet numbers for diagram of 186 and lot number of 30798",
"role": "user"
},
{
"content": "SELECT fleet_numbers FROM table_name_10 WHERE diagram = 186 AND lot_no = 30798",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (points VARCHAR, podiums VARCHAR)",
"role": "system"
},
{
"content": "What were the points in the year when his Podiums were 5?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_35 WHERE podiums = \"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_29635868_1 (object_date VARCHAR, episode_number VARCHAR)",
"role": "system"
},
{
"content": "How many object dates does episode #16 have?",
"role": "user"
},
{
"content": "SELECT COUNT(object_date) FROM table_29635868_1 WHERE episode_number = 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_32 (tail_number VARCHAR, fatalities VARCHAR)",
"role": "system"
},
{
"content": "What was the tail number with 3/3 fatalities?",
"role": "user"
},
{
"content": "SELECT tail_number FROM table_name_32 WHERE fatalities = \"3/3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (route VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which route has a Date of 2 july?",
"role": "user"
},
{
"content": "SELECT route FROM table_name_12 WHERE date = \"2 july\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (gold_coast VARCHAR, adelaide VARCHAR, melbourne VARCHAR, perth VARCHAR)",
"role": "system"
},
{
"content": "What is the result for Gold Coast when Melbourne and Adelaide are yes, but Perth is no?",
"role": "user"
},
{
"content": "SELECT gold_coast FROM table_name_73 WHERE melbourne = \"yes\" AND perth = \"no\" AND adelaide = \"yes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (silver VARCHAR, total VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "How many silver have 4 as the total with a bronze less than 2?",
"role": "user"
},
{
"content": "SELECT COUNT(silver) FROM table_name_42 WHERE total = 4 AND bronze < 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_11206787_5 (average INTEGER)",
"role": "system"
},
{
"content": "What is the average?",
"role": "user"
},
{
"content": "SELECT MIN(average) FROM table_11206787_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_51 (players_per_console VARCHAR, genre VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "For the strategy game in 1992, how many players were allowed per console?",
"role": "user"
},
{
"content": "SELECT players_per_console FROM table_name_51 WHERE genre = \"strategy\" AND year = 1992",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27003223_4 (republican VARCHAR, d_r_spread VARCHAR)",
"role": "system"
},
{
"content": "What is the percentage of republican voters in which the d-r spread is -14.1%?",
"role": "user"
},
{
"content": "SELECT republican FROM table_27003223_4 WHERE d_r_spread = \"-14.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_87 (engine VARCHAR, year INTEGER)",
"role": "system"
},
{
"content": "What engine was used after 1984?",
"role": "user"
},
{
"content": "SELECT engine FROM table_name_87 WHERE year > 1984",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (conference_semifinals VARCHAR, conference_finals VARCHAR)",
"role": "system"
},
{
"content": "Which Conference Semifinals has a Conference Finals of † denotes division championship?",
"role": "user"
},
{
"content": "SELECT conference_semifinals FROM table_name_57 WHERE conference_finals = \"† denotes division 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_13677808_1 (migration VARCHAR, trade VARCHAR)",
"role": "system"
},
{
"content": "What is the migration rating when trade is 5.7?",
"role": "user"
},
{
"content": "SELECT migration FROM table_13677808_1 WHERE trade = \"5.7\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (wins INTEGER, losses VARCHAR, draws VARCHAR, goal_difference VARCHAR)",
"role": "system"
},
{
"content": "What is the average wins of the team with more than 13 draws, a goal difference of -14, and losses less than 14?",
"role": "user"
},
{
"content": "SELECT AVG(wins) FROM table_name_15 WHERE draws > 13 AND goal_difference = -14 AND losses < 14",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2140071_8 (episode INTEGER, premier_date VARCHAR)",
"role": "system"
},
{
"content": "Which Maximum episode premiered March 8, 2008?",
"role": "user"
},
{
"content": "SELECT MAX(episode) FROM table_2140071_8 WHERE premier_date = \"March 8, 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 pets (petType VARCHAR, weight INTEGER)",
"role": "system"
},
{
"content": "Find the maximum weight for each type of pet. List the maximum weight and pet type.",
"role": "user"
},
{
"content": "SELECT MAX(weight), petType FROM pets GROUP BY petType",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (attendance INTEGER, venue VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "I want to know the average attendance for n venue and f round",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_49 WHERE venue = \"n\" AND round = \"f\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE dorm (dorm_name VARCHAR, gender VARCHAR, student_capacity VARCHAR)",
"role": "system"
},
{
"content": "Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.",
"role": "user"
},
{
"content": "SELECT dorm_name, gender FROM dorm WHERE student_capacity > 300 OR student_capacity < 100",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "Name the candidates for texas 1",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1341690_43 WHERE district = \"Texas 1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (number_of_fixtures INTEGER, round VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of Number of fixtures when the rounds shows quarter-finals?",
"role": "user"
},
{
"content": "SELECT SUM(number_of_fixtures) FROM table_name_65 WHERE round = \"quarter-finals\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (displacement VARCHAR, version VARCHAR)",
"role": "system"
},
{
"content": "I want the displacement for version of db",
"role": "user"
},
{
"content": "SELECT displacement FROM table_name_28 WHERE version = \"db\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What year was the position 6/13?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_75 WHERE position = \"6/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_13 (play_by_play VARCHAR, studio_host VARCHAR, colour_commentator_s_ VARCHAR)",
"role": "system"
},
{
"content": "Who did the play-by-play with studio host Ward Cornell and color commentator Bob Goldham?",
"role": "user"
},
{
"content": "SELECT play_by_play FROM table_name_13 WHERE studio_host = \"ward cornell\" AND colour_commentator_s_ = \"bob goldham\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15582870_1 (weight VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "How heavy were the players who attended Arkansas?",
"role": "user"
},
{
"content": "SELECT weight FROM table_15582870_1 WHERE college = \"Arkansas\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (erp_w VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)",
"role": "system"
},
{
"content": "Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia",
"role": "user"
},
{
"content": "SELECT erp_w FROM table_name_19 WHERE frequency_mhz > 93.3 AND city_of_license = \"washington, georgia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_89 (results VARCHAR, total_votes INTEGER)",
"role": "system"
},
{
"content": "What is the result of the election with 3,871 total votes?",
"role": "user"
},
{
"content": "SELECT results FROM table_name_89 WHERE total_votes > 3 OFFSET 871",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (long INTEGER, gain INTEGER)",
"role": "system"
},
{
"content": "What is the long figure when gain is less than 0?",
"role": "user"
},
{
"content": "SELECT AVG(long) FROM table_name_28 WHERE gain < 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_10975034_2 (player VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "Which player from the 2004 CFL draft attended Wilfrid Laurier?",
"role": "user"
},
{
"content": "SELECT player FROM table_10975034_2 WHERE college = \"Wilfrid Laurier\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (class VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "What is the class of the Coca-cola classic 12 hours of sebring race?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_35 WHERE race = \"coca-cola classic 12 hours of sebring\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (livery VARCHAR, status VARCHAR)",
"role": "system"
},
{
"content": "what livery has a status of in service as coaching stock?",
"role": "user"
},
{
"content": "SELECT livery FROM table_name_74 WHERE status = \"in service as coaching stock\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27987623_1 (us_viewers__in_million_ VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "How many viewers saw the episode written by kevin biegel & bill lawrence?",
"role": "user"
},
{
"content": "SELECT us_viewers__in_million_ FROM table_27987623_1 WHERE written_by = \"Kevin Biegel & Bill Lawrence\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, points INTEGER)",
"role": "system"
},
{
"content": "What is the total number of years that an entrant had more than 0 points?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_87 WHERE points > 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_41 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is the average 2001 value with a 2010 value greater than 414, a 2011 value of 7192, and a 2005 value larger than 7340?",
"role": "user"
},
{
"content": "SELECT AVG(2001) FROM table_name_41 WHERE 2010 > 414 AND 2011 = 7192 AND 2005 > 7340",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22669044_9 (high_points VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Name the high points 31-27",
"role": "user"
},
{
"content": "SELECT high_points FROM table_22669044_9 WHERE record = \"31-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_92 (week INTEGER, result VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Which Week is the highest one that has a Result of w 23-20, and an Attendance smaller than 34,127?",
"role": "user"
},
{
"content": "SELECT MAX(week) FROM table_name_92 WHERE result = \"w 23-20\" AND attendance < 34 OFFSET 127",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (power VARCHAR, callsign VARCHAR)",
"role": "system"
},
{
"content": "What is the Power of the Frequency with a Callsign of DXLL?",
"role": "user"
},
{
"content": "SELECT power FROM table_name_48 WHERE callsign = \"dxll\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2092557_12 (us_open INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "When did Shirley Fry Irvin win the US Open?",
"role": "user"
},
{
"content": "SELECT MIN(us_open) FROM table_2092557_12 WHERE player = \"Shirley Fry Irvin\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20396_1 (poles VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "How many poles were there in season 2000?",
"role": "user"
},
{
"content": "SELECT poles FROM table_20396_1 WHERE season = 2000",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (player VARCHAR, country VARCHAR, to_par VARCHAR)",
"role": "system"
},
{
"content": "Name the Player who has a Country of united states, and a To par of –5?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_73 WHERE country = \"united states\" AND to_par = \"–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_28939145_2 (Literate INTEGER, taluka_name VARCHAR)",
"role": "system"
},
{
"content": "How many literate males are there in the taluka name nevasa?",
"role": "user"
},
{
"content": "SELECT MAX(Literate) AS male FROM table_28939145_2 WHERE taluka_name = \"Nevasa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22916979_1 (metropolitan_area VARCHAR, land_area__mi_2__ VARCHAR)",
"role": "system"
},
{
"content": "Which major metropolitan area had a land area of 23.80?",
"role": "user"
},
{
"content": "SELECT metropolitan_area FROM table_22916979_1 WHERE land_area__mi_2__ = \"23.80\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (gdp___bn__ VARCHAR, area__sq_mi_ VARCHAR)",
"role": "system"
},
{
"content": "What is the GDP for the region with an area of 7,263 sq. mi.?",
"role": "user"
},
{
"content": "SELECT gdp___bn__ FROM table_name_74 WHERE area__sq_mi_ = \"7,263\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_31 WHERE 2008 = \"a\" AND 2005 = \"q1\" AND 2004 = \"1r\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (player VARCHAR, money___$__ VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "what player has $187,500 and score 66-75-71-69=281",
"role": "user"
},
{
"content": "SELECT player FROM table_name_4 WHERE money___$__ = \"187,500\" AND score = 66 - 75 - 71 - 69 = 281",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (manufacturer VARCHAR, fleet_numbers VARCHAR)",
"role": "system"
},
{
"content": "Who manufactured fleet numbers of wlwr 2, 4, 11?",
"role": "user"
},
{
"content": "SELECT manufacturer FROM table_name_43 WHERE fleet_numbers = \"wlwr 2, 4, 11\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11964154_11 (high_rebounds VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Who had the high rebounds when the score was l 84–102 (ot)?",
"role": "user"
},
{
"content": "SELECT high_rebounds FROM table_11964154_11 WHERE score = \"L 84–102 (OT)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (airport VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Which airport is located in Singapore?",
"role": "user"
},
{
"content": "SELECT airport FROM table_name_33 WHERE country = \"singapore\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)",
"role": "system"
},
{
"content": "What player did louisville pick when the round was below 8?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_70 WHERE round < 8 AND school_club_team = \"louisville\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (result VARCHAR, distance VARCHAR, weight__kg_ VARCHAR)",
"role": "system"
},
{
"content": "Name The Result that has a Distance of 1200m, and a Weight (kg) of 55.5?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_5 WHERE distance = \"1200m\" AND weight__kg_ = 55.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_18662026_1 (floor VARCHAR, parallel_bars VARCHAR)",
"role": "system"
},
{
"content": "If the parallel bars numbers is 61.500, what is the total number for the flood?",
"role": "user"
},
{
"content": "SELECT COUNT(floor) FROM table_18662026_1 WHERE parallel_bars = \"61.500\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (home_team VARCHAR, attendance INTEGER)",
"role": "system"
},
{
"content": "What is the home team of the match with an attendance greater than 202?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_22 WHERE attendance > 202",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15294880_2 (stage VARCHAR, winner VARCHAR, points_classification VARCHAR)",
"role": "system"
},
{
"content": "How many stages were there where the winner and the points classification were Alberto Contador?",
"role": "user"
},
{
"content": "SELECT COUNT(stage) FROM table_15294880_2 WHERE winner = \"Alberto Contador\" AND points_classification = \"Alberto Contador\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "What is Score, when Country is \"United States\", when Place is \"T9\", and when Player is \"Jay Hebert\"?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_28 WHERE country = \"united states\" AND place = \"t9\" AND player = \"jay hebert\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (winner VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Who is the winner of the race in Burkina Faso?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_60 WHERE location = \"burkina faso\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE payment (amount INTEGER)",
"role": "system"
},
{
"content": "What is the total amount of all payments?",
"role": "user"
},
{
"content": "SELECT SUM(amount) FROM payment",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (name VARCHAR, case_length VARCHAR)",
"role": "system"
},
{
"content": "Which Name has a Case Length of 73.99 (2.913)?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_16 WHERE case_length = \"73.99 (2.913)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (director_s_ VARCHAR, prize VARCHAR)",
"role": "system"
},
{
"content": "What Director won a prize of ¥2,000,000?",
"role": "user"
},
{
"content": "SELECT director_s_ FROM table_name_42 WHERE prize = \"¥2,000,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_name_99 (home VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Which home has an attendance of 507?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_99 WHERE attendance = 507",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12043148_2 (year INTEGER, glos_ VARCHAR, _wilts VARCHAR)",
"role": "system"
},
{
"content": "what is the latest year where glos & wilts is warminster?",
"role": "user"
},
{
"content": "SELECT MAX(year) FROM table_12043148_2 WHERE glos_ & _wilts = \"Warminster\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (owner_s_ VARCHAR, description VARCHAR)",
"role": "system"
},
{
"content": "What owner or owners have an operational description?",
"role": "user"
},
{
"content": "SELECT owner_s_ FROM table_name_34 WHERE description = \"operational\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (result VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "What was the Result in the 2005-06 Season?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_9 WHERE season = \"2005-06\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10015132_3 (years_in_toronto VARCHAR, school_club_team VARCHAR)",
"role": "system"
},
{
"content": "When did the player from Hawaii play for Toronto?",
"role": "user"
},
{
"content": "SELECT years_in_toronto FROM table_10015132_3 WHERE school_club_team = \"Hawaii\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (runner_s__up VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)",
"role": "system"
},
{
"content": "Who is runner-up where the winning score is –6 (65-70-70-69=274) and the margin of victory is 3 strokes?",
"role": "user"
},
{
"content": "SELECT runner_s__up FROM table_name_19 WHERE margin_of_victory = \"3 strokes\" AND winning_score = –6(65 - 70 - 70 - 69 = 274)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (apps INTEGER, player VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "How many Apps did Player Gilberto with more than 1 Goals have?",
"role": "user"
},
{
"content": "SELECT AVG(apps) FROM table_name_64 WHERE player = \"gilberto\" AND goals > 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_18987377_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)",
"role": "system"
},
{
"content": "Name the director for coup de torchon",
"role": "user"
},
{
"content": "SELECT director FROM table_18987377_1 WHERE film_title_used_in_nomination = \"Coup de Torchon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR)",
"role": "system"
},
{
"content": "What is the height in meters for a building in Frankfurt that is 850 feet tall?",
"role": "user"
},
{
"content": "SELECT height__m_ FROM table_name_66 WHERE city = \"frankfurt\" AND height__ft_ = 850",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (league_goals INTEGER, league_cup_goals VARCHAR, position VARCHAR, total_goals VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest league goals that has fw as the position, total goals greater than 9, with league cup goals greater than 4?",
"role": "user"
},
{
"content": "SELECT MIN(league_goals) FROM table_name_43 WHERE position = \"fw\" AND total_goals > 9 AND league_cup_goals > 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_58 (tyre VARCHAR, fastest_lap VARCHAR)",
"role": "system"
},
{
"content": "What is the tyre on the race where Bruce Mclaren had the fastest lap?",
"role": "user"
},
{
"content": "SELECT tyre FROM table_name_58 WHERE fastest_lap = \"bruce mclaren\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the score when the date is December 14, 1985?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_98 WHERE date = \"december 14, 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_58 (grid INTEGER, driver VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of a grid for driver Patrick Carpentier and less than 103 laps?",
"role": "user"
},
{
"content": "SELECT SUM(grid) FROM table_name_58 WHERE driver = \"patrick carpentier\" AND laps < 103",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21034801_1 (game INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "What was the numer of the game when the record was 4-0?",
"role": "user"
},
{
"content": "SELECT MAX(game) FROM table_21034801_1 WHERE record = \"4-0\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (run_3 VARCHAR, run_1 VARCHAR)",
"role": "system"
},
{
"content": "Which Run 3 has a Run 1 of 2:20.10?",
"role": "user"
},
{
"content": "SELECT run_3 FROM table_name_13 WHERE run_1 = \"2:20.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_15 (callback_venue VARCHAR, audition_city VARCHAR)",
"role": "system"
},
{
"content": "What was the callback venue for the Phoenix, Arizona auditions?",
"role": "user"
},
{
"content": "SELECT callback_venue FROM table_name_15 WHERE audition_city = \"phoenix, arizona\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (played INTEGER, wins VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "what is the played when the wins is 21 and the positions is higher than 3?",
"role": "user"
},
{
"content": "SELECT SUM(played) FROM table_name_55 WHERE wins = 21 AND position > 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_17104539_12 (location_attendance VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What was the location and where did the team play game number 32?",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_17104539_12 WHERE game = 32",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25764073_3 (director_s_ VARCHAR, writer_s_ VARCHAR)",
"role": "system"
},
{
"content": "Name the directors for peter gawler",
"role": "user"
},
{
"content": "SELECT director_s_ FROM table_25764073_3 WHERE writer_s_ = \"Peter Gawler\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pick VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "How many teams picked Jason Webb?",
"role": "user"
},
{
"content": "SELECT COUNT(pick) FROM table_name_62 WHERE player = \"jason webb\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE people (Hometown VARCHAR, Age INTEGER)",
"role": "system"
},
{
"content": "Show the hometowns shared by people older than 23 and younger than 20.",
"role": "user"
},
{
"content": "SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (year INTEGER, charts VARCHAR)",
"role": "system"
},
{
"content": "What year was the No. 7 charts?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_32 WHERE charts = \"no. 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 instructor (dept_name VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Find the department name of the instructor whose name contains 'Soisalon'.",
"role": "user"
},
{
"content": "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "Name the Home team of tranmere rovers?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_14 WHERE home_team = \"tranmere rovers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (label VARCHAR, catalogue VARCHAR)",
"role": "system"
},
{
"content": "What label has RTRADLP 346 as catalogue?",
"role": "user"
},
{
"content": "SELECT label FROM table_name_90 WHERE catalogue = \"rtradlp 346\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1908049_1 (playoffs VARCHAR, avg_attendance VARCHAR)",
"role": "system"
},
{
"content": "what where the playoffs where the avg attendance of the team was 3416",
"role": "user"
},
{
"content": "SELECT playoffs FROM table_1908049_1 WHERE avg_attendance = 3416",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (rowers VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Which rowers represented the country of portugal?",
"role": "user"
},
{
"content": "SELECT rowers FROM table_name_4 WHERE country = \"portugal\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (rank INTEGER, rate VARCHAR, apps VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the total Rank for ümit karan when Apps is more than 39 and Rate is more than 0.58?",
"role": "user"
},
{
"content": "SELECT SUM(rank) FROM table_name_15 WHERE apps > 39 AND player = \"ümit karan\" AND rate > 0.58",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank INTEGER, matches VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "What is the average rank for players with under 205 matches and under 100 goals?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_92 WHERE matches < 205 AND goals < 100",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (total INTEGER)",
"role": "system"
},
{
"content": "What is the total of 2013 with 6th?",
"role": "user"
},
{
"content": "SELECT MAX(total) FROM table_name_87 WHERE 2013 = \"6th\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (total VARCHAR, set_1 VARCHAR, score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the Total with a Score of 3–0, and a Date of 14 oct, and has a Set 1 of 15–12?",
"role": "user"
},
{
"content": "SELECT total FROM table_name_78 WHERE score = \"3–0\" AND date = \"14 oct\" AND set_1 = \"15–12\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (name VARCHAR, source VARCHAR)",
"role": "system"
},
{
"content": "What player is associated with soenderjyske.dk?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_58 WHERE source = \"soenderjyske.dk\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (visiting_team VARCHAR, stadium VARCHAR)",
"role": "system"
},
{
"content": "Who was the visiting team at Raymond James Stadium?",
"role": "user"
},
{
"content": "SELECT visiting_team FROM table_name_36 WHERE stadium = \"raymond james stadium\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (home_captain VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Who is the home captain of the match that resulted [[|]] by 151 runs?",
"role": "user"
},
{
"content": "SELECT home_captain FROM table_name_70 WHERE result = \"[[|]] by 151 runs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14288212_1 (win INTEGER, played VARCHAR)",
"role": "system"
},
{
"content": "For teams that played 5 games, what was the smallest number of wins?",
"role": "user"
},
{
"content": "SELECT MIN(win) FROM table_14288212_1 WHERE played = 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_14158567_1 (congress VARCHAR, member_elect VARCHAR)",
"role": "system"
},
{
"content": "What edition of congress for member-elect richard p. giles?",
"role": "user"
},
{
"content": "SELECT congress FROM table_14158567_1 WHERE member_elect = \"Richard P. Giles\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (wins INTEGER, rank INTEGER)",
"role": "system"
},
{
"content": "What's the mean number of wins with a rank that's more than 5?",
"role": "user"
},
{
"content": "SELECT AVG(wins) FROM table_name_91 WHERE rank > 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_22839669_1 (year INTEGER, score_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "What is the most recent year where the final score is 4–6, 3–6, 6–4, 5–7?",
"role": "user"
},
{
"content": "SELECT MAX(year) FROM table_22839669_1 WHERE score_in_the_final = \"4–6, 3–6, 6–4, 5–7\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.