messages listlengths 3 3 |
|---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (games VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "What games have colomiers as the club?",
"role": "user"
},
{
"content": "SELECT games FROM table_name_47 WHERE club = \"colomiers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (score VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What is the Score in Tie 2?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_4 WHERE tie_no = \"2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (electricity_grid VARCHAR, commercial_operation VARCHAR)",
"role": "system"
},
{
"content": "Which Electricity Grid started its Commercial Operation of 24.03.1973?",
"role": "user"
},
{
"content": "SELECT electricity_grid FROM table_name_17 WHERE commercial_operation = \"24.03.1973\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (losses VARCHAR, pct VARCHAR, finish VARCHAR)",
"role": "system"
},
{
"content": "Which Losses have a Pct of .451 and Finished 6th?",
"role": "user"
},
{
"content": "SELECT losses FROM table_name_92 WHERE pct = \".451\" AND finish = \"6th\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (votes__gib_ INTEGER, _percentage__gib_ VARCHAR, seats VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of votes of the party with a % of 0.53 and more than 0 seats?",
"role": "user"
},
{
"content": "SELECT SUM(votes__gib_) FROM table_name_99 WHERE _percentage__gib_ = 0.53 AND seats > 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (away_team VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the away team for Tie #19?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_61 WHERE tie_no = \"19\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (turbo VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "what is the turbo when the frequency is 2.2 ghz?",
"role": "user"
},
{
"content": "SELECT turbo FROM table_name_63 WHERE frequency = \"2.2 ghz\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (silver INTEGER, gold VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "What is the maximum number of silvers for a country with fewer than 12 golds and a total less than 8?",
"role": "user"
},
{
"content": "SELECT MAX(silver) FROM table_name_72 WHERE gold < 12 AND total < 8",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15431122_2 (wins INTEGER)",
"role": "system"
},
{
"content": "What is the minimum number of wins?",
"role": "user"
},
{
"content": "SELECT MIN(wins) FROM table_15431122_2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (reason_for_change VARCHAR, state__class_ VARCHAR)",
"role": "system"
},
{
"content": "Which Reason has a State (class) of tennessee (2)?",
"role": "user"
},
{
"content": "SELECT reason_for_change FROM table_name_54 WHERE state__class_ = \"tennessee (2)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (points VARCHAR, standing_broad_jump__cm_ VARCHAR)",
"role": "system"
},
{
"content": "How many points are obtained when a standing broad jump is 207-215 cm?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_25 WHERE standing_broad_jump__cm_ = \"207-215\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (innhabitants INTEGER, party VARCHAR)",
"role": "system"
},
{
"content": "How many people does the KRF Party preside over?",
"role": "user"
},
{
"content": "SELECT AVG(innhabitants) FROM table_name_51 WHERE party = \"krf\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (points INTEGER, goals_for VARCHAR, goals_against VARCHAR)",
"role": "system"
},
{
"content": "What are the total number of points with more than 225 goals and a Goals against of 190?",
"role": "user"
},
{
"content": "SELECT SUM(points) FROM table_name_31 WHERE goals_for > 225 AND goals_against = 190",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (score VARCHAR, opponent_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "What is the Score of the Tournament with Opponent in the final of Martin Spottl?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_70 WHERE opponent_in_the_final = \"martin spottl\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (date VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What was the date of the game with a loss of Bush (1β5)?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_18 WHERE loss = \"bush (1β5)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (date VARCHAR, result VARCHAR, location VARCHAR, year VARCHAR, loser VARCHAR)",
"role": "system"
},
{
"content": "Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_68 WHERE year < 1988 AND loser = \"philadelphia eagles\" AND location = \"giants stadium\" AND result = \"21-0\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (event VARCHAR, prize VARCHAR)",
"role": "system"
},
{
"content": "What was the Event for the prize of β¬850,000?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_45 WHERE prize = \"β¬850,000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (year INTEGER, english_title VARCHAR)",
"role": "system"
},
{
"content": "What is the Year of submission of the Film The Art of Crying?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_70 WHERE english_title = \"the art of crying\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (d_43 VARCHAR, d_48 VARCHAR)",
"role": "system"
},
{
"content": "Name the D 43 with D 48 of d 9",
"role": "user"
},
{
"content": "SELECT d_43 FROM table_name_70 WHERE d_48 = \"d 9\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (method VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)",
"role": "system"
},
{
"content": "What is the method for a match with a Round larger than 2, he took a loss, and 15β3 was the record?",
"role": "user"
},
{
"content": "SELECT method FROM table_name_67 WHERE round > 2 AND res = \"loss\" AND record = \"15β3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25818630_2 (votes__cast VARCHAR, constituency VARCHAR)",
"role": "system"
},
{
"content": "How many votes were cast when the constituency was midlothian?",
"role": "user"
},
{
"content": "SELECT votes__cast FROM table_25818630_2 WHERE constituency = \"Midlothian\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (year VARCHAR, role_episode VARCHAR)",
"role": "system"
},
{
"content": "what is the year when the role/episode is david duchovny?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_82 WHERE role_episode = \"david duchovny\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (year VARCHAR, pts VARCHAR)",
"role": "system"
},
{
"content": "What year had 13 points?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_23 WHERE pts = 13",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (fleet_size VARCHAR, class VARCHAR)",
"role": "system"
},
{
"content": "What is the fleet size of the Vanguard 0-6-0dh class?",
"role": "user"
},
{
"content": "SELECT fleet_size FROM table_name_73 WHERE class = \"vanguard 0-6-0dh\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (poison_klesha VARCHAR, tibetan VARCHAR)",
"role": "system"
},
{
"content": "What is the poision/klesha word for the tibetan word gti mug ma rig pa?",
"role": "user"
},
{
"content": "SELECT poison_klesha FROM table_name_14 WHERE tibetan = \"gti mug ma rig pa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (recorded VARCHAR, time VARCHAR, track VARCHAR, release_date VARCHAR)",
"role": "system"
},
{
"content": "Tell me the recorded for time of 2:50 and released date of 6/6/77 with track more than 20",
"role": "user"
},
{
"content": "SELECT recorded FROM table_name_84 WHERE track > 20 AND release_date = \"6/6/77\" AND time = \"2:50\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (hanja___kanji VARCHAR, kana VARCHAR)",
"role": "system"
},
{
"content": "What is the Hanja/Kanji of the Province with a Kana of γ‘γ
γγγγ»γγ©γ?",
"role": "user"
},
{
"content": "SELECT hanja___kanji FROM table_name_10 WHERE kana = \"γ‘γ
γγγγ»γγ©γ\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE races (name VARCHAR, YEAR VARCHAR)",
"role": "system"
},
{
"content": "Find the names of all races held in 2017.",
"role": "user"
},
{
"content": "SELECT name FROM races WHERE YEAR = 2017",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)",
"role": "system"
},
{
"content": "Which Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged?",
"role": "user"
},
{
"content": "SELECT condition FROM table_name_75 WHERE bleeding_time = \"unaffected\" AND prothrombin_time = \"prolonged\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (pick__number INTEGER, college VARCHAR)",
"role": "system"
},
{
"content": "What is cornell's lowest pick number?",
"role": "user"
},
{
"content": "SELECT MIN(pick__number) FROM table_name_13 WHERE college = \"cornell\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2417330_4 (vacator VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "Name the vacator for kentucky 2nd",
"role": "user"
},
{
"content": "SELECT vacator FROM table_2417330_4 WHERE district = \"Kentucky 2nd\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (tonnage__grt_ INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "Which Tonnage (GRT) is the highest one that has a Date of 16 june 1940?",
"role": "user"
},
{
"content": "SELECT MAX(tonnage__grt_) FROM table_name_52 WHERE date = \"16 june 1940\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29701419_2 (league_goals INTEGER, total_goals VARCHAR)",
"role": "system"
},
{
"content": "What is the league goals when the total goals is 179?",
"role": "user"
},
{
"content": "SELECT MAX(league_goals) FROM table_29701419_2 WHERE total_goals = 179",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (overall INTEGER, pick INTEGER)",
"role": "system"
},
{
"content": "What was the Overall number that is the lowest, and has a pick greater than 9?",
"role": "user"
},
{
"content": "SELECT MIN(overall) FROM table_name_86 WHERE pick > 9",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (byes INTEGER, losses INTEGER)",
"role": "system"
},
{
"content": "Which Byes have Losses smaller than 4?",
"role": "user"
},
{
"content": "SELECT AVG(byes) FROM table_name_38 WHERE losses < 4",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (school VARCHAR, enrollment VARCHAR)",
"role": "system"
},
{
"content": "Which School has a Enrollment of 908?",
"role": "user"
},
{
"content": "SELECT school FROM table_name_55 WHERE enrollment = 908",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28723146_2 (multi_lane INTEGER, category_wise VARCHAR)",
"role": "system"
},
{
"content": "What is the highest value for multi lane if category wise is major district roads?",
"role": "user"
},
{
"content": "SELECT MAX(multi_lane) FROM table_28723146_2 WHERE category_wise = \"Major district roads\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28859177_3 (production_code VARCHAR, original_air_date VARCHAR)",
"role": "system"
},
{
"content": "What is the production code for the episode that aired on October 15, 2004?",
"role": "user"
},
{
"content": "SELECT production_code FROM table_28859177_3 WHERE original_air_date = \"October 15, 2004\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (player VARCHAR, school_club_team VARCHAR)",
"role": "system"
},
{
"content": "Who is the player for the School/Club team in Georgia?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_73 WHERE school_club_team = \"georgia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (notes VARCHAR, athlete VARCHAR)",
"role": "system"
},
{
"content": "What is listed in notes for the athlete, lassi karonen?",
"role": "user"
},
{
"content": "SELECT notes FROM table_name_46 WHERE athlete = \"lassi karonen\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which Score has an Opponent of @ rockies, and a Record of 33-35?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_75 WHERE opponent = \"@ rockies\" AND record = \"33-35\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What day was the away team Cardiff City?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_97 WHERE away_team = \"cardiff city\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (result VARCHAR, nominated_work VARCHAR, award VARCHAR)",
"role": "system"
},
{
"content": "When Marlene was nominated for the Olivier Award, what was the result?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_33 WHERE nominated_work = \"marlene\" AND award = \"olivier award\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_171666_1 (national_share___percentage_ VARCHAR, area__kmΒ²_ VARCHAR)",
"role": "system"
},
{
"content": "What is the national share of the country whose area is 148064 km^2?",
"role": "user"
},
{
"content": "SELECT national_share___percentage_ FROM table_171666_1 WHERE area__kmΒ²_ = 148064",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (film VARCHAR, year VARCHAR, category VARCHAR)",
"role": "system"
},
{
"content": "what is the film when the year is earlier than 2002 and the category is outstanding actress?",
"role": "user"
},
{
"content": "SELECT film FROM table_name_21 WHERE year < 2002 AND category = \"outstanding actress\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (body_length_mm INTEGER, lead_pitch_mm INTEGER)",
"role": "system"
},
{
"content": "Which Body Length/mm has a Lead Pitch/mm smaller than 0.5?",
"role": "user"
},
{
"content": "SELECT AVG(body_length_mm) FROM table_name_9 WHERE lead_pitch_mm < 0.5",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (losses INTEGER, appearances VARCHAR, wins VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3",
"role": "user"
},
{
"content": "SELECT SUM(losses) FROM table_name_60 WHERE wins < 2 AND rank = 10 AND appearances > 3",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10812938_3 (player VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "Which player went to college at Laval?",
"role": "user"
},
{
"content": "SELECT player FROM table_10812938_3 WHERE college = \"Laval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21284653_1 (change___percentage_ VARCHAR, area__kmΒ²_ VARCHAR)",
"role": "system"
},
{
"content": "What is the change (%) when the area size (km2) is 247.21?",
"role": "user"
},
{
"content": "SELECT change___percentage_ FROM table_21284653_1 WHERE area__kmΒ²_ = \"247.21\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (pommel_horse VARCHAR, vault VARCHAR, total VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "How many pommel horses have a Total smaller than 230.019, a Team of china (chn), and a Vault smaller than 38.437?",
"role": "user"
},
{
"content": "SELECT COUNT(pommel_horse) FROM table_name_52 WHERE total < 230.019 AND team = \"china (chn)\" AND vault < 38.437",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (diff INTEGER, played INTEGER)",
"role": "system"
},
{
"content": "What is the average diff when games played are more than 6?",
"role": "user"
},
{
"content": "SELECT AVG(diff) FROM table_name_84 WHERE played > 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26222468_1 (f_laps INTEGER)",
"role": "system"
},
{
"content": "What is the minimum number of f/laps?",
"role": "user"
},
{
"content": "SELECT MIN(f_laps) FROM table_26222468_1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (pick INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "What is the highest pick for a player from auburn?",
"role": "user"
},
{
"content": "SELECT MAX(pick) FROM table_name_60 WHERE school = \"auburn\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (constructor VARCHAR, laps VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "Which constructor had laps amounting to more than 21 where the driver was John Surtees?",
"role": "user"
},
{
"content": "SELECT constructor FROM table_name_14 WHERE laps > 21 AND driver = \"john surtees\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_171666_1 (comparable_country VARCHAR, national_share___percentage_ VARCHAR)",
"role": "system"
},
{
"content": "What comparable country has a national share of 1.08?",
"role": "user"
},
{
"content": "SELECT comparable_country FROM table_171666_1 WHERE national_share___percentage_ = \"1.08\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20018310_1 (juntas_de_regantes__wub_ VARCHAR, irrigation_district VARCHAR)",
"role": "system"
},
{
"content": "What are the Juntas de Regantes (WUB) within the Azua Valley?",
"role": "user"
},
{
"content": "SELECT juntas_de_regantes__wub_ FROM table_20018310_1 WHERE irrigation_district = \"Azua Valley\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20745685_1 (opponent VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent when the attendance was exactly 16642?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_20745685_1 WHERE attendance = 16642",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (drawn INTEGER, lost VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?",
"role": "user"
},
{
"content": "SELECT MIN(drawn) FROM table_name_32 WHERE lost = 5 AND points > 4",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (overall INTEGER, round VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "Which average overall has a Round of 1, and a Position of center?",
"role": "user"
},
{
"content": "SELECT AVG(overall) FROM table_name_80 WHERE round = 1 AND position = \"center\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_36 (zaaps___ziips VARCHAR, model VARCHAR)",
"role": "system"
},
{
"content": "For Model e64 what is the zAAPs/zIIPs?",
"role": "user"
},
{
"content": "SELECT zaaps___ziips FROM table_name_36 WHERE model = \"e64\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (silver INTEGER, bronze VARCHAR, total VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What is the most silver medals won among nations that won more than 40 medals total, less than 25 of them being gold, and more than 15 of them being bronze?",
"role": "user"
},
{
"content": "SELECT MAX(silver) FROM table_name_78 WHERE total > 40 AND gold < 25 AND bronze > 15",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (a_side VARCHAR, b_side VARCHAR)",
"role": "system"
},
{
"content": "What is the A-side for it Never Entered My Mind, Part 2?",
"role": "user"
},
{
"content": "SELECT a_side FROM table_name_75 WHERE b_side = \"it never entered my mind, part 2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2562572_41 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)",
"role": "system"
},
{
"content": "What is the Deliblato village known as in Cyrillic?",
"role": "user"
},
{
"content": "SELECT cyrillic_name_other_names FROM table_2562572_41 WHERE settlement = \"Deliblato\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (launched VARCHAR, commissioned VARCHAR)",
"role": "system"
},
{
"content": "What is Launched, when Commissioned is \"25 July 1998\"?",
"role": "user"
},
{
"content": "SELECT launched FROM table_name_50 WHERE commissioned = \"25 july 1998\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (score VARCHAR, opponents_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "WHich Score has marcelo filippini mark koevermans?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_18 WHERE opponents_in_the_final = \"marcelo filippini mark koevermans\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE matches (winner_name VARCHAR, winner_rank_points VARCHAR)",
"role": "system"
},
{
"content": "Find the name and rank points of the winner who won the most times.",
"role": "user"
},
{
"content": "SELECT winner_name, winner_rank_points FROM matches GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (position VARCHAR, league VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Which Position has a League of southern league premier division, and a Season of 2004β05?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_90 WHERE league = \"southern league premier division\" AND season = \"2004β05\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17382360_9 (date VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "How many dates had a final score of w 118-112?",
"role": "user"
},
{
"content": "SELECT COUNT(date) FROM table_17382360_9 WHERE score = \"W 118-112\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (name VARCHAR, transfer_fee VARCHAR)",
"role": "system"
},
{
"content": "Who had a transfer fee of dkk 6m?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_39 WHERE transfer_fee = \"dkk 6m\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (heat__lane_ VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Which heat and lane was in rank of 22?",
"role": "user"
},
{
"content": "SELECT heat__lane_ FROM table_name_75 WHERE rank = 22",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (appointed_by VARCHAR, termination_of_mission VARCHAR)",
"role": "system"
},
{
"content": "Which Appointed has Termination of Mission on april 7, 2005?",
"role": "user"
},
{
"content": "SELECT appointed_by FROM table_name_40 WHERE termination_of_mission = \"april 7, 2005\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (engine VARCHAR, output VARCHAR)",
"role": "system"
},
{
"content": "What engine has an output of ps (kw; hp) @4700 rpm?",
"role": "user"
},
{
"content": "SELECT engine FROM table_name_85 WHERE output = \"ps (kw; hp) @4700 rpm\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_start_date VARCHAR)",
"role": "system"
},
{
"content": "Which company started the earliest the maintenance contract? Show the company name.",
"role": "user"
},
{
"content": "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "When was andrea gΓ‘miz the opponent?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_97 WHERE opponent = \"andrea gΓ‘miz\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27501971_2 (premio VARCHAR, categorΓa VARCHAR)",
"role": "system"
},
{
"content": "How many premio are there when \"Artist of the Year\" was the categoria?",
"role": "user"
},
{
"content": "SELECT COUNT(premio) FROM table_27501971_2 WHERE categorΓa = \"Artist of the Year\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21330550_2 (location VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "Which location has a time of 9:30pm?",
"role": "user"
},
{
"content": "SELECT location FROM table_21330550_2 WHERE time = \"9:30PM\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (save VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What was the Save in the game that has a Loss of sanderson (6-5)?",
"role": "user"
},
{
"content": "SELECT save FROM table_name_96 WHERE loss = \"sanderson (6-5)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (tries_against VARCHAR, points_against VARCHAR)",
"role": "system"
},
{
"content": "Having 429 points against, what is the Tries Against?",
"role": "user"
},
{
"content": "SELECT tries_against FROM table_name_24 WHERE points_against = \"429\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20236726_2 (builder VARCHAR, serial_no VARCHAR)",
"role": "system"
},
{
"content": "Name the builder for serial number being 377",
"role": "user"
},
{
"content": "SELECT builder FROM table_20236726_2 WHERE serial_no = 377",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (round INTEGER, pick VARCHAR)",
"role": "system"
},
{
"content": "What is the average round of the number 16 pick?",
"role": "user"
},
{
"content": "SELECT AVG(round) FROM table_name_72 WHERE pick = \"16\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (pick__number INTEGER, reg_gp INTEGER)",
"role": "system"
},
{
"content": "Which is the smallest pick number that had a Reg GP of less than 0?",
"role": "user"
},
{
"content": "SELECT MIN(pick__number) FROM table_name_44 WHERE reg_gp < 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16162581_1 (simplified_characters VARCHAR, wade_giles VARCHAR)",
"role": "system"
},
{
"content": "Name the simplified charaacters being hsin-yΓΌan β¦ i-ma",
"role": "user"
},
{
"content": "SELECT simplified_characters FROM table_16162581_1 WHERE wade_giles = \"hsin-yΓΌan β¦ i-ma\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (round INTEGER, time VARCHAR, res VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest round for Fort Lauderdale, Florida, United States, with a win and a time of 3:38?",
"role": "user"
},
{
"content": "SELECT MIN(round) FROM table_name_14 WHERE res = \"win\" AND location = \"fort lauderdale, florida, united states\" AND time = \"3:38\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28001186_8 (site_stadium VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What was the site of the game that had an 11-4 score?",
"role": "user"
},
{
"content": "SELECT site_stadium FROM table_28001186_8 WHERE score = \"11-4\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (score VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the score of the game where the record was 22-55?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_7 WHERE record = \"22-55\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (nanquan INTEGER, total VARCHAR, nandao VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Which Nanquan has a Nandao smaller than 9.44, and a Rank smaller than 9, and a Total larger than 18.68?",
"role": "user"
},
{
"content": "SELECT MIN(nanquan) FROM table_name_27 WHERE nandao < 9.44 AND rank < 9 AND total > 18.68",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (earnings___ INTEGER, country VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the average earnings of a United States player who had a score of 72-68-74-72=286?",
"role": "user"
},
{
"content": "SELECT AVG(earnings___) AS $__ FROM table_name_58 WHERE country = \"united states\" AND score = 72 - 68 - 74 - 72 = 286",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (earned VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What earned has 5 for the rank?",
"role": "user"
},
{
"content": "SELECT earned FROM table_name_21 WHERE rank = 5",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (skip VARCHAR, lead VARCHAR)",
"role": "system"
},
{
"content": "Who has the lead on Lisa Weagle?",
"role": "user"
},
{
"content": "SELECT skip FROM table_name_80 WHERE lead = \"lisa weagle\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24172157_3 (date_of_vacancy VARCHAR, table VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is the date of vacancy for the Liverpool team with a table named pre-season?",
"role": "user"
},
{
"content": "SELECT date_of_vacancy FROM table_24172157_3 WHERE table = \"Pre-season\" AND team = \"Liverpool\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (year VARCHAR, cross_code_debut VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "In what Year is Keith Smith's Cross Code Debut RL Test v Wales?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_73 WHERE cross_code_debut = \"rl test v wales\" AND player = \"keith smith\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (platform VARCHAR, frequency__per_hour_ INTEGER)",
"role": "system"
},
{
"content": "How many Platforms have a Frequency of less than 2?",
"role": "user"
},
{
"content": "SELECT COUNT(platform) FROM table_name_60 WHERE frequency__per_hour_ < 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26178824_1 (wins VARCHAR, series VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "how many wins had series formula renault 2.0 nec and the position is 18th?",
"role": "user"
},
{
"content": "SELECT wins FROM table_26178824_1 WHERE series = \"Formula Renault 2.0 NEC\" AND position = \"18th\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (team_1 VARCHAR)",
"role": "system"
},
{
"content": "What is 1st Round, when Team 1 is Sporting Toulon Var (D2)?",
"role": "user"
},
{
"content": "SELECT 1 AS st_round FROM table_name_65 WHERE team_1 = \"sporting toulon var (d2)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14945608_1 (result VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "How many games had the attendance of 60225?",
"role": "user"
},
{
"content": "SELECT COUNT(result) FROM table_14945608_1 WHERE attendance = 60225",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (games_played VARCHAR, draws VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR, loses VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of games played of the club with less than 40 goals scored, 9 losses, 39 goals conceded, and more than 2 draws?",
"role": "user"
},
{
"content": "SELECT COUNT(games_played) FROM table_name_33 WHERE goals_scored < 40 AND loses = 9 AND goals_conceded = 39 AND draws > 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (venue VARCHAR, against VARCHAR)",
"role": "system"
},
{
"content": "Which venue has 16 against?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_5 WHERE against = 16",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (time_retired VARCHAR, grid VARCHAR, manufacturer VARCHAR)",
"role": "system"
},
{
"content": "If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?",
"role": "user"
},
{
"content": "SELECT time_retired FROM table_name_79 WHERE grid > 10 AND manufacturer = \"proton kr\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (attendance INTEGER, decision VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "What was the lowest attendance at the game against chicago when conklin made the decision?",
"role": "user"
},
{
"content": "SELECT MIN(attendance) FROM table_name_21 WHERE decision = \"conklin\" AND visitor = \"chicago\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (crowd INTEGER, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the smallest crowd when richmond is away?",
"role": "user"
},
{
"content": "SELECT MIN(crowd) FROM table_name_44 WHERE away_team = \"richmond\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.