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_256286_63 (no_votes VARCHAR, description VARCHAR)",
"role": "system"
},
{
"content": "How many no votes were there in the partial public funding of election campaigns legislation?",
"role": "user"
},
{
"content": "SELECT no_votes FROM table_256286_63 WHERE description = \"Partial public funding of election campaigns\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent at the game when the record was 28β45?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_66 WHERE record = \"28β45\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15187735_11 (segment_d VARCHAR, series_ep VARCHAR)",
"role": "system"
},
{
"content": "What is the title of series episode 11-05's segment d?",
"role": "user"
},
{
"content": "SELECT segment_d FROM table_15187735_11 WHERE series_ep = \"11-05\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15700367_2 (wickets VARCHAR, overs_bowled VARCHAR)",
"role": "system"
},
{
"content": "Name the wickets for overs bowled being 15",
"role": "user"
},
{
"content": "SELECT wickets FROM table_15700367_2 WHERE overs_bowled = \"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_36 (fa_cup VARCHAR, other_ VARCHAR, c_ VARCHAR)",
"role": "system"
},
{
"content": "The other [C] of 0 12 0 (0) belongs to what FA Cup?",
"role": "user"
},
{
"content": "SELECT fa_cup FROM table_name_36 WHERE other_[c_] = \"0 12 0 (0)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (socket VARCHAR, sspec_number VARCHAR)",
"role": "system"
},
{
"content": "What is the socket when the sSpec number is standard power?",
"role": "user"
},
{
"content": "SELECT socket FROM table_name_96 WHERE sspec_number = \"standard power\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (fleet_size INTEGER, iata VARCHAR, commenced_operations VARCHAR)",
"role": "system"
},
{
"content": "What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?",
"role": "user"
},
{
"content": "SELECT SUM(fleet_size) FROM table_name_4 WHERE iata = \"pr\" AND commenced_operations < 1941",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (year VARCHAR, location VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "In what Year was the match at Sopot with a Score of 2β6, 6β2, 6β3?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_77 WHERE location = \"sopot\" AND score = \"2β6, 6β2, 6β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_32 (authority VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the Whakamaru school's authority?",
"role": "user"
},
{
"content": "SELECT authority FROM table_name_32 WHERE name = \"whakamaru school\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (type VARCHAR, transfer_fee VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which Type has a Transfer fee of free, and a Name of kapetanos?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_63 WHERE transfer_fee = \"free\" AND name = \"kapetanos\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (high_assists VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "Who made the most assists in Game 2 of this season?",
"role": "user"
},
{
"content": "SELECT high_assists FROM table_name_4 WHERE game = 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_87 (date VARCHAR, home_captain VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What date has george giffen as the home captain, and sydney cricket ground as the venue?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_87 WHERE home_captain = \"george giffen\" AND venue = \"sydney cricket ground\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (score VARCHAR, place VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What was Laura Diaz's score for place t9?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_72 WHERE place = \"t9\" AND player = \"laura diaz\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2446333_2 (circuit VARCHAR, main_winner VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Name the circuit for france and portugal",
"role": "user"
},
{
"content": "SELECT circuit FROM table_2446333_2 WHERE main_winner = \"France\" AND 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_1341577_22 (incumbent VARCHAR, first_elected VARCHAR)",
"role": "system"
},
{
"content": "Name the incumbent for first elected 1958",
"role": "user"
},
{
"content": "SELECT incumbent FROM table_1341577_22 WHERE first_elected = 1958",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (type VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which Type has a Name of edson ratinho?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_14 WHERE name = \"edson ratinho\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Payments (booking_id VARCHAR); CREATE TABLE Bookings (booking_id VARCHAR, amount_of_refund VARCHAR)",
"role": "system"
},
{
"content": "What are the id and the amount of refund of the booking that incurred the most times of payments?",
"role": "user"
},
{
"content": "SELECT T1.booking_id, T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id = T2.booking_id GROUP BY T1.booking_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_19897294_10 (no_in_season INTEGER, no_in_series VARCHAR)",
"role": "system"
},
{
"content": "What's the season number of the episode with series number US6?",
"role": "user"
},
{
"content": "SELECT MIN(no_in_season) FROM table_19897294_10 WHERE no_in_series = \"US6\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year_of_recording INTEGER, conductor VARCHAR)",
"role": "system"
},
{
"content": "What is the year that a record was recorded with Libor Pesek as conductor?",
"role": "user"
},
{
"content": "SELECT SUM(year_of_recording) FROM table_name_14 WHERE conductor = \"libor pesek\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (time INTEGER, swimmer VARCHAR, lane VARCHAR)",
"role": "system"
},
{
"content": "Tell me the least time for apostolos tsagkarakis for lane less than 6",
"role": "user"
},
{
"content": "SELECT MIN(time) FROM table_name_63 WHERE swimmer = \"apostolos tsagkarakis\" AND lane < 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_2897457_2 (nationality VARCHAR, position VARCHAR, nhl_team VARCHAR)",
"role": "system"
},
{
"content": "What is the nationality of the draft pick player who plays centre position and is going to Calgary Flames?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_2897457_2 WHERE position = \"Centre\" AND nhl_team = \"Calgary Flames\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (frequency_mhz VARCHAR, erp_w VARCHAR, city_of_license VARCHAR)",
"role": "system"
},
{
"content": "What is the frequency MHz in tremonton, utah with a ERP W larger than 30?",
"role": "user"
},
{
"content": "SELECT frequency_mhz FROM table_name_50 WHERE erp_w > 30 AND city_of_license = \"tremonton, utah\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10295819_2 (ties_played INTEGER, years_played VARCHAR)",
"role": "system"
},
{
"content": "Name the minimum tiesplayed for 6 years",
"role": "user"
},
{
"content": "SELECT MIN(ties_played) FROM table_10295819_2 WHERE years_played = 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_64 (round VARCHAR, method VARCHAR)",
"role": "system"
},
{
"content": "What is the round where there was a KO (punch)?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_64 WHERE method = \"ko (punch)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (height INTEGER, position VARCHAR)",
"role": "system"
},
{
"content": "What is the height of the person whose position is Libero?",
"role": "user"
},
{
"content": "SELECT MAX(height) FROM table_name_15 WHERE position = \"libero\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (result VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "What was the District of California 2 result?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_93 WHERE district = \"california 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_81 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "What race did Glenn Seton win on the Sandown International Raceway circuit?",
"role": "user"
},
{
"content": "SELECT race_title FROM table_name_81 WHERE winner = \"glenn seton\" AND circuit = \"sandown international raceway\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (replaced_by VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR)",
"role": "system"
},
{
"content": "What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008?",
"role": "user"
},
{
"content": "SELECT replaced_by FROM table_name_49 WHERE manner_of_departure = \"end of contract\" AND date_of_appointment = \"dec. 16, 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_4 (record VARCHAR, home VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is Record, when Home is \"New York Rangers\", and when Date is \"April 17\"?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_4 WHERE home = \"new york rangers\" AND date = \"april 17\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (silver INTEGER, total VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "What is the highest number of Silver medals with a Total greater than 14 and more than 15 Bronze medals?",
"role": "user"
},
{
"content": "SELECT MAX(silver) FROM table_name_38 WHERE total > 14 AND bronze > 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_43 (shooter VARCHAR, event VARCHAR, rank_points VARCHAR)",
"role": "system"
},
{
"content": "What shooter has wc munich as the event, and 8 as the rank points?",
"role": "user"
},
{
"content": "SELECT shooter FROM table_name_43 WHERE event = \"wc munich\" AND rank_points = \"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_87 (home_team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What home team has june 22 as the date?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_87 WHERE date = \"june 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_10021158_3 (wins VARCHAR, money_list_rank VARCHAR)",
"role": "system"
},
{
"content": "How many wins were there when the money list rank was 183?",
"role": "user"
},
{
"content": "SELECT COUNT(wins) FROM table_10021158_3 WHERE money_list_rank = \"183\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (Lieutenant VARCHAR, left_office VARCHAR)",
"role": "system"
},
{
"content": "Who was Lieutenant Governor to the governor that left office on January 14, 1929?",
"role": "user"
},
{
"content": "SELECT Lieutenant AS governor FROM table_name_21 WHERE left_office = \"january 14, 1929\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score VARCHAR, home VARCHAR)",
"role": "system"
},
{
"content": "Home of kings had what score?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_64 WHERE home = \"kings\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12562214_1 (notes VARCHAR, date__from_ VARCHAR)",
"role": "system"
},
{
"content": "how many notes are form the date (from) 14 march 1910?",
"role": "user"
},
{
"content": "SELECT COUNT(notes) FROM table_12562214_1 WHERE date__from_ = \"14 March 1910\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14603212_1 (school_year VARCHAR, class_aAA VARCHAR, Wimberley VARCHAR, class_a VARCHAR)",
"role": "system"
},
{
"content": "If class a is canadian and class aaa is wimberley, which possible school years could this fall on? ",
"role": "user"
},
{
"content": "SELECT school_year FROM table_14603212_1 WHERE class_aAA = Wimberley AND class_a = \"Canadian\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What shows for 1992 when 1988 is A, at the Australian Open?",
"role": "user"
},
{
"content": "SELECT 1992 FROM table_name_43 WHERE 1988 = \"a\" AND tournament = \"australian open\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE staff_department_assignments (department_id VARCHAR)",
"role": "system"
},
{
"content": "What is the id of the department with the least number of staff?",
"role": "user"
},
{
"content": "SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY COUNT(*) 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_86 (lost VARCHAR, tries_for VARCHAR)",
"role": "system"
},
{
"content": "What is the value for the item \"Lost\" when the value \"Tries\" is 47?",
"role": "user"
},
{
"content": "SELECT lost FROM table_name_86 WHERE tries_for = \"47\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (results VARCHAR, institutional_authority VARCHAR)",
"role": "system"
},
{
"content": "Name the results for institutional authority of paf",
"role": "user"
},
{
"content": "SELECT results FROM table_name_73 WHERE institutional_authority = \"paf\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26736342_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)",
"role": "system"
},
{
"content": "What is the earliest episode that was watched by 1.32 million viewers?",
"role": "user"
},
{
"content": "SELECT MIN(no_in_series) FROM table_26736342_1 WHERE us_viewers__millions_ = \"1.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_name_69 (away_team VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What did the away team score in the game against Richmond?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_69 WHERE home_team = \"richmond\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (record VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "What was the record when Minnesota was the visiting team?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_68 WHERE visitor = \"minnesota\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (player VARCHAR, position VARCHAR, club_province VARCHAR)",
"role": "system"
},
{
"content": "Which player Munster from Munster is a fly-half?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_67 WHERE position = \"fly-half\" AND club_province = \"munster\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (silver VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "Who won the silver medal in the games where Hong Chia-yuh took home bronze?",
"role": "user"
},
{
"content": "SELECT silver FROM table_name_5 WHERE bronze = \"hong chia-yuh\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank INTEGER, time VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest rank has 7:09.06 as the time?",
"role": "user"
},
{
"content": "SELECT MIN(rank) FROM table_name_81 WHERE time = \"7:09.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_name_95 (rank INTEGER, lost VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "Which Rank has a Lost smaller than 12, and a Played larger than 20, and an Avg Points larger than 1.73?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_95 WHERE lost < 12 AND played > 20 AND Avg.points > 1.73",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27720737_1 (series__number VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "How many episodes had a production code 120?",
"role": "user"
},
{
"content": "SELECT COUNT(series__number) FROM table_27720737_1 WHERE production_code = 120",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341843_44 (candidates VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "Who was the candidate when the incumbent was Richard C. White?",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1341843_44 WHERE incumbent = \"Richard C. White\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (v_core VARCHAR, stepping VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "What is the v-core for a stepping of G1 and frequency of 1900MHz?",
"role": "user"
},
{
"content": "SELECT v_core FROM table_name_29 WHERE stepping = \"g1\" AND frequency = \"1900mhz\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (students INTEGER, pupil_teacher_ratio VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of students for schools with a pupil to teacher ratio of 25.1?",
"role": "user"
},
{
"content": "SELECT AVG(students) FROM table_name_25 WHERE pupil_teacher_ratio = 25.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_19401346_1 (no_in_season VARCHAR, original_air_date VARCHAR)",
"role": "system"
},
{
"content": "What's the season number of the episode originally aired on October 14, 2008?",
"role": "user"
},
{
"content": "SELECT no_in_season FROM table_19401346_1 WHERE original_air_date = \"October 14, 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_9 (score VARCHAR, comp VARCHAR)",
"role": "system"
},
{
"content": "What is the Score of the Shooter with a Comp of OG?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_9 WHERE comp = \"og\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (attendance VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance at the West Ham United home game?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_69 WHERE home_team = \"west ham united\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (floors INTEGER, built VARCHAR, roof___m__ VARCHAR)",
"role": "system"
},
{
"content": "What's the average number of floors that were built in 2004, and have a roof (m) of 106?",
"role": "user"
},
{
"content": "SELECT AVG(floors) FROM table_name_67 WHERE built = 2004 AND roof___m__ = 106",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (district VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What district is Jim Moran the incumbent for.",
"role": "user"
},
{
"content": "SELECT district FROM table_name_40 WHERE incumbent = \"jim moran\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (grid INTEGER, laps VARCHAR, time_retired VARCHAR)",
"role": "system"
},
{
"content": "Which Grid has Laps larger than 26, and a Time/Retired of 44:39.467?",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_16 WHERE laps > 26 AND time_retired = \"44:39.467\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (position VARCHAR, jersey_number_s_ VARCHAR)",
"role": "system"
},
{
"content": "Which position was played by the player wearing jersey number 40?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_23 WHERE jersey_number_s_ = 40",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (laps VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of laps that were completed in 1949?",
"role": "user"
},
{
"content": "SELECT COUNT(laps) FROM table_name_23 WHERE year = \"1949\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (points INTEGER, engine VARCHAR, chassis VARCHAR)",
"role": "system"
},
{
"content": "What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis?",
"role": "user"
},
{
"content": "SELECT MIN(points) FROM table_name_36 WHERE engine = \"mugen v8\" AND chassis = \"reynard 91d\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 INTEGER, winner VARCHAR)",
"role": "system"
},
{
"content": "In what year did Morgan Brian win?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_75 WHERE winner = \"morgan brian\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (spectators INTEGER, date VARCHAR, time_cet_ VARCHAR)",
"role": "system"
},
{
"content": "Tell me the average spectators for 2006-06-21 and time more than 21",
"role": "user"
},
{
"content": "SELECT AVG(spectators) FROM table_name_56 WHERE date = \"2006-06-21\" AND time_cet_ > 21",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (silver INTEGER, total INTEGER)",
"role": "system"
},
{
"content": "What is the sum of Silver, when Total is less than 1?",
"role": "user"
},
{
"content": "SELECT SUM(silver) FROM table_name_84 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 Parts (part_id VARCHAR, chargeable_amount VARCHAR)",
"role": "system"
},
{
"content": "Which part has the least chargeable amount? List the part id and amount.",
"role": "user"
},
{
"content": "SELECT part_id, chargeable_amount FROM Parts ORDER BY chargeable_amount 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_36 (state VARCHAR, charter_range VARCHAR)",
"role": "system"
},
{
"content": "What state had an active chapter from 1906-1991?",
"role": "user"
},
{
"content": "SELECT state FROM table_name_36 WHERE charter_range = \"1906-1991\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (house_1950 VARCHAR, governors_1950 VARCHAR)",
"role": "system"
},
{
"content": "What shows for House 1950 with a 1950 less than 1980, and Governors 1950 of governors 1970?",
"role": "user"
},
{
"content": "SELECT house_1950 FROM table_name_17 WHERE 1950 < 1980 AND governors_1950 = \"governors 1970\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (chart_positions VARCHAR, format VARCHAR)",
"role": "system"
},
{
"content": "What chart positions did the album reach when ep was the format?",
"role": "user"
},
{
"content": "SELECT chart_positions FROM table_name_1 WHERE format = \"ep\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (silver INTEGER, bronze VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "How many silver when bronze is 25 and overall is less than 67?",
"role": "user"
},
{
"content": "SELECT SUM(silver) FROM table_name_97 WHERE bronze = 25 AND overall < 67",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (points_against INTEGER, team VARCHAR, tries_against VARCHAR)",
"role": "system"
},
{
"content": "How many Points against that have a Team of harlequins and Tries against smaller than 8?",
"role": "user"
},
{
"content": "SELECT SUM(points_against) FROM table_name_37 WHERE team = \"harlequins\" AND tries_against < 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_90 (school VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "what is the school for Ivey armstrong?",
"role": "user"
},
{
"content": "SELECT school FROM table_name_90 WHERE name = \"ivey armstrong\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (centennial VARCHAR, altadeΓ±a VARCHAR)",
"role": "system"
},
{
"content": "Which Centennial has a AltadeΓ±a of panthers?",
"role": "user"
},
{
"content": "SELECT centennial FROM table_name_4 WHERE altadeΓ±a = \"panthers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24136814_3 (record VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the record for the Argonauts on September 7?",
"role": "user"
},
{
"content": "SELECT record FROM table_24136814_3 WHERE date = \"September 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_31 (notes VARCHAR, rank VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What shows for notes when rank is more than 4, and country is South Korea?",
"role": "user"
},
{
"content": "SELECT notes FROM table_name_31 WHERE rank > 4 AND country = \"south korea\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20996923_25 (nfl_team VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "What NFL team was the player with pick number 28 drafted to?",
"role": "user"
},
{
"content": "SELECT nfl_team FROM table_20996923_25 WHERE pick__number = 28",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (report VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Tell me the report for 10 april",
"role": "user"
},
{
"content": "SELECT report FROM table_name_64 WHERE date = \"10 april\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (function__percentage VARCHAR, estimated_function__percentage VARCHAR)",
"role": "system"
},
{
"content": "What is the function percentage when the estimated function percentage is 20?",
"role": "user"
},
{
"content": "SELECT function__percentage FROM table_name_30 WHERE estimated_function__percentage = 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_30 (gp_winner VARCHAR, place VARCHAR, race_winners VARCHAR)",
"role": "system"
},
{
"content": "What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den bogaart?",
"role": "user"
},
{
"content": "SELECT gp_winner FROM table_name_30 WHERE place = \"genk\" AND race_winners = \"ben adriaenssen / ben van den bogaart\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14098_1 (country_or_territory_with_flag VARCHAR, capital VARCHAR)",
"role": "system"
},
{
"content": "What country'c capital is santiago?",
"role": "user"
},
{
"content": "SELECT country_or_territory_with_flag FROM table_14098_1 WHERE capital = \"Santiago\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (total INTEGER, position VARCHAR, a_score VARCHAR)",
"role": "system"
},
{
"content": "What's the total when the position was more than 6 and had an A Score of less than 7.6?",
"role": "user"
},
{
"content": "SELECT MAX(total) FROM table_name_83 WHERE position > 6 AND a_score < 7.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_11658094_1 (location VARCHAR, institution VARCHAR)",
"role": "system"
},
{
"content": "What is the location of the institution barton college",
"role": "user"
},
{
"content": "SELECT location FROM table_11658094_1 WHERE institution = \"Barton 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_97 (year INTEGER, event VARCHAR)",
"role": "system"
},
{
"content": "what year was the memphis event?",
"role": "user"
},
{
"content": "SELECT SUM(year) FROM table_name_97 WHERE event = \"memphis\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opponent VARCHAR, method VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent when there was a TKO method?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_32 WHERE method = \"tko\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank INTEGER, country VARCHAR)",
"role": "system"
},
{
"content": "What is the highest rank for the team of egypt?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_58 WHERE country = \"egypt\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21977627_1 (entrant VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "How many entrants was yves giraud-cabantous?",
"role": "user"
},
{
"content": "SELECT COUNT(entrant) FROM table_21977627_1 WHERE driver = \"Yves Giraud-Cabantous\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Addresses (address_id VARCHAR, zip_postcode VARCHAR); CREATE TABLE Teachers (email_address VARCHAR, address_id VARCHAR)",
"role": "system"
},
{
"content": "What are the email addresses of teachers whose address has zip code \"918\"?",
"role": "user"
},
{
"content": "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = \"918\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (outcome VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Outcome has a Score of 6β4, 6β4, 6β2?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_19 WHERE score = \"6β4, 6β4, 6β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_1341672_10 (district VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "what is the district where the incumbent is richard kelly?",
"role": "user"
},
{
"content": "SELECT district FROM table_1341672_10 WHERE incumbent = \"Richard Kelly\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (first_downs INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What is the average First Downs for december 4?",
"role": "user"
},
{
"content": "SELECT AVG(first_downs) FROM table_name_82 WHERE date = \"december 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_18 (round INTEGER, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the average round against opponent Klas Akesson?",
"role": "user"
},
{
"content": "SELECT AVG(round) FROM table_name_18 WHERE opponent = \"klas akesson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE playlists (name VARCHAR)",
"role": "system"
},
{
"content": "List the name of all playlist.",
"role": "user"
},
{
"content": "SELECT name FROM playlists",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (football VARCHAR, soccer VARCHAR, golf VARCHAR)",
"role": "system"
},
{
"content": "Which foot ball team played soccer at wooster, and Gold in Ashland?",
"role": "user"
},
{
"content": "SELECT football FROM table_name_2 WHERE soccer = \"wooster\" AND golf = \"ashland\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (week INTEGER, date VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of the weeks that games occured on october 21, 1974 and less than 50,623 fans attended?",
"role": "user"
},
{
"content": "SELECT SUM(week) FROM table_name_20 WHERE date = \"october 21, 1974\" AND attendance < 50 OFFSET 623",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (weight INTEGER, home_town VARCHAR)",
"role": "system"
},
{
"content": "What is the total combined weight of players from minnetonka, mn?",
"role": "user"
},
{
"content": "SELECT SUM(weight) FROM table_name_22 WHERE home_town = \"minnetonka, mn\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11695215_1 (written_by VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "How many episodes did David Jackson write and direct?",
"role": "user"
},
{
"content": "SELECT COUNT(written_by) FROM table_11695215_1 WHERE directed_by = \"David Jackson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (silver INTEGER, total VARCHAR)",
"role": "system"
},
{
"content": "How many silvers are there with a total of 11?",
"role": "user"
},
{
"content": "SELECT SUM(silver) FROM table_name_83 WHERE total = 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_name_16 (class VARCHAR, year_made VARCHAR)",
"role": "system"
},
{
"content": "What is the Class of 1899β1900?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_16 WHERE year_made = \"1899β1900\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Flight (aid VARCHAR)",
"role": "system"
},
{
"content": "Show aircraft names and number of flights for each aircraft.",
"role": "user"
},
{
"content": "SELECT T2.name, COUNT(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, uci_rating VARCHAR, race_name VARCHAR)",
"role": "system"
},
{
"content": "What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_22 WHERE uci_rating = \"1.1\" AND race_name = \"omloop van de vlaamse scheldeboorden\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (year INTEGER, engine VARCHAR, entrant VARCHAR)",
"role": "system"
},
{
"content": "What is the average Year when there was a cosworth straight-4 engine, and the Entrant was ron harris / team lotus?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_17 WHERE engine = \"cosworth straight-4\" AND entrant = \"ron harris / team lotus\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.