inputs
stringlengths
400
1.34k
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the district who had their first elected in 1966? ### Context: CREATE TABLE table_1341843_44 (district VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT district FROM table_1341843_44 WHERE first_elected = 1966</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which game was played at the Forum and led to a series result of 0-1? ### Context: CREATE TABLE table_name_85 (game VARCHAR, location_attendance VARCHAR, series VARCHAR) ### Response: ### Response: SELECT game FROM table_name_85 WHERE location_attendance = "the forum" AND series = "0-1"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Who is the away team for tie no 11? ### Context: CREATE TABLE table_24887326_6 (away_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT away_team FROM table_24887326_6 WHERE tie_no = 11</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: How many different scientists are assigned to any project? ### Context: CREATE TABLE assignedto (scientist VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT scientist) FROM assignedto</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: When the elevator was Innocent IV what was the nationality? ### Context: CREATE TABLE table_name_98 (nationality VARCHAR, elevator VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_98 WHERE elevator = "innocent iv"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What party is Peter Fisher from Vic serve in office? ### Context: CREATE TABLE table_name_65 (party VARCHAR, state VARCHAR, member VARCHAR) ### Response: ### Response: SELECT party FROM table_name_65 WHERE state = "vic" AND member = "peter fisher"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: How many strokes under par was the player who scored 71? ### Context: CREATE TABLE table_name_43 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_43 WHERE score = 71</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: How many flaps are there for the team march 3 racing (1-4) top speed racing team (5-12)? ### Context: CREATE TABLE table_25740774_1 (f_laps VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(f_laps) FROM table_25740774_1 WHERE team = "March 3 Racing (1-4) Top Speed Racing team (5-12)"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What's the college of the player with a height of 6-4 and went to lake howell high school? ### Context: CREATE TABLE table_name_68 (college VARCHAR, height VARCHAR, school VARCHAR) ### Response: ### Response: SELECT college FROM table_name_68 WHERE height = "6-4" AND school = "lake howell high school"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the featured in Engine through rounds 10-13? ### Context: CREATE TABLE table_name_85 (engine VARCHAR, rounds VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_85 WHERE rounds = "10-13"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Who was the incoming manager for the date of appointment of 15 january 2011? ### Context: CREATE TABLE table_26976615_3 (incoming_manager VARCHAR, date_of_appointment VARCHAR) ### Response: ### Response: SELECT incoming_manager FROM table_26976615_3 WHERE date_of_appointment = "15 January 2011"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the English version of Mariusz Szczygieł book? ### Context: CREATE TABLE table_14631909_1 (english_title VARCHAR, author VARCHAR) ### Response: ### Response: SELECT english_title FROM table_14631909_1 WHERE author = "Mariusz Szczygieł"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: How many gold values have totals over 30, bronzes over 35, and are in Swimming? ### Context: CREATE TABLE table_name_75 (gold VARCHAR, bronze VARCHAR, total VARCHAR, sport VARCHAR) ### Response: ### Response: SELECT COUNT(gold) FROM table_name_75 WHERE total > 30 AND sport = "swimming" AND bronze > 35</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is Australia´s finish? ### Context: CREATE TABLE table_name_79 (finish VARCHAR, country VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_79 WHERE country = "australia"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which tournament had 2r in 2010? ### Context: CREATE TABLE table_name_60 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_60 WHERE 2010 = "2r"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Who is the coach of the team with home ground at Club Cove? ### Context: CREATE TABLE table_name_25 (coach VARCHAR, home_ground VARCHAR) ### Response: ### Response: SELECT coach FROM table_name_25 WHERE home_ground = "club cove"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: what is the previous conference when the year joined is 1932 and the mascot is tigers? ### Context: CREATE TABLE table_name_46 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR) ### Response: ### Response: SELECT previous_conference FROM table_name_46 WHERE year_joined = "1932" AND mascot = "tigers"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: how many new points does the player roberta vinci have? ### Context: CREATE TABLE table_29572583_20 (new_points INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(new_points) FROM table_29572583_20 WHERE player = "Roberta Vinci"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradition? ### Context: CREATE TABLE table_name_14 (the_tradition VARCHAR, year VARCHAR, senior_players_championship VARCHAR) ### Response: ### Response: SELECT the_tradition FROM table_name_14 WHERE year > 1998 AND senior_players_championship = "mark o'meara"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What position was played at the World Athletics Final Competition in a year more recent than 2008? ### Context: CREATE TABLE table_name_62 (position VARCHAR, competition VARCHAR, year VARCHAR) ### Response: ### Response: SELECT position FROM table_name_62 WHERE competition = "world athletics final" AND year > 2008</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Name the real life years of operation for amtrak ### Context: CREATE TABLE table_243664_1 (real_life_years_of_operation VARCHAR, currently¹_part_of VARCHAR) ### Response: ### Response: SELECT real_life_years_of_operation FROM table_243664_1 WHERE currently¹_part_of = "Amtrak"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Name the world rank for market value 17.2 ### Context: CREATE TABLE table_19112_3 (world_rank VARCHAR, market_value__billion_$_ VARCHAR) ### Response: ### Response: SELECT world_rank FROM table_19112_3 WHERE market_value__billion_$_ = "17.2"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: In What Tournament did Boris Becker have a Score of 7–6, 6–4? ### Context: CREATE TABLE table_name_84 (name_of_tournament VARCHAR, champions VARCHAR, score VARCHAR) ### Response: ### Response: SELECT name_of_tournament FROM table_name_84 WHERE champions = "boris becker" AND score = "7–6, 6–4"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: I want the standing for january 29 and finished of 3rd and total points less than 248 ### Context: CREATE TABLE table_name_59 (standing VARCHAR, date VARCHAR, total_points VARCHAR, finished VARCHAR) ### Response: ### Response: SELECT standing FROM table_name_59 WHERE total_points < 248 AND finished = "3rd" AND date = "january 29"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the Australian National Kennel Council Toy Dogs Group with papillon as the Kennel Club breed? ### Context: CREATE TABLE table_name_98 (australian_national_kennel_council_toy_dogs_group VARCHAR, the_kennel_club__uk__toy_group VARCHAR) ### Response: ### Response: SELECT australian_national_kennel_council_toy_dogs_group FROM table_name_98 WHERE the_kennel_club__uk__toy_group = "papillon"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What's the report about townsville crocodiles as an away team? ### Context: CREATE TABLE table_name_35 (report VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT report FROM table_name_35 WHERE away_team = "townsville crocodiles"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Name the date for attendance more than 20,268 ### Context: CREATE TABLE table_name_47 (date VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT date FROM table_name_47 WHERE attendance > 20 OFFSET 268</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is every rider on Tuesday August 25 at 20' 32.11 110.241mph? ### Context: CREATE TABLE table_23465864_5 (rider VARCHAR, tues_25_aug VARCHAR) ### Response: ### Response: SELECT rider FROM table_23465864_5 WHERE tues_25_aug = "20' 32.11 110.241mph"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which rank is Hawthorn? ### Context: CREATE TABLE table_name_32 (rank VARCHAR, club_clubs VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_32 WHERE club_clubs = "hawthorn"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which date has a Week larger than 5, and an Attendance of 54,803? ### Context: CREATE TABLE table_name_6 (date VARCHAR, week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_6 WHERE week > 5 AND attendance = "54,803"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the lowest FA cup with 1 league cup, less than 12 total and 1 premier league? ### Context: CREATE TABLE table_name_17 (fa_cup INTEGER, premier_league VARCHAR, league_cup VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(fa_cup) FROM table_name_17 WHERE league_cup = 1 AND total < 12 AND premier_league = 1</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Who was Melbourne's away team opponent? ### Context: CREATE TABLE table_name_48 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_48 WHERE home_team = "melbourne"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Name the country with year more than 2008 ### Context: CREATE TABLE table_name_95 (country VARCHAR, year INTEGER) ### Response: ### Response: SELECT country FROM table_name_95 WHERE year > 2008</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: How many regional seats were there with the SNP party and where the number of total seats was bigger than 46? ### Context: CREATE TABLE table_name_77 (regional_seats VARCHAR, party VARCHAR, total_seats VARCHAR) ### Response: ### Response: SELECT COUNT(regional_seats) FROM table_name_77 WHERE party = "snp" AND total_seats > 46</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: what is the country with the album best of and weeks on chart is less than 5? ### Context: CREATE TABLE table_name_53 (country VARCHAR, album VARCHAR, weeks_on_chart VARCHAR) ### Response: ### Response: SELECT country FROM table_name_53 WHERE album = "best of" AND weeks_on_chart < 5</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the rating for Brisbane the week that Adelaide had 94000? ### Context: CREATE TABLE table_24291077_8 (brisbane INTEGER, adelaide VARCHAR) ### Response: ### Response: SELECT MIN(brisbane) FROM table_24291077_8 WHERE adelaide = 94000</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the name of the most expensive product? ### Context: CREATE TABLE PRODUCTS (Product_Name VARCHAR, Product_Price VARCHAR) ### Response: ### Response: SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the tie number when bradford park avenue was the away team? ### Context: CREATE TABLE table_name_96 (tie_no VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_96 WHERE away_team = "bradford park avenue"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which league has a pick number larger than 204 from Canada and LW as the position? ### Context: CREATE TABLE table_name_61 (league_from VARCHAR, position VARCHAR, pick__number VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT league_from FROM table_name_61 WHERE pick__number > 204 AND nationality = "canada" AND position = "lw"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the record after the game against the St. Louis Cardinals? ### Context: CREATE TABLE table_name_15 (record VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_name_15 WHERE opponent = "st. louis cardinals"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Name the date of Tournament of paris indoor , france? ### Context: CREATE TABLE table_name_23 (date INTEGER, tournament VARCHAR) ### Response: ### Response: SELECT SUM(date) FROM table_name_23 WHERE tournament = "paris indoor , france"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the grid total for ralf schumacher racing over 53 laps? ### Context: CREATE TABLE table_name_31 (grid INTEGER, driver VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT SUM(grid) FROM table_name_31 WHERE driver = "ralf schumacher" AND laps > 53</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the record for game 9? ### Context: CREATE TABLE table_21058836_1 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_21058836_1 WHERE game = 9</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: How much is the money ($) when the score is 67-71-72-72=282? ### Context: CREATE TABLE table_name_97 (money___ VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(money___) AS $__ FROM table_name_97 WHERE score = 67 - 71 - 72 - 72 = 282</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is every value for top 5 if average start is 21.9? ### Context: CREATE TABLE table_2597876_2 (top_5 VARCHAR, avg_start VARCHAR) ### Response: ### Response: SELECT top_5 FROM table_2597876_2 WHERE avg_start = "21.9"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: If the year is 2010, what is the minimum amount of years 5-9? ### Context: CREATE TABLE table_174266_6 (year VARCHAR) ### Response: ### Response: SELECT MIN(5 AS _9_years) FROM table_174266_6 WHERE year = 2010</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: How many agencies did Budarin Nikolai Budarin working for? ### Context: CREATE TABLE table_14125006_1 (agency VARCHAR, astronaut VARCHAR) ### Response: ### Response: SELECT COUNT(agency) FROM table_14125006_1 WHERE astronaut = "Budarin Nikolai Budarin"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which rider had a time/retired od +19.909? ### Context: CREATE TABLE table_name_51 (rider VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT rider FROM table_name_51 WHERE time_retired = "+19.909"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Who is listed under womens singles when year location is 1998 doha? ### Context: CREATE TABLE table_28138035_27 (womens_singles VARCHAR, year_location VARCHAR) ### Response: ### Response: SELECT womens_singles FROM table_28138035_27 WHERE year_location = "1998 Doha"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the score of the game where the record was 22-55? ### Context: CREATE TABLE table_name_7 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_7 WHERE record = "22-55"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the Series, when the Season is after 2008, when the value for Podiums is 3, and when the Position is 8th? ### Context: CREATE TABLE table_name_28 (series VARCHAR, position VARCHAR, season VARCHAR, podiums VARCHAR) ### Response: ### Response: SELECT series FROM table_name_28 WHERE season > 2008 AND podiums = "3" AND position = "8th"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Where is the team that is managed by richard barnwell from? ### Context: CREATE TABLE table_27409644_1 (location VARCHAR, manager VARCHAR) ### Response: ### Response: SELECT location FROM table_27409644_1 WHERE manager = "Richard Barnwell"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008? ### Context: CREATE TABLE table_name_49 (replaced_by VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR) ### Response: ### Response: SELECT replaced_by FROM table_name_49 WHERE manner_of_departure = "end of contract" AND date_of_appointment = "dec. 16, 2008"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What's the record when the attendance was 41,573? ### Context: CREATE TABLE table_name_25 (record VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT record FROM table_name_25 WHERE attendance = "41,573"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: how many verbs have the yo form as sienta? ### Context: CREATE TABLE table_1977630_2 (verbs VARCHAR, yo VARCHAR) ### Response: ### Response: SELECT COUNT(verbs) FROM table_1977630_2 WHERE yo = "sienta"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Who directed the episode with production code 177605? ### Context: CREATE TABLE table_26561506_1 (directed_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_26561506_1 WHERE production_code = 177605</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the Lomavren associated with a Persian of se? ### Context: CREATE TABLE table_name_32 (lomavren VARCHAR, persian VARCHAR) ### Response: ### Response: SELECT lomavren FROM table_name_32 WHERE persian = "se"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the maximum download speed for the Internet basic plan with 3G? ### Context: CREATE TABLE table_name_24 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR) ### Response: ### Response: SELECT maximum_download_speed__kbps FROM table_name_24 WHERE technology = "3g" AND plan_name = "internet basic"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What city was completed in 1910-1978? ### Context: CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR) ### Response: ### Response: SELECT city FROM table_name_23 WHERE completion = "1910-1978"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Find the name of the person who has friends with age above 40 but not under age 30? ### Context: CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) ### Response: ### Response: SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: How many apartment bookings are there in total? ### Context: CREATE TABLE Apartment_Bookings (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Apartment_Bookings</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which nation has more than 6 Silver medals and fewer than 8 Gold medals? ### Context: CREATE TABLE table_name_59 (total INTEGER, silver VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_59 WHERE silver > 6 AND gold < 8</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the data on November 3, if the data on January 15-16 is January 15, 2010? ### Context: CREATE TABLE table_25216791_3 (november_3 VARCHAR, january_15_16 VARCHAR) ### Response: ### Response: SELECT november_3 FROM table_25216791_3 WHERE january_15_16 = "January 15, 2010"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the score of Australia? ### Context: CREATE TABLE table_name_55 (score VARCHAR, country VARCHAR) ### Response: ### Response: SELECT score FROM table_name_55 WHERE country = "australia"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: what builder is now retired ### Context: CREATE TABLE table_name_20 (pennant_number VARCHAR, current_status VARCHAR) ### Response: ### Response: SELECT pennant_number FROM table_name_20 WHERE current_status = "retired"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which Country has a number of Wins larger than 2? ### Context: CREATE TABLE table_name_71 (country VARCHAR, wins INTEGER) ### Response: ### Response: SELECT country FROM table_name_71 WHERE wins > 2</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the Date of the match with Partner Steffi Graf with a Score in Final of 4–6, 1–6? ### Context: CREATE TABLE table_name_26 (date VARCHAR, score_in_final VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT date FROM table_name_26 WHERE score_in_final = "4–6, 1–6" AND partner = "steffi graf"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: In which year did Kati Klinzing finish 3rd? ### Context: CREATE TABLE table_name_24 (year VARCHAR, third VARCHAR) ### Response: ### Response: SELECT year FROM table_name_24 WHERE third = "kati klinzing"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What region is dated April 30, 2004, and cataloged Nebdj058? ### Context: CREATE TABLE table_name_37 (region VARCHAR, date VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT region FROM table_name_37 WHERE date = "april 30, 2004" AND catalog = "nebdj058"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is Teleplay, when First Broadcast is April 10, 1981? ### Context: CREATE TABLE table_name_57 (teleplay VARCHAR, first_broadcast VARCHAR) ### Response: ### Response: SELECT teleplay FROM table_name_57 WHERE first_broadcast = "april 10, 1981"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the frequency of the rail with an origin of Ranchi? ### Context: CREATE TABLE table_name_72 (frequency__inbound_outbound_ VARCHAR, origin VARCHAR) ### Response: ### Response: SELECT frequency__inbound_outbound_ FROM table_name_72 WHERE origin = "ranchi"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Who is the coach of the 2012 Gold Coast Titans season? ### Context: CREATE TABLE table_name_4 (coach VARCHAR, details VARCHAR) ### Response: ### Response: SELECT coach FROM table_name_4 WHERE details = "2012 gold coast titans season"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Find distinct cities of addresses of people? ### Context: CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital? ### Context: CREATE TABLE table_name_74 (general_classification_yellow_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR) ### Response: ### Response: SELECT general_classification_yellow_jersey FROM table_name_74 WHERE mountains_classification_green_jersey = "murilo antonio fischer" AND team_classification = "lampre-fondital"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What nationality is pick # 89 ### Context: CREATE TABLE table_1213511_7 (nationality VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT nationality FROM table_1213511_7 WHERE pick__number = 89</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which Open 2nd VIII had a U15 6th Quad of BGS and a U16 1st VII of TSS? ### Context: CREATE TABLE table_name_5 (open_2nd_viii VARCHAR, u15_6th_quad VARCHAR, u16_1st_viii VARCHAR) ### Response: ### Response: SELECT open_2nd_viii FROM table_name_5 WHERE u15_6th_quad = "bgs" AND u16_1st_viii = "tss"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: How many papers are published by the institution "Tokohu University"? ### Context: CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Tokohu University"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the name of the club when the played number is 22, and the try bonus was 0? ### Context: CREATE TABLE table_name_62 (club VARCHAR, played VARCHAR, try_bonus VARCHAR) ### Response: ### Response: SELECT club FROM table_name_62 WHERE played = "22" AND try_bonus = "0"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Who was the cover model when the issue's pictorials was pmoy - sara jean underwood? ### Context: CREATE TABLE table_1566852_8 (cover_model VARCHAR, pictorials VARCHAR) ### Response: ### Response: SELECT cover_model FROM table_1566852_8 WHERE pictorials = "PMOY - Sara Jean Underwood"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What district is Jim Moran the incumbent for. ### Context: CREATE TABLE table_name_40 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_name_40 WHERE incumbent = "jim moran"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the location of the game after game 6? ### Context: CREATE TABLE table_name_80 (location VARCHAR, game INTEGER) ### Response: ### Response: SELECT location FROM table_name_80 WHERE game > 6</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the missing for lieutenant general sir thomas picton? ### Context: CREATE TABLE table_11793221_4 (missing VARCHAR, commander VARCHAR) ### Response: ### Response: SELECT missing FROM table_11793221_4 WHERE commander = "Lieutenant General Sir Thomas Picton"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Show each county along with the number of schools and total enrollment in each county. ### Context: CREATE TABLE school (county VARCHAR, enrollment INTEGER) ### Response: ### Response: SELECT county, COUNT(*), SUM(enrollment) FROM school GROUP BY county</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Find the distinct last names of all the students who have president votes and whose advisor is 8741. ### Context: CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: When was the first UK broadcast when the official Barb ratings was 1085000? ### Context: CREATE TABLE table_26591309_2 (first_broadcast_uk___bbc_four__ VARCHAR, official_barb_ratings VARCHAR) ### Response: ### Response: SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE official_barb_ratings = 1085000</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the season where the team reached a GP of 244? ### Context: CREATE TABLE table_2233872_1 (season VARCHAR, gf VARCHAR) ### Response: ### Response: SELECT season FROM table_2233872_1 WHERE gf = 244</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Old Mo's Second Spring was the film title used in nomination in what year? ### Context: CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT year__ceremony_ FROM table_17350255_1 WHERE film_title_used_in_nomination = "Old Mo's Second Spring"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the names of the physicians who prescribe medication Thesisin? ### Context: CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE medication (code VARCHAR, name VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = "Thesisin"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the highest tourism arrivals in 2011 in millions with a 3.82 tourism competitiveness in 2011 and more than 1,102 US$ per arrival in 2011 tourism receipts? ### Context: CREATE TABLE table_name_92 (tourist_arrivals__2011___millions_ INTEGER, tourism_competitiveness__2011___ttci_ VARCHAR, tourism_receipts__2011___us$_per_arrival_ VARCHAR) ### Response: ### Response: SELECT MAX(tourist_arrivals__2011___millions_) FROM table_name_92 WHERE tourism_competitiveness__2011___ttci_ = "3.82" AND tourism_receipts__2011___us$_per_arrival_ > 1 OFFSET 102</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which Polish Cup has a Puchat Ligi larger than 0? ### Context: CREATE TABLE table_name_20 (polish_cup INTEGER, puchat_ligi INTEGER) ### Response: ### Response: SELECT AVG(polish_cup) FROM table_name_20 WHERE puchat_ligi > 0</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: On what date was the crowd size of 71,789? ### Context: CREATE TABLE table_name_35 (date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_35 WHERE attendance = "71,789"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o? ### Context: CREATE TABLE table_name_8 (athlete VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_8 WHERE 224 = "xo" AND 220 = "o" AND 215 = "o"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is Venue, when Date is "7 September"? ### Context: CREATE TABLE table_name_45 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_45 WHERE date = "7 september"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: Show all distinct location names. ### Context: CREATE TABLE LOCATIONS (Location_Name VARCHAR) ### Response: ### Response: SELECT DISTINCT Location_Name FROM LOCATIONS</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: what's the player with college being penn state ### Context: CREATE TABLE table_14655985_1 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_14655985_1 WHERE college = "Penn State"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the nssdc id for Echo 1? ### Context: CREATE TABLE table_2150068_1 (nssdc_id VARCHAR, satellite VARCHAR) ### Response: ### Response: SELECT nssdc_id FROM table_2150068_1 WHERE satellite = "Echo 1"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the Location when the team was seve ballesteros & manuel piñero? ### Context: CREATE TABLE table_name_61 (location VARCHAR, team VARCHAR) ### Response: ### Response: SELECT location FROM table_name_61 WHERE team = "seve ballesteros & manuel piñero"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What is the scoreof the away team Collingwood? ### Context: CREATE TABLE table_name_83 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_83 WHERE away_team = "collingwood"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: What was the film title that emma thompson was the actress nominated for best supporting actress? ### Context: CREATE TABLE table_name_81 (film_title_used_in_nomination VARCHAR, actor_actress VARCHAR, category VARCHAR) ### Response: ### Response: SELECT film_title_used_in_nomination FROM table_name_81 WHERE actor_actress = "emma thompson" AND category = "best supporting actress"</s>
<s>### Instruction: 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. ### Dialect: sqlite ### Input: When did Hans Hartmann drive? ### Context: CREATE TABLE table_name_42 (year VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_42 WHERE driver = "hans hartmann"</s>