text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the group a winner for modena? ### Context: CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_b_winner VARCHAR) [/INST] ### Response: SELECT group_a_winner FROM table_1137142_1 WHERE group_b_winner = "Modena" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the group a winner for vis pesaro? ### Context: CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_c_winner VARCHAR) [/INST] ### Response: SELECT group_a_winner FROM table_1137142_1 WHERE group_c_winner = "Vis Pesaro" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What group a winner was for nocerina? ### Context: CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_d_winner VARCHAR) [/INST] ### Response: SELECT group_a_winner FROM table_1137142_1 WHERE group_d_winner = "Nocerina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the group d winner for modena? ### Context: CREATE TABLE table_1137142_1 (group_d_winner VARCHAR, group_b_winner VARCHAR) [/INST] ### Response: SELECT group_d_winner FROM table_1137142_1 WHERE group_b_winner = "Modena" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who had the fastest lap at the brazilian grand prix? ### Context: CREATE TABLE table_1137695_3 (fastest_lap VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_1137695_3 WHERE grand_prix = "Brazilian grand_prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was on the pole position at the monaco grand prix? ### Context: CREATE TABLE table_1137695_3 (pole_position VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_1137695_3 WHERE grand_prix = "Monaco grand_prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winning driver when Michael Schumacher had the pole and the fastest lap? ### Context: CREATE TABLE table_1137695_3 (winning_driver VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_1137695_3 WHERE fastest_lap = "Michael Schumacher" AND pole_position = "Michael Schumacher" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what are all the location where date is 5 april ### Context: CREATE TABLE table_1137704_2 (location VARCHAR, date VARCHAR) [/INST] ### Response: SELECT location FROM table_1137704_2 WHERE date = "5 April" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what are all the pole position where date is 26 july ### Context: CREATE TABLE table_1137704_2 (pole_position VARCHAR, date VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_1137704_2 WHERE date = "26 July" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos ### Context: CREATE TABLE table_1137704_2 (winning_constructor VARCHAR, fastest_lap VARCHAR, location VARCHAR) [/INST] ### Response: SELECT winning_constructor FROM table_1137704_2 WHERE fastest_lap = "Riccardo Patrese" AND location = "Interlagos" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what are all the report where winning constructor is williams - renault and grand prix is south african grand prix ### Context: CREATE TABLE table_1137704_2 (report VARCHAR, winning_constructor VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT report FROM table_1137704_2 WHERE winning_constructor = "Williams - Renault" AND grand_prix = "South African grand_prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: whatthe minimum round where grand prix is german grand prix ### Context: CREATE TABLE table_1137704_2 (round INTEGER, grand_prix VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_1137704_2 WHERE grand_prix = "German grand_prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what of the total number of date where grand prix is portuguese grand prix ### Context: CREATE TABLE table_1137704_2 (date VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT COUNT(date) FROM table_1137704_2 WHERE grand_prix = "Portuguese grand_prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of pole position with a round of 15? ### Context: CREATE TABLE table_1137707_2 (pole_position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(pole_position) FROM table_1137707_2 WHERE round = 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the circuit gilles villeneuve? ### Context: CREATE TABLE table_1137707_2 (date VARCHAR, location VARCHAR) [/INST] ### Response: SELECT date FROM table_1137707_2 WHERE location = "Circuit Gilles Villeneuve" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the location of thierry boutsen? ### Context: CREATE TABLE table_1137707_2 (location VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT location FROM table_1137707_2 WHERE fastest_lap = "Thierry Boutsen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who had the pole position at the German Grand Prix? ### Context: CREATE TABLE table_1137718_2 (pole_position VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_1137718_2 WHERE grand_prix = "German grand_prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which rd. occurred on 22 October? ### Context: CREATE TABLE table_1137718_2 (rd INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(rd) FROM table_1137718_2 WHERE date = "22 October" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winning driver on 13 August? ### Context: CREATE TABLE table_1137718_2 (winning_driver VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_1137718_2 WHERE date = "13 August" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the fastest lap at the Mexican Grand Prix? ### Context: CREATE TABLE table_1137718_2 (fastest_lap VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_1137718_2 WHERE grand_prix = "Mexican grand_prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which rd. took place at Hockenheimring? ### Context: CREATE TABLE table_1137718_2 (rd INTEGER, location VARCHAR) [/INST] ### Response: SELECT MIN(rd) FROM table_1137718_2 WHERE location = "Hockenheimring" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many drivers had the fastest lap at Silverstone? ### Context: CREATE TABLE table_1137718_2 (fastest_lap VARCHAR, location VARCHAR) [/INST] ### Response: SELECT COUNT(fastest_lap) FROM table_1137718_2 WHERE location = "Silverstone" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the percentage of Android use when Windows is 1.15%? ### Context: CREATE TABLE table_11381701_3 (android VARCHAR, windows VARCHAR) [/INST] ### Response: SELECT android FROM table_11381701_3 WHERE windows = "1.15%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On which dates was the value of Bada 0.05%? ### Context: CREATE TABLE table_11381701_3 (date VARCHAR, bada VARCHAR) [/INST] ### Response: SELECT date FROM table_11381701_3 WHERE bada = "0.05%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the value of "other" is 0.7%, what is the percentage for Windows? ### Context: CREATE TABLE table_11381701_3 (windows VARCHAR, other VARCHAR) [/INST] ### Response: SELECT windows FROM table_11381701_3 WHERE other = "0.7%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When Symbian/Series 40 is 0.40%, what is the percentage of "other"? ### Context: CREATE TABLE table_11381701_3 (other VARCHAR, symbian___series_40 VARCHAR) [/INST] ### Response: SELECT other FROM table_11381701_3 WHERE symbian___series_40 = "0.40%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which source shows Blackberry at 2.9%? ### Context: CREATE TABLE table_11381701_3 (source VARCHAR, blackberry VARCHAR) [/INST] ### Response: SELECT source FROM table_11381701_3 WHERE blackberry = "2.9%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which colleges have the english abbreviation MTC? ### Context: CREATE TABLE table_11390711_4 (english_name VARCHAR, abbreviation VARCHAR) [/INST] ### Response: SELECT english_name FROM table_11390711_4 WHERE abbreviation = "MTC" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Japanese orthography for the English name National Farmers Academy? ### Context: CREATE TABLE table_11390711_4 (japanese_orthography VARCHAR, english_name VARCHAR) [/INST] ### Response: SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = "National Farmers Academy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the abbreviation for the college pronounced "kōkū daigakkō"? ### Context: CREATE TABLE table_11390711_4 (abbreviation VARCHAR, pronouciation VARCHAR) [/INST] ### Response: SELECT abbreviation FROM table_11390711_4 WHERE pronouciation = "Kōkū Daigakkō" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many providers were founded in 1964? ### Context: CREATE TABLE table_11390711_4 (provider_iai_ VARCHAR, foundation VARCHAR) [/INST] ### Response: SELECT COUNT(provider_iai_) FROM table_11390711_4 WHERE foundation = 1964 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Japanese orthography for National Fisheries University? ### Context: CREATE TABLE table_11390711_4 (japanese_orthography VARCHAR, english_name VARCHAR) [/INST] ### Response: SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = "National Fisheries University" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the minimum number for the half marathon (womens)? ### Context: CREATE TABLE table_11391954_3 (Half INTEGER) [/INST] ### Response: SELECT MIN(Half) AS marathon__womens_ FROM table_11391954_3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Whatis the total number of half marathon (mens) that represented kazakhstan? ### Context: CREATE TABLE table_11391954_3 (Half VARCHAR, country VARCHAR) [/INST] ### Response: SELECT COUNT(Half) AS marathon__mens_ FROM table_11391954_3 WHERE country = "Kazakhstan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many times is Moldova the winner of half marathon (womens)? ### Context: CREATE TABLE table_11391954_3 (Half VARCHAR, country VARCHAR) [/INST] ### Response: SELECT COUNT(Half) AS marathon__womens_ FROM table_11391954_3 WHERE country = "Moldova" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the make of the car that won the brazilian grand prix? ### Context: CREATE TABLE table_1139087_2 (constructor VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT constructor FROM table_1139087_2 WHERE grand_prix = "Brazilian grand_prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who drove the fastest lap for round 8? ### Context: CREATE TABLE table_1139087_2 (fastest_lap VARCHAR, rd VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_1139087_2 WHERE rd = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day was the grand prix in jerez? ### Context: CREATE TABLE table_1139087_2 (date VARCHAR, location VARCHAR) [/INST] ### Response: SELECT date FROM table_1139087_2 WHERE location = "Jerez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What event was in detroit? ### Context: CREATE TABLE table_1139087_2 (grand_prix VARCHAR, location VARCHAR) [/INST] ### Response: SELECT grand_prix FROM table_1139087_2 WHERE location = "Detroit" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many events did nigel mansell drive the fastest and a mclaren - honda win? ### Context: CREATE TABLE table_1139087_2 (grand_prix VARCHAR, constructor VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT COUNT(grand_prix) FROM table_1139087_2 WHERE constructor = "McLaren - Honda" AND fastest_lap = "Nigel Mansell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day is the french grand prix ### Context: CREATE TABLE table_1139087_2 (date VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT date FROM table_1139087_2 WHERE grand_prix = "French grand_prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the winners where season result is 7th ### Context: CREATE TABLE table_1139835_3 (winners VARCHAR, season_result VARCHAR) [/INST] ### Response: SELECT winners FROM table_1139835_3 WHERE season_result = "7th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the winners where season result is 9th ### Context: CREATE TABLE table_1139835_3 (winners VARCHAR, season_result VARCHAR) [/INST] ### Response: SELECT winners FROM table_1139835_3 WHERE season_result = "9th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the grand finalist where winners is collingwood ### Context: CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, winners VARCHAR) [/INST] ### Response: SELECT grand_finalist FROM table_1139835_3 WHERE winners = "Collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the season result where margin is 51 ### Context: CREATE TABLE table_1139835_3 (season_result VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT season_result FROM table_1139835_3 WHERE margin = 51 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the grand finalist where scores is 11.11 (77) – 10.8 (68) ### Context: CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, scores VARCHAR) [/INST] ### Response: SELECT grand_finalist FROM table_1139835_3 WHERE scores = "11.11 (77) – 10.8 (68)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the grand finalist where scores is 8.9 (57) – 7.12 (54) ### Context: CREATE TABLE table_1139835_3 (grand_finalist VARCHAR, scores VARCHAR) [/INST] ### Response: SELECT grand_finalist FROM table_1139835_3 WHERE scores = "8.9 (57) – 7.12 (54)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what was the crowd when the scores are 10.12 (72) – 8.11 (59)? ### Context: CREATE TABLE table_1139835_1 (crowd INTEGER, scores VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_1139835_1 WHERE scores = "10.12 (72) – 8.11 (59)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the venue where the scores are 15.13 (103) – 8.4 (52)? ### Context: CREATE TABLE table_1139835_1 (venue VARCHAR, scores VARCHAR) [/INST] ### Response: SELECT venue FROM table_1139835_1 WHERE scores = "15.13 (103) – 8.4 (52)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the venue where the margin is 4? ### Context: CREATE TABLE table_1139835_1 (venue VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT venue FROM table_1139835_1 WHERE margin = 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the crowd when the grand finalist was south melbourne? ### Context: CREATE TABLE table_1139835_1 (crowd VARCHAR, grand_finalist VARCHAR) [/INST] ### Response: SELECT crowd FROM table_1139835_1 WHERE grand_finalist = "South Melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date for monaco grand prix? ### Context: CREATE TABLE table_1140067_2 (date VARCHAR, race VARCHAR) [/INST] ### Response: SELECT date FROM table_1140067_2 WHERE race = "Monaco Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date for the pole position of alain prost? ### Context: CREATE TABLE table_1140067_2 (date VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT date FROM table_1140067_2 WHERE pole_position = "Alain Prost" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the race winer of the portuguese grand prix? ### Context: CREATE TABLE table_1140067_2 (race VARCHAR) [/INST] ### Response: SELECT race AS Winner FROM table_1140067_2 WHERE race = "Portuguese Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the race winner with date being 12 june ### Context: CREATE TABLE table_1140074_2 (race VARCHAR, date VARCHAR) [/INST] ### Response: SELECT race AS Winner FROM table_1140074_2 WHERE date = "12 June" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the constructor with location being hockenheimring ### Context: CREATE TABLE table_1140074_2 (constructor VARCHAR, location VARCHAR) [/INST] ### Response: SELECT constructor FROM table_1140074_2 WHERE location = "Hockenheimring" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the race winner with location being jacarepaguá ### Context: CREATE TABLE table_1140074_2 (race VARCHAR, location VARCHAR) [/INST] ### Response: SELECT race AS Winner FROM table_1140074_2 WHERE location = "Jacarepaguá" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the total number of race winner with rnd being 10 ### Context: CREATE TABLE table_1140074_2 (race VARCHAR, rnd VARCHAR) [/INST] ### Response: SELECT COUNT(race) AS Winner FROM table_1140074_2 WHERE rnd = 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the pole position with location being hockenheimring ### Context: CREATE TABLE table_1140074_2 (pole_position VARCHAR, location VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_1140074_2 WHERE location = "Hockenheimring" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the report with rnd being 4 ### Context: CREATE TABLE table_1140074_2 (report VARCHAR, rnd VARCHAR) [/INST] ### Response: SELECT report FROM table_1140074_2 WHERE rnd = 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What venue has an attendance of 30824 at Essendon in 1984? ### Context: CREATE TABLE table_1139835_9 (venue VARCHAR, premier VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT venue FROM table_1139835_9 WHERE premier = "Essendon" AND attendance = 30824 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What other venue was a runner up to Hawthorn? ### Context: CREATE TABLE table_1139835_9 (venue VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT venue FROM table_1139835_9 WHERE runner_up = "Hawthorn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the other premiership when the runner up wis Geelong? ### Context: CREATE TABLE table_1139835_9 (premiership VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT premiership FROM table_1139835_9 WHERE runner_up = "Geelong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who are all the runner ups when the score is 9.12 (66) – 5.6 (36)? ### Context: CREATE TABLE table_1139835_9 (runner_up VARCHAR, score VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_1139835_9 WHERE score = "9.12 (66) – 5.6 (36)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who had the fastest lap in the race where Patrick Tambay was on the pole? ### Context: CREATE TABLE table_1140073_2 (fastest_lap VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_1140073_2 WHERE pole_position = "Patrick Tambay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What race had Nelson Piquet on the pole and was in Nürburgring? ### Context: CREATE TABLE table_1140073_2 (race VARCHAR, pole_position VARCHAR, location VARCHAR) [/INST] ### Response: SELECT race FROM table_1140073_2 WHERE pole_position = "Nelson Piquet" AND location = "Nürburgring" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many rounds did Patrick Tambay record the fastest lap? ### Context: CREATE TABLE table_1140073_2 (rnd VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT COUNT(rnd) FROM table_1140073_2 WHERE fastest_lap = "Patrick Tambay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which race is located in kyalami? ### Context: CREATE TABLE table_1140073_2 (race VARCHAR, location VARCHAR) [/INST] ### Response: SELECT race FROM table_1140073_2 WHERE location = "Kyalami" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the fastest lap with pole position of gilles villeneuve? ### Context: CREATE TABLE table_1140077_2 (fastest_lap VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_1140077_2 WHERE pole_position = "Gilles Villeneuve" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who did the fastest lap in the dutch grand prix? ### Context: CREATE TABLE table_1140077_2 (fastest_lap VARCHAR, race VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_1140077_2 WHERE race = "Dutch Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the constructor for 9 May? ### Context: CREATE TABLE table_1140076_2 (constructor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT constructor FROM table_1140076_2 WHERE date = "9 May" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the pole position for the race with the fastest lap by Nelson Piquet and the constructor is Ferrari? ### Context: CREATE TABLE table_1140076_2 (pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_1140076_2 WHERE fastest_lap = "Nelson Piquet" AND constructor = "Ferrari" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the report listed for the race in San Marino Grand Prix? ### Context: CREATE TABLE table_1140076_2 (report VARCHAR, race VARCHAR) [/INST] ### Response: SELECT report FROM table_1140076_2 WHERE race = "San Marino Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the constructor in the location Monza? ### Context: CREATE TABLE table_1140076_2 (constructor VARCHAR, location VARCHAR) [/INST] ### Response: SELECT constructor FROM table_1140076_2 WHERE location = "Monza" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the report with location  österreichring ### Context: CREATE TABLE table_1140080_2 (report VARCHAR, location VARCHAR) [/INST] ### Response: SELECT report FROM table_1140080_2 WHERE location = "Österreichring" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the report with race argentine grand prix ### Context: CREATE TABLE table_1140080_2 (report VARCHAR, race VARCHAR) [/INST] ### Response: SELECT report FROM table_1140080_2 WHERE race = "Argentine Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the minimum rnd with race  italian grand prix ### Context: CREATE TABLE table_1140080_2 (rnd INTEGER, race VARCHAR) [/INST] ### Response: SELECT MIN(rnd) FROM table_1140080_2 WHERE race = "Italian Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the total number of report with date  29 april ### Context: CREATE TABLE table_1140080_2 (report VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(report) FROM table_1140080_2 WHERE date = "29 April" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the race winner with constructor  renault ### Context: CREATE TABLE table_1140080_2 (race VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT race AS Winner FROM table_1140080_2 WHERE constructor = "Renault" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the date with rnd  1 ### Context: CREATE TABLE table_1140080_2 (date VARCHAR, rnd VARCHAR) [/INST] ### Response: SELECT date FROM table_1140080_2 WHERE rnd = 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many days is the Monaco Grand Prix? ### Context: CREATE TABLE table_1140083_2 (date VARCHAR, race VARCHAR) [/INST] ### Response: SELECT COUNT(date) FROM table_1140083_2 WHERE race = "Monaco Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many rounds were won with James Hunt as pole position and John Watson as fastest lap? ### Context: CREATE TABLE table_1140083_2 (rnd VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT COUNT(rnd) FROM table_1140083_2 WHERE pole_position = "James Hunt" AND fastest_lap = "John Watson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The Dijon-prenois had how many fastest laps? ### Context: CREATE TABLE table_1140083_2 (fastest_lap VARCHAR, location VARCHAR) [/INST] ### Response: SELECT COUNT(fastest_lap) FROM table_1140083_2 WHERE location = "Dijon-Prenois" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the constructor for round 15? ### Context: CREATE TABLE table_1140083_2 (constructor VARCHAR, rnd VARCHAR) [/INST] ### Response: SELECT constructor FROM table_1140083_2 WHERE rnd = 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who won the Brands Hatch circuit? ### Context: CREATE TABLE table_1140088_6 (winning_driver VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_1140088_6 WHERE circuit = "Brands Hatch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who constructed the I Italian Republic Grand Prix? ### Context: CREATE TABLE table_1140088_6 (constructor VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT constructor FROM table_1140088_6 WHERE race_name = "I Italian Republic Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What race was held at Oulton Park? ### Context: CREATE TABLE table_1140088_6 (race_name VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT race_name FROM table_1140088_6 WHERE circuit = "Oulton Park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Did the I Brazilian Grand Prix have a report? ### Context: CREATE TABLE table_1140088_6 (report VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT report FROM table_1140088_6 WHERE race_name = "I Brazilian Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the race where the pole position is niki lauda and the date is 27 april? ### Context: CREATE TABLE table_1140085_2 (race VARCHAR, pole_position VARCHAR, date VARCHAR) [/INST] ### Response: SELECT race FROM table_1140085_2 WHERE pole_position = "Niki Lauda" AND date = "27 April" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the date where the constructor is ferrari and the location is anderstorp? ### Context: CREATE TABLE table_1140085_2 (date VARCHAR, constructor VARCHAR, location VARCHAR) [/INST] ### Response: SELECT date FROM table_1140085_2 WHERE constructor = "Ferrari" AND location = "Anderstorp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many times is the pole position niki lauda and the race is monaco grand prix? ### Context: CREATE TABLE table_1140085_2 (rnd VARCHAR, pole_position VARCHAR, race VARCHAR) [/INST] ### Response: SELECT COUNT(rnd) FROM table_1140085_2 WHERE pole_position = "Niki Lauda" AND race = "Monaco Grand Prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the report where the location is kyalami? ### Context: CREATE TABLE table_1140085_2 (report VARCHAR, location VARCHAR) [/INST] ### Response: SELECT report FROM table_1140085_2 WHERE location = "Kyalami" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the pole position for the rnd 3 ### Context: CREATE TABLE table_1140085_2 (pole_position VARCHAR, rnd VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_1140085_2 WHERE rnd = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the race where the fastest lap is by jean-pierre jarier? ### Context: CREATE TABLE table_1140085_2 (race VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT race FROM table_1140085_2 WHERE fastest_lap = "Jean-Pierre Jarier" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What circuit did Clay Regazzoni win? ### Context: CREATE TABLE table_1140090_6 (circuit VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT circuit FROM table_1140090_6 WHERE winning_driver = "Clay Regazzoni" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date when Chris Amon won? ### Context: CREATE TABLE table_1140090_6 (date VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT date FROM table_1140090_6 WHERE winning_driver = "Chris Amon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What circuit is the Vi Rhein-Pokalrennen race in? ### Context: CREATE TABLE table_1140090_6 (circuit VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT circuit FROM table_1140090_6 WHERE race_name = "VI Rhein-Pokalrennen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date is listed at place 13 ### Context: CREATE TABLE table_1140103_6 (date VARCHAR, _number VARCHAR) [/INST] ### Response: SELECT date FROM table_1140103_6 WHERE _number = 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date has a solitudering circuit ### Context: CREATE TABLE table_1140103_6 (date VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_1140103_6 WHERE circuit = "Solitudering" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many dates have silverstone circuit ### Context: CREATE TABLE table_1140103_6 (date VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT COUNT(date) FROM table_1140103_6 WHERE circuit = "Silverstone" </s>