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_82 (score VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game that led to an 80-63 record?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_82 WHERE record = \"80-63\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (no_of_villages INTEGER, name_of_janapada VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of villages with a name of janapada of Punia?",
"role": "user"
},
{
"content": "SELECT AVG(no_of_villages) FROM table_name_86 WHERE name_of_janapada = \"punia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "At what venue did the Essendon team play as an away team?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_92 WHERE away_team = \"essendon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (bronze VARCHAR, total INTEGER)",
"role": "system"
},
{
"content": "What is the total number of bronzes that is less than 1 in total?",
"role": "user"
},
{
"content": "SELECT COUNT(bronze) FROM table_name_24 WHERE total < 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_21666472_1 (no_in_series VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "How many number in series's are written by Greg Haddrick?",
"role": "user"
},
{
"content": "SELECT COUNT(no_in_series) FROM table_21666472_1 WHERE written_by = \"Greg Haddrick\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (team VARCHAR, date_of_appointment VARCHAR)",
"role": "system"
},
{
"content": "Which Team has a Date of appointment on sep. 20, 2008?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_14 WHERE date_of_appointment = \"sep. 20, 2008\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (attendance VARCHAR, week INTEGER)",
"role": "system"
},
{
"content": "What is the attendance before week 1?",
"role": "user"
},
{
"content": "SELECT COUNT(attendance) FROM table_name_75 WHERE week < 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_24 (host_team VARCHAR, visiting_team VARCHAR)",
"role": "system"
},
{
"content": "Who hosted the visiting team Baltimore Ravens?",
"role": "user"
},
{
"content": "SELECT host_team FROM table_name_24 WHERE visiting_team = \"baltimore ravens\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Documents (Id VARCHAR)",
"role": "system"
},
{
"content": "Show the number of documents.",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM Documents",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13564702_4 (tries_against VARCHAR, tries_for VARCHAR)",
"role": "system"
},
{
"content": "How many tries against got the club with 62 tries for?",
"role": "user"
},
{
"content": "SELECT tries_against FROM table_13564702_4 WHERE tries_for = \"62\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (artist VARCHAR, number VARCHAR)",
"role": "system"
},
{
"content": "Which artist has a serial number of BOONCD1?",
"role": "user"
},
{
"content": "SELECT artist FROM table_name_68 WHERE number = \"booncd1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24222929_3 (original_airdate VARCHAR, episode_number_production_number VARCHAR)",
"role": "system"
},
{
"content": "When did the fourth episode of the season (4 1-04) first air?",
"role": "user"
},
{
"content": "SELECT original_airdate FROM table_24222929_3 WHERE episode_number_production_number = \"4 1-04\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24291077_8 (brisbane INTEGER, adelaide VARCHAR)",
"role": "system"
},
{
"content": "What was the rating for Brisbane the week that Adelaide had 94000?",
"role": "user"
},
{
"content": "SELECT MIN(brisbane) FROM table_24291077_8 WHERE adelaide = 94000",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE party (minister VARCHAR, party_name VARCHAR, took_office VARCHAR)",
"role": "system"
},
{
"content": "Show all ministers and parties they belong to in descending order of the time they took office.",
"role": "user"
},
{
"content": "SELECT minister, party_name FROM party ORDER BY took_office DESC",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE candidate (poll_source VARCHAR)",
"role": "system"
},
{
"content": "Which poll resource provided the most number of candidate information?",
"role": "user"
},
{
"content": "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10577579_2 (mens_nickname VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is the Mens Nickname for the member location of Jacksonville, florida?",
"role": "user"
},
{
"content": "SELECT mens_nickname FROM table_10577579_2 WHERE location = \"Jacksonville, Florida\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (author_s_ VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "Who wrote the song that runs for 2:22?",
"role": "user"
},
{
"content": "SELECT author_s_ FROM table_name_35 WHERE time = \"2:22\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (seasons VARCHAR, coach VARCHAR)",
"role": "system"
},
{
"content": "How many seasons has John Mcfadden coached?",
"role": "user"
},
{
"content": "SELECT COUNT(seasons) FROM table_name_71 WHERE coach = \"john mcfadden\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (Id VARCHAR)",
"role": "system"
},
{
"content": "Name the 2012 when 2011 is qf",
"role": "user"
},
{
"content": "SELECT 2012 FROM table_name_97 WHERE 2011 = \"qf\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1213511_5 (player VARCHAR, nationality VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "who is the player with the nationality of canada and pick # is 65?",
"role": "user"
},
{
"content": "SELECT player FROM table_1213511_5 WHERE nationality = \"Canada\" AND pick__number = 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_24 (season VARCHAR, pos VARCHAR, head_coach VARCHAR)",
"role": "system"
},
{
"content": "Which season led to a position of 13, and a head coach of Protasov Lyutyi Talalayev Balakhnin Baidachny?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_24 WHERE pos = 13 AND head_coach = \"protasov lyutyi talalayev balakhnin baidachny\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, notes VARCHAR)",
"role": "system"
},
{
"content": "What year had 6.62 m in the notes?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_60 WHERE notes = \"6.62 m\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tournament VARCHAR, partner VARCHAR)",
"role": "system"
},
{
"content": "What Tournament has a Partner of tom gorman?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_65 WHERE partner = \"tom gorman\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What's the score for opponent @ Tigers on July 24?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_58 WHERE opponent = \"@ tigers\" AND date = \"july 24\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (record VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What Record has an Opponent of vs washington wizards?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_99 WHERE opponent = \"vs washington wizards\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (july VARCHAR, november VARCHAR, october VARCHAR, december VARCHAR)",
"role": "system"
},
{
"content": "What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November?",
"role": "user"
},
{
"content": "SELECT COUNT(july) FROM table_name_12 WHERE october < 8.05 AND december > 4.46 AND november > 6.79",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140083_2 (constructor VARCHAR, rnd VARCHAR)",
"role": "system"
},
{
"content": "What was the constructor for round 15?",
"role": "user"
},
{
"content": "SELECT constructor FROM table_1140083_2 WHERE rnd = 15",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (mayor VARCHAR, election VARCHAR, municipality VARCHAR)",
"role": "system"
},
{
"content": "What is the Mayor of Riva del Garda in 2010?",
"role": "user"
},
{
"content": "SELECT mayor FROM table_name_37 WHERE election = 2010 AND municipality = \"riva del garda\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (capacity INTEGER, coach VARCHAR)",
"role": "system"
},
{
"content": "What is the total capacity for coach Trevor Gleeson?",
"role": "user"
},
{
"content": "SELECT SUM(capacity) FROM table_name_64 WHERE coach = \"trevor gleeson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (thumb_stick VARCHAR, supplier VARCHAR, basic_shape VARCHAR, backlit VARCHAR)",
"role": "system"
},
{
"content": "Which Thumb stick has a Basic shape of curved, a Backlit of yes, and a Supplier of genius?",
"role": "user"
},
{
"content": "SELECT thumb_stick FROM table_name_37 WHERE basic_shape = \"curved\" AND backlit = \"yes\" AND supplier = \"genius\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (MAX VARCHAR, surface VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "Which Event has a Surface of semifinal, and a Winner of hard (i)?",
"role": "user"
},
{
"content": "SELECT NOT MAX AS event FROM table_name_23 WHERE surface = \"semifinal\" AND winner = \"hard (i)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (visitor VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who is the visitor team on 23 November 2007?",
"role": "user"
},
{
"content": "SELECT visitor FROM table_name_98 WHERE date = \"23 november 2007\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12113888_1 (built VARCHAR, scrapped_sold VARCHAR)",
"role": "system"
},
{
"content": "What is the built data on the scrapped information that is cannot handle non-empty timestamp argument! 1947?",
"role": "user"
},
{
"content": "SELECT built FROM table_12113888_1 WHERE scrapped_sold = \"Cannot handle non-empty timestamp argument! 1947\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (model VARCHAR, comments VARCHAR)",
"role": "system"
},
{
"content": "Which Model has Comments of curved daggerboards. design: morelli und melvin?",
"role": "user"
},
{
"content": "SELECT model FROM table_name_61 WHERE comments = \"curved daggerboards. design: morelli und melvin\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (nhl_team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Tell me the NHL team for ryan johnson",
"role": "user"
},
{
"content": "SELECT nhl_team FROM table_name_69 WHERE player = \"ryan johnson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (appointed_elected VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the year when chief justice Mark Cady was appointed/elected?",
"role": "user"
},
{
"content": "SELECT appointed_elected FROM table_name_91 WHERE name = \"chief justice mark cady\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (grid INTEGER, rider VARCHAR)",
"role": "system"
},
{
"content": "What is the Grid for Rider Ruben Xaus?",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_22 WHERE rider = \"ruben xaus\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342256_10 (incumbent VARCHAR, first_elected VARCHAR)",
"role": "system"
},
{
"content": "Which incumbent was first elected in 1940?",
"role": "user"
},
{
"content": "SELECT incumbent FROM table_1342256_10 WHERE first_elected = 1940",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, competition VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_2 WHERE competition = \"1978 world cup qualification\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (outcome VARCHAR, surface VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the Surface of indoor/carpet Outcome on 13 October 1996",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_33 WHERE surface = \"indoor/carpet\" AND date = \"13 october 1996\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (enrollment INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "What is the enrollment for the school Highland?",
"role": "user"
},
{
"content": "SELECT SUM(enrollment) FROM table_name_30 WHERE school = \"highland\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21258_1 (infant_mortality_rate INTEGER, period VARCHAR)",
"role": "system"
},
{
"content": "period between 1985 - 1990 have minimum infant mortality rate of what.",
"role": "user"
},
{
"content": "SELECT MIN(infant_mortality_rate) FROM table_21258_1 WHERE period = \"1985 - 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_199666_1 (codename VARCHAR, centrino VARCHAR)",
"role": "system"
},
{
"content": "What's the code name of the wireless LAN with Chief River Centrino?",
"role": "user"
},
{
"content": "SELECT codename FROM table_199666_1 WHERE centrino = \"Chief River\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (constructor VARCHAR, grand_prix VARCHAR)",
"role": "system"
},
{
"content": "Who constructed the car that won the Canadian Grand Prix?",
"role": "user"
},
{
"content": "SELECT constructor FROM table_name_97 WHERE grand_prix = \"canadian grand prix\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (nation VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What nation had 1399.3 points?",
"role": "user"
},
{
"content": "SELECT nation FROM table_name_35 WHERE points = 1399.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_2326823_2 (model VARCHAR, max_power_output VARCHAR)",
"role": "system"
},
{
"content": "How many models have maximum power output is 162kw (220 ps) at 6,300 rpm?",
"role": "user"
},
{
"content": "SELECT COUNT(model) FROM table_2326823_2 WHERE max_power_output = \"162kW (220 PS) at 6,300 rpm\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance VARCHAR, week VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "How many were in attendance in a week less than 4 with a record of 2–1?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_81 WHERE week < 4 AND record = \"2–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_88 (record VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What was the record of the game that went 3-5?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_88 WHERE score = \"3-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 shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR)",
"role": "system"
},
{
"content": "Find the number of employees hired in each shop; show the shop name as well.",
"role": "user"
},
{
"content": "SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (points VARCHAR, wins VARCHAR, final_placing VARCHAR)",
"role": "system"
},
{
"content": "Which Points have Wins of 0, and a Final Placing of 21st?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_38 WHERE wins = \"0\" AND final_placing = \"21st\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (Id VARCHAR)",
"role": "system"
},
{
"content": "Which 2009 has a 2008 of A, and a 2010 of 4r?",
"role": "user"
},
{
"content": "SELECT 2009 FROM table_name_84 WHERE 2008 = \"a\" AND 2010 = \"4r\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_262527_1 (nickname VARCHAR, institution VARCHAR)",
"role": "system"
},
{
"content": "what is the total number of nicknames for southwestern college?",
"role": "user"
},
{
"content": "SELECT COUNT(nickname) FROM table_262527_1 WHERE institution = \"Southwestern College\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (position_in_1959_1960 VARCHAR, clubs VARCHAR)",
"role": "system"
},
{
"content": "What was the position in 1959-1960 for the Sporting De Braga club?",
"role": "user"
},
{
"content": "SELECT position_in_1959_1960 FROM table_name_19 WHERE clubs = \"sporting de braga\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (lane VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What lane was Henrique Barbosa in?",
"role": "user"
},
{
"content": "SELECT COUNT(lane) FROM table_name_14 WHERE name = \"henrique barbosa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (tag_team VARCHAR, entered VARCHAR)",
"role": "system"
},
{
"content": "Name the Tag Team with Entered of 6?",
"role": "user"
},
{
"content": "SELECT tag_team FROM table_name_94 WHERE entered = 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (opponent VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent at the game with a result of W 38-14?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_92 WHERE result = \"w 38-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_name_11 (team VARCHAR)",
"role": "system"
},
{
"content": "Who was the team captain of tus koblenz?",
"role": "user"
},
{
"content": "SELECT team AS captain FROM table_name_11 WHERE team = \"tus koblenz\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (country VARCHAR, player VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is Country, when Score is \"69-69=138\", and when Player is \"Ian Poulter\"?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_20 WHERE score = 69 - 69 = 138 AND player = \"ian poulter\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (location__all_in_nagano__ VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What location has the name of Sakakita BS?",
"role": "user"
},
{
"content": "SELECT location__all_in_nagano__ FROM table_name_7 WHERE name = \"sakakita bs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (position VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is Position, when Player is \"Kevin Durant category:articles with hCards\"?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_71 WHERE player = \"kevin durant category:articles with hcards\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_225198_3 (successor VARCHAR, reason_for_change VARCHAR)",
"role": "system"
},
{
"content": "Name the successor for james noble died in previous congress",
"role": "user"
},
{
"content": "SELECT successor FROM table_225198_3 WHERE reason_for_change = \"James Noble died in previous Congress\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (guest VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Who was the guest when attendance was 3?",
"role": "user"
},
{
"content": "SELECT guest FROM table_name_98 WHERE attendance = 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 authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE papers (paperid VARCHAR)",
"role": "system"
},
{
"content": "How many papers have \"Atsushi Ohori\" published?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Atsushi\" AND t1.lname = \"Ohori\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (body_tackle VARCHAR, diving_tackle VARCHAR, sliding_tackle VARCHAR)",
"role": "system"
},
{
"content": "Which body tackle has yes for the diving tackle and the sliding tackle classified as a trip?",
"role": "user"
},
{
"content": "SELECT body_tackle FROM table_name_56 WHERE diving_tackle = \"yes\" AND sliding_tackle = \"classified as a trip\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (event VARCHAR, notes VARCHAR)",
"role": "system"
},
{
"content": "What Event goes with Notes 53.76?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_76 WHERE notes = \"53.76\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22133191_3 (date_of_appointment VARCHAR, position_in_table VARCHAR)",
"role": "system"
},
{
"content": "What was the date of appointment for the 10th person in position?",
"role": "user"
},
{
"content": "SELECT date_of_appointment FROM table_22133191_3 WHERE position_in_table = \"10th\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (unit VARCHAR, type VARCHAR)",
"role": "system"
},
{
"content": "Which unite had the type wwer-440/213?",
"role": "user"
},
{
"content": "SELECT unit FROM table_name_31 WHERE type = \"wwer-440/213\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (portuguese VARCHAR, french VARCHAR)",
"role": "system"
},
{
"content": "What is the Portuguese Pluperfect when the French is Ils/Elles Avaient Entendu?",
"role": "user"
},
{
"content": "SELECT portuguese FROM table_name_25 WHERE french = \"ils/elles avaient entendu\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL 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 (Age INTEGER, Sex VARCHAR)",
"role": "system"
},
{
"content": "What is the average age of female (sex is F) students?",
"role": "user"
},
{
"content": "SELECT AVG(Age) FROM STUDENT WHERE Sex = \"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 table_18077713_1 (year_to_april VARCHAR, earnings_per_share__¢_ VARCHAR)",
"role": "system"
},
{
"content": "When the earning per share is listed as 22.0 what is the year to april?",
"role": "user"
},
{
"content": "SELECT COUNT(year_to_april) FROM table_18077713_1 WHERE earnings_per_share__¢_ = \"22.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_78 (species VARCHAR, length__bp_aa_ VARCHAR)",
"role": "system"
},
{
"content": "Which Species has a Length (bp/aa) of 1154bp/358aa?",
"role": "user"
},
{
"content": "SELECT species FROM table_name_78 WHERE length__bp_aa_ = \"1154bp/358aa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tournament VARCHAR, runner_s__up VARCHAR)",
"role": "system"
},
{
"content": "In which tournament was Ian Baker-Finch the runner-up?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_27 WHERE runner_s__up = \"ian baker-finch\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (game VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is Game, when Team is \"Philadelphia\"",
"role": "user"
},
{
"content": "SELECT game FROM table_name_48 WHERE team = \"philadelphia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (place INTEGER, votes VARCHAR, draw VARCHAR)",
"role": "system"
},
{
"content": "What is the highest place of the song with 38 votes and a draw great than 3?",
"role": "user"
},
{
"content": "SELECT MAX(place) FROM table_name_8 WHERE votes = 38 AND draw > 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_20174050_7 (notes VARCHAR, reader VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes?",
"role": "user"
},
{
"content": "SELECT notes FROM table_20174050_7 WHERE reader = \"Briggs, Nicholas Nicholas Briggs\" AND title = \"Paradox Lost\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (catalog VARCHAR, date VARCHAR, format VARCHAR, label VARCHAR)",
"role": "system"
},
{
"content": "What is the Catalog when the format is ed remaster cd, and a Label of village records, and a Date of march 13, 2002?",
"role": "user"
},
{
"content": "SELECT catalog FROM table_name_1 WHERE format = \"ed remaster cd\" AND label = \"village records\" AND date = \"march 13, 2002\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (date VARCHAR, score1 VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_69 WHERE score1 = \"2 - 4\" AND opponent = \"chelsea under 18s\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2159506_4 (district VARCHAR, reason_for_change VARCHAR)",
"role": "system"
},
{
"content": "What is every district for reason for change is died August 9, 1964?",
"role": "user"
},
{
"content": "SELECT district FROM table_2159506_4 WHERE reason_for_change = \"Died August 9, 1964\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (kit_manufacturer VARCHAR, manager VARCHAR)",
"role": "system"
},
{
"content": "What is the kit manufacturer that has billy bonds as the manager?",
"role": "user"
},
{
"content": "SELECT kit_manufacturer FROM table_name_36 WHERE manager = \"billy bonds\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (score VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What was the Score when the Loss was ruthven (1-4)?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_68 WHERE loss = \"ruthven (1-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_5 (pct VARCHAR, years VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is Akron's highest Pct in 100 years?",
"role": "user"
},
{
"content": "SELECT COUNT(pct) FROM table_name_5 WHERE years > 100 AND team = \"akron\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (bronze INTEGER, nation VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won?",
"role": "user"
},
{
"content": "SELECT MIN(bronze) FROM table_name_61 WHERE nation = \"united states\" AND total > 25",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (school VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What School did Terrence Jones play for?",
"role": "user"
},
{
"content": "SELECT school FROM table_name_40 WHERE player = \"terrence jones\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (trans_1 VARCHAR, total_time VARCHAR)",
"role": "system"
},
{
"content": "How long did the trans 1 take when 2:00:40.20 is the total time?",
"role": "user"
},
{
"content": "SELECT trans_1 FROM table_name_28 WHERE total_time = \"2:00:40.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_15 (appearances VARCHAR, club VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make?",
"role": "user"
},
{
"content": "SELECT COUNT(appearances) FROM table_name_15 WHERE club = \"rayo vallecano\" AND goals > 37",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (website VARCHAR, brand VARCHAR)",
"role": "system"
},
{
"content": "What was radio mexicana's website?",
"role": "user"
},
{
"content": "SELECT website FROM table_name_22 WHERE brand = \"radio mexicana\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (released VARCHAR, model VARCHAR)",
"role": "system"
},
{
"content": "what is the release date of the model precision m60?",
"role": "user"
},
{
"content": "SELECT released FROM table_name_75 WHERE model = \"precision m60\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (away_team VARCHAR)",
"role": "system"
},
{
"content": "In the game where Melbourne was the away team, what did they score?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_67 WHERE away_team = \"melbourne\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11803648_20 (player VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Which player is in round 5?",
"role": "user"
},
{
"content": "SELECT player FROM table_11803648_20 WHERE round = 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 storm (name VARCHAR, max_speed VARCHAR, storm_id VARCHAR); CREATE TABLE affected_region (storm_id VARCHAR)",
"role": "system"
},
{
"content": "What is the storm name and max speed which affected the greatest number of regions?",
"role": "user"
},
{
"content": "SELECT T1.name, T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (class_aAAAA VARCHAR, school_year VARCHAR)",
"role": "system"
},
{
"content": "what AAAAA class has the school year of 1990-91?",
"role": "user"
},
{
"content": "SELECT class_aAAAA FROM table_name_56 WHERE school_year = \"1990-91\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27657925_1 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR)",
"role": "system"
},
{
"content": "When there are 5.2 million u.s. viewers how many numbers in series are there?",
"role": "user"
},
{
"content": "SELECT COUNT(no_in_series) FROM table_27657925_1 WHERE us_viewers__millions_ = \"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_14342592_7 (points INTEGER, position VARCHAR, extra_points VARCHAR)",
"role": "system"
},
{
"content": "How many maximum points were there when the left tackle was played and there were 5 extra points?",
"role": "user"
},
{
"content": "SELECT MAX(points) FROM table_14342592_7 WHERE position = \"Left tackle\" AND extra_points = 5",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (long VARCHAR, car VARCHAR, yards VARCHAR)",
"role": "system"
},
{
"content": "What is the long for the player with under 30 carries and 0 yards?",
"role": "user"
},
{
"content": "SELECT long FROM table_name_78 WHERE car < 30 AND yards = \"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_28138035_35 (year_location VARCHAR, mens_singles VARCHAR)",
"role": "system"
},
{
"content": "In what year and location did Wang Liqin win the Mens Singles?",
"role": "user"
},
{
"content": "SELECT year_location FROM table_28138035_35 WHERE mens_singles = \"Wang Liqin\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (losses VARCHAR, byes INTEGER)",
"role": "system"
},
{
"content": "How many losses have byes greater than 2?",
"role": "user"
},
{
"content": "SELECT COUNT(losses) FROM table_name_38 WHERE byes > 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 (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (CLASS_President_VOTE VARCHAR)",
"role": "system"
},
{
"content": "Find the distinct last names of the students who have class president votes.",
"role": "user"
},
{
"content": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Which opponent played in 2001/02?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_65 WHERE season = \"2001/02\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (meaning VARCHAR, pīnyīn VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE MEANING WITH Pīnyīn of chē?",
"role": "user"
},
{
"content": "SELECT meaning FROM table_name_61 WHERE pīnyīn = \"chē\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (location_attendance VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the Location Attendance with a Record that is 1-4?",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_name_31 WHERE record = \"1-4\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.