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_27730_9 (predecessor VARCHAR, ekavian VARCHAR)",
"role": "system"
},
{
"content": "What's the predecessor of the Ekavian word vreme?",
"role": "user"
},
{
"content": "SELECT predecessor FROM table_27730_9 WHERE ekavian = \"vreme\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_34 (season INTEGER, driver VARCHAR)",
"role": "system"
},
{
"content": "What is the earliest season with driver Farad Bathena?",
"role": "user"
},
{
"content": "SELECT MIN(season) FROM table_name_34 WHERE driver = \"farad bathena\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25965003_3 (length_of_stay_permitted VARCHAR, countries_and_territories VARCHAR)",
"role": "system"
},
{
"content": "What length of stay is permitted in the European Union?",
"role": "user"
},
{
"content": "SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = \"European Union\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (score VARCHAR, runner_up VARCHAR, champion VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_13 WHERE champion = \"nacional\" AND venue = \"centenario\" AND runner_up = \"river plate\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23385853_1 (surface VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Name surface for 8 round",
"role": "user"
},
{
"content": "SELECT surface FROM table_23385853_1 WHERE round = 8",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent on September 17?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_41 WHERE date = \"september 17\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (front_row_starts INTEGER, driver VARCHAR)",
"role": "system"
},
{
"content": "What was the highest front row starts for Alain Prost?",
"role": "user"
},
{
"content": "SELECT MAX(front_row_starts) FROM table_name_52 WHERE driver = \"alain prost\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (matches INTEGER, name VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the number of Matches for Vits Rimkus with a Rank of less than 3?",
"role": "user"
},
{
"content": "SELECT AVG(matches) FROM table_name_2 WHERE name = \"vits rimkus\" AND rank < 3",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (foundation VARCHAR, name_in_english VARCHAR)",
"role": "system"
},
{
"content": "What is the foundation for the institution whose name in English is tanjung puteri technical secondary school?",
"role": "user"
},
{
"content": "SELECT foundation FROM table_name_5 WHERE name_in_english = \"tanjung puteri technical secondary school\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (winning_pct INTEGER, wins VARCHAR, games_started VARCHAR, losses VARCHAR, ties VARCHAR)",
"role": "system"
},
{
"content": "What is the highest winning pct from a team with wins less than 22, losses greater than 4, ties less than 2 and games started greater than 11?",
"role": "user"
},
{
"content": "SELECT MAX(winning_pct) FROM table_name_92 WHERE losses > 4 AND ties < 2 AND games_started > 11 AND wins < 22",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (total INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest total for the silver less than 1, and a rank more than 5, more than 1 bronze?",
"role": "user"
},
{
"content": "SELECT MIN(total) FROM table_name_71 WHERE silver < 1 AND rank > 5 AND bronze > 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 user_profiles (name VARCHAR, followers VARCHAR)",
"role": "system"
},
{
"content": "List the name and number of followers for each user, and sort the results by the number of followers in descending order.",
"role": "user"
},
{
"content": "SELECT name, followers FROM user_profiles ORDER BY followers DESC",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (assists INTEGER, club VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "what is the assists when the club is chicago fire and goals is more than 2?",
"role": "user"
},
{
"content": "SELECT SUM(assists) FROM table_name_82 WHERE club = \"chicago fire\" AND goals > 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 CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"role": "system"
},
{
"content": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".",
"role": "user"
},
{
"content": "SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"fast\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341423_43 (incumbent VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "Name the incumbent for texas 22 district",
"role": "user"
},
{
"content": "SELECT incumbent FROM table_1341423_43 WHERE district = \"Texas 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_18305523_2 (cover_date VARCHAR, story_title VARCHAR)",
"role": "system"
},
{
"content": "How many cover dates does the story \"Devastation Derby! (part 1)\" have?",
"role": "user"
},
{
"content": "SELECT COUNT(cover_date) FROM table_18305523_2 WHERE story_title = \"DEVASTATION DERBY! (Part 1)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What did the away team score at Moorabbin Oval?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_24 WHERE venue = \"moorabbin oval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (score VARCHAR, attendance VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the score when the attendance is less than 83 and Raunds Town is the away team?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = \"raunds town\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (col__m_ VARCHAR, elevation__m_ VARCHAR)",
"role": "system"
},
{
"content": "What is the Col entry for the peak with an elevation of 2,308 meters?",
"role": "user"
},
{
"content": "SELECT COUNT(col__m_) FROM table_name_86 WHERE elevation__m_ = 2 OFFSET 308",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (la_crescenta__montrose VARCHAR, glendale VARCHAR)",
"role": "system"
},
{
"content": "What is the figure for La Crescenta-Montrose when Gelndale is $57,112?",
"role": "user"
},
{
"content": "SELECT la_crescenta__montrose FROM table_name_64 WHERE glendale = \"$57,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 region (region_name VARCHAR)",
"role": "system"
},
{
"content": "Show names for all regions except for Denmark.",
"role": "user"
},
{
"content": "SELECT region_name FROM region WHERE region_name <> 'Denmark'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140088_6 (race_name VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "What race was held at Oulton Park?",
"role": "user"
},
{
"content": "SELECT race_name FROM table_1140088_6 WHERE circuit = \"Oulton Park\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (Id VARCHAR)",
"role": "system"
},
{
"content": "What was the result in 2013 in the tournament whose 2010 result was q2?",
"role": "user"
},
{
"content": "SELECT 2013 FROM table_name_8 WHERE 2010 = \"q2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_3 (march VARCHAR, november VARCHAR)",
"role": "system"
},
{
"content": "Who is the March playmate with a November playmate Cara Wakelin?",
"role": "user"
},
{
"content": "SELECT march FROM table_name_3 WHERE november = \"cara wakelin\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (against INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR)",
"role": "system"
},
{
"content": "What is the average against score of all teams with less than 7 losses, more than 6 draws, and 25 points?",
"role": "user"
},
{
"content": "SELECT AVG(against) FROM table_name_99 WHERE lost < 7 AND drawn > 6 AND points = 25",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "Date of october 10, 1965 had what lowest attendance?",
"role": "user"
},
{
"content": "SELECT MIN(attendance) FROM table_name_59 WHERE date = \"october 10, 1965\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_26 (game VARCHAR, road_team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which game has houston as the road team, and june 15 as the date?",
"role": "user"
},
{
"content": "SELECT game FROM table_name_26 WHERE road_team = \"houston\" AND date = \"june 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_27374004_4 (position_in_table VARCHAR, outgoing_manager VARCHAR)",
"role": "system"
},
{
"content": "What was the team's position in table when Danny OST was the outgoing manager?",
"role": "user"
},
{
"content": "SELECT position_in_table FROM table_27374004_4 WHERE outgoing_manager = \"Danny Ost\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (result VARCHAR, horse VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "What is the result of Waldemar 27´s freestyle test?",
"role": "user"
},
{
"content": "SELECT COUNT(result) FROM table_name_99 WHERE horse = \"waldemar 27\" AND event = \"freestyle test\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_68 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the final score for the match held on April 11, 2007?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_68 WHERE date = \"april 11, 2007\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (opponent_in_the_final VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the Opponent in the final on july 4, 2005?",
"role": "user"
},
{
"content": "SELECT opponent_in_the_final FROM table_name_52 WHERE date = \"july 4, 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_30 (player VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What player was drafted in Round 5?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_30 WHERE round = 5",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14460937_2 (pos INTEGER, clubs VARCHAR)",
"role": "system"
},
{
"content": "what is the minimum pos with clubs being 16",
"role": "user"
},
{
"content": "SELECT MIN(pos) FROM table_14460937_2 WHERE clubs = \"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_81 (loss VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What was the loss of the game when the record was 50-32?",
"role": "user"
},
{
"content": "SELECT loss FROM table_name_81 WHERE record = \"50-32\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17012578_37 (Ends VARCHAR, pa VARCHAR)",
"role": "system"
},
{
"content": "How many values are in the ends won cell corresponding to a PA of 39?",
"role": "user"
},
{
"content": "SELECT COUNT(Ends) AS won FROM table_17012578_37 WHERE pa = 39",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_6 (score VARCHAR, competition VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What is the score at the 2010 FIFA World Cup Qualification that results in a win?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_6 WHERE competition = \"2010 fifa world cup qualification\" AND result = \"win\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (lkf_cup VARCHAR, europe VARCHAR, regional_competitions VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE LKF CUP WITH euroleague group stage AND bbl elite division finalist?",
"role": "user"
},
{
"content": "SELECT lkf_cup FROM table_name_69 WHERE europe = \"euroleague group stage\" AND regional_competitions = \"bbl elite division finalist\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_6 (name VARCHAR, lane VARCHAR, heat VARCHAR, nationality VARCHAR)",
"role": "system"
},
{
"content": "Who has more than 4 heat for Germany and 7 lanes?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_6 WHERE heat > 4 AND nationality = \"germany\" AND lane = 7",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE SECTION (course_id VARCHAR, semester VARCHAR, YEAR VARCHAR)",
"role": "system"
},
{
"content": "Find courses that ran in Fall 2009 but not in Spring 2010.",
"role": "user"
},
{
"content": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (opponents_in_final VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Opponents in Final has a Date of september 16, 1990?",
"role": "user"
},
{
"content": "SELECT opponents_in_final FROM table_name_25 WHERE date = \"september 16, 1990\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (release_date VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "How many release dates has Canada had?",
"role": "user"
},
{
"content": "SELECT COUNT(release_date) FROM table_name_7 WHERE country = \"canada\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (season VARCHAR, level VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What season has a Level of 2nd, 29 points?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_84 WHERE level = \"2nd\" AND points = 29",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (event VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What event did Cristina Iovu participate in?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_1 WHERE name = \"cristina iovu\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (name VARCHAR, dcsf_number VARCHAR, ofsted_number VARCHAR)",
"role": "system"
},
{
"content": "What name that has a DCSF number bigger than 2448 and an Ofsted number of 131319?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_95 WHERE dcsf_number > 2448 AND ofsted_number = 131319",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (wins INTEGER, byes VARCHAR, against VARCHAR, golden_rivers VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of Wins, when Against is less than 1033, when Golden Rivers is \"Nullawil\", and when Byes is less than 2?",
"role": "user"
},
{
"content": "SELECT SUM(wins) FROM table_name_85 WHERE against < 1033 AND golden_rivers = \"nullawil\" AND byes < 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (year INTEGER, engine VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "what's the earliest year that there was a cosworth v8 engine and 12 points?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_name_39 WHERE engine = \"cosworth v8\" AND points = 12",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE classroom (building VARCHAR, capacity INTEGER)",
"role": "system"
},
{
"content": "Find the number of rooms with more than 50 capacity for each building.",
"role": "user"
},
{
"content": "SELECT COUNT(*), building FROM classroom WHERE capacity > 50 GROUP BY building",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28204447_3 (tries_for VARCHAR, l INTEGER)",
"role": "system"
},
{
"content": "Name the tries for when L is less than 2.0",
"role": "user"
},
{
"content": "SELECT tries_for FROM table_28204447_3 WHERE l < 2.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 Companies (Industry VARCHAR)",
"role": "system"
},
{
"content": "Find the number of companies whose industry is \"Banking\" or \"Conglomerate\",",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM Companies WHERE Industry = \"Banking\" OR Industry = \"Conglomerate\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (categorie VARCHAR, year VARCHAR, awards VARCHAR)",
"role": "system"
},
{
"content": "What was the categorie in 2002 at the Berlin international Film Festival that Danielle Darrieux was in?",
"role": "user"
},
{
"content": "SELECT categorie FROM table_name_39 WHERE year = 2002 AND awards = \"berlin international film festival\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent on September 26, 2009?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_28 WHERE date = \"september 26, 2009\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24565004_19 (period VARCHAR, nationality² VARCHAR)",
"role": "system"
},
{
"content": "Name the period for uruguay",
"role": "user"
},
{
"content": "SELECT period FROM table_24565004_19 WHERE nationality² = \"Uruguay\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (combined_consumption VARCHAR, code VARCHAR)",
"role": "system"
},
{
"content": "What is the combined consumption of the engine with the code k9k 796?",
"role": "user"
},
{
"content": "SELECT combined_consumption FROM table_name_85 WHERE code = \"k9k 796\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (high_schools INTEGER, cemeteries VARCHAR)",
"role": "system"
},
{
"content": "How many High schools in the Region with 8 Cemeteries?",
"role": "user"
},
{
"content": "SELECT SUM(high_schools) FROM table_name_38 WHERE cemeteries = 8",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (location VARCHAR, reign VARCHAR)",
"role": "system"
},
{
"content": "Name the location of reign 3",
"role": "user"
},
{
"content": "SELECT location FROM table_name_76 WHERE reign = \"3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (crowd INTEGER, venue VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance when the VFL played Glenferrie Oval?",
"role": "user"
},
{
"content": "SELECT SUM(crowd) FROM table_name_82 WHERE venue = \"glenferrie oval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1300080_1 (model_number VARCHAR, printer_ports VARCHAR)",
"role": "system"
},
{
"content": "What is the number of the model with three parallel printer ports?",
"role": "user"
},
{
"content": "SELECT model_number FROM table_1300080_1 WHERE printer_ports = \"Three Parallel\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (pick__number VARCHAR, position VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "How many Picks have a Position of defensive end, and an Overall smaller than 33?",
"role": "user"
},
{
"content": "SELECT COUNT(pick__number) FROM table_name_22 WHERE position = \"defensive end\" AND overall < 33",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (species_authority VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which Species/Authority has a Name of true's beaked whale?",
"role": "user"
},
{
"content": "SELECT species_authority FROM table_name_44 WHERE name = \"true's beaked whale\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_41 (rank INTEGER, silver INTEGER)",
"role": "system"
},
{
"content": "What average rank that has a silver less than 0?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_41 WHERE silver < 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_18 (game_1 VARCHAR, game_2 VARCHAR)",
"role": "system"
},
{
"content": "What game 1 has bob lindner as game 2?",
"role": "user"
},
{
"content": "SELECT game_1 FROM table_name_18 WHERE game_2 = \"bob lindner\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (country VARCHAR, total VARCHAR, finish VARCHAR)",
"role": "system"
},
{
"content": "What country had a total less than 291 and a 4 Finish?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_24 WHERE total < 291 AND finish = \"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_26448179_3 (no_in_season INTEGER, production_code VARCHAR)",
"role": "system"
},
{
"content": "What season number in the season has production code 210?",
"role": "user"
},
{
"content": "SELECT MIN(no_in_season) FROM table_26448179_3 WHERE production_code = \"210\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (december INTEGER, record VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "Which December has a Record of 21–8–4, and a Game larger than 33?",
"role": "user"
},
{
"content": "SELECT AVG(december) FROM table_name_38 WHERE record = \"21–8–4\" AND game > 33",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, adelaide VARCHAR)",
"role": "system"
},
{
"content": "Which Sydney has a Perth of no, an Adelaide of yes, and a Gold Coast of no?",
"role": "user"
},
{
"content": "SELECT sydney FROM table_name_84 WHERE perth = \"no\" AND adelaide = \"yes\" AND gold_coast = \"no\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10015132_9 (nationality VARCHAR, school_club_team VARCHAR)",
"role": "system"
},
{
"content": "What are the nationality of the players on the Fresno State school/club team?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_10015132_9 WHERE school_club_team = \"Fresno State\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1463383_1 (socialist VARCHAR, peoples_party VARCHAR)",
"role": "system"
},
{
"content": "How many socialists correspond to a 7.5% People's Party?",
"role": "user"
},
{
"content": "SELECT COUNT(socialist) FROM table_1463383_1 WHERE peoples_party = \"7.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_26 (format VARCHAR, catalogno VARCHAR)",
"role": "system"
},
{
"content": "Whati s the format for the catalogno of st 491?",
"role": "user"
},
{
"content": "SELECT format FROM table_name_26 WHERE catalogno = \"st 491\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE job_history (employee_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, salary VARCHAR)",
"role": "system"
},
{
"content": "Can you return all detailed info of jobs which was done by any of the employees who is presently earning a salary on and above 12000?",
"role": "user"
},
{
"content": "SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (country VARCHAR, place VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "Which country has a place smaller than 8 and points smaller than 5?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_63 WHERE place < 8 AND points < 5",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (tournament VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "What tournament was Thomas Enqvist runner up?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_15 WHERE runner_up = \"thomas enqvist\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (time VARCHAR, notes VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What time has q as the notes, and Australia as the country?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_95 WHERE notes = \"q\" AND country = \"australia\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (round VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "How many rounds had an overall of 211?",
"role": "user"
},
{
"content": "SELECT COUNT(round) FROM table_name_24 WHERE overall = 211",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_6 (country VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What country is Paul Runyan from?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_6 WHERE name = \"paul runyan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (variant__with_niqqud__ VARCHAR, phonetic_realisation VARCHAR)",
"role": "system"
},
{
"content": "What is the variant with niqqud for a phonetic realisation of [[[|v]]]?",
"role": "user"
},
{
"content": "SELECT variant__with_niqqud__ FROM table_name_77 WHERE phonetic_realisation = \"[[[|v]]]\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341395_33 (candidates VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "Who were the candidates when gregory w. meeks was the incumbent",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1341395_33 WHERE incumbent = \"Gregory W. Meeks\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (parts_per_example VARCHAR, value_of_quantity VARCHAR)",
"role": "system"
},
{
"content": "What is the Parts-per example of 2×10 −6?",
"role": "user"
},
{
"content": "SELECT parts_per_example FROM table_name_75 WHERE value_of_quantity = \"2×10 −6\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (birthplace VARCHAR, jersey_number VARCHAR, position VARCHAR, height__cm_ VARCHAR)",
"role": "system"
},
{
"content": "What is the birthplace of the player who is 190 CM tall, plays the D position, and wears number 11?",
"role": "user"
},
{
"content": "SELECT birthplace FROM table_name_79 WHERE position = \"d\" AND height__cm_ = 190 AND jersey_number = 11",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21304131_2 (original_air_date VARCHAR, no_in_series VARCHAR)",
"role": "system"
},
{
"content": "When did series number 65 originally air?",
"role": "user"
},
{
"content": "SELECT original_air_date FROM table_21304131_2 WHERE no_in_series = 65",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_51 (replaced_by VARCHAR, date_of_vacancy VARCHAR)",
"role": "system"
},
{
"content": "who is the replacement when the date of vacancy is 1 september 2008?",
"role": "user"
},
{
"content": "SELECT replaced_by FROM table_name_51 WHERE date_of_vacancy = \"1 september 2008\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (transfer_fee VARCHAR, ends VARCHAR, transfer_window VARCHAR)",
"role": "system"
},
{
"content": "What was the transfer fee for the player moving in the winter window and ending in a year after 2010?",
"role": "user"
},
{
"content": "SELECT transfer_fee FROM table_name_33 WHERE ends > 2010 AND transfer_window = \"winter\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "Name all the candidates listed in the race where the incumbent is Prince Hulon Preston, Jr.",
"role": "user"
},
{
"content": "SELECT candidates FROM table_1342013_10 WHERE incumbent = \"Prince Hulon Preston, Jr.\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (conference_joined VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "What conference did the city of Valparaiso join?",
"role": "user"
},
{
"content": "SELECT conference_joined FROM table_name_5 WHERE city = \"valparaiso\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_26 (goals_conceded INTEGER, draw VARCHAR, goals_scored VARCHAR)",
"role": "system"
},
{
"content": "Name the average goals conceded with draw bigger than 7 and goals scored more than 24",
"role": "user"
},
{
"content": "SELECT AVG(goals_conceded) FROM table_name_26 WHERE draw > 7 AND goals_scored > 24",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22165661_3 (conference VARCHAR, championship_game_opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the conference when Ferris State is the championship game opponent?",
"role": "user"
},
{
"content": "SELECT conference FROM table_22165661_3 WHERE championship_game_opponent = \"Ferris State\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (nfl_recap VARCHAR, kickoff VARCHAR)",
"role": "system"
},
{
"content": "Which NFL Recap had a Kickoff of 7:00pm edt?",
"role": "user"
},
{
"content": "SELECT nfl_recap FROM table_name_16 WHERE kickoff = \"7:00pm edt\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (losing_bonus VARCHAR, try_bonus VARCHAR, tries_for VARCHAR)",
"role": "system"
},
{
"content": "What was the losing bonus for the team with a try bonus of 3 and 47 tries for?",
"role": "user"
},
{
"content": "SELECT losing_bonus FROM table_name_12 WHERE try_bonus = \"3\" AND tries_for = \"47\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (game INTEGER, december VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest Game, when December is greater than 13, and when Score is \"5 - 0\"?",
"role": "user"
},
{
"content": "SELECT MIN(game) FROM table_name_22 WHERE december > 13 AND score = \"5 - 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_48 (year VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "with rank of 31 what is the year?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_48 WHERE rank = \"31\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1015914_24 (them_two__the_two_ VARCHAR, you_and_i VARCHAR)",
"role": "system"
},
{
"content": "What is them two (the two) when you and i is ngœbalngu?",
"role": "user"
},
{
"content": "SELECT them_two__the_two_ FROM table_1015914_24 WHERE you_and_i = \"ngœbalngu\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (points INTEGER, position INTEGER)",
"role": "system"
},
{
"content": "What is listed as the highest Points that's got a Position that's smaller than 1?",
"role": "user"
},
{
"content": "SELECT MAX(points) FROM table_name_64 WHERE position < 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_16403890_1 (institution VARCHAR, team_nickname VARCHAR)",
"role": "system"
},
{
"content": "Which school has the mascot of the Colonials?",
"role": "user"
},
{
"content": "SELECT institution FROM table_16403890_1 WHERE team_nickname = \"Colonials\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE railway (Location VARCHAR, Railway_ID VARCHAR); CREATE TABLE train (Name VARCHAR, Railway_ID VARCHAR)",
"role": "system"
},
{
"content": "Show the names of trains and locations of railways they are in.",
"role": "user"
},
{
"content": "SELECT T2.Name, T1.Location FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17356042_1 (directed_by VARCHAR, series__number VARCHAR)",
"role": "system"
},
{
"content": "Name who directed the episode for the series number 236",
"role": "user"
},
{
"content": "SELECT directed_by FROM table_17356042_1 WHERE series__number = 236",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27050732_7 (delegate VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": " Who represents district 41? ",
"role": "user"
},
{
"content": "SELECT delegate FROM table_27050732_7 WHERE district = \"41\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (draw INTEGER, points VARCHAR, language VARCHAR)",
"role": "system"
},
{
"content": "what is the highest draw when points is less than 11 and language is norwegian?",
"role": "user"
},
{
"content": "SELECT MAX(draw) FROM table_name_54 WHERE points < 11 AND language = \"norwegian\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (college_country_team VARCHAR, former_wnba_team VARCHAR)",
"role": "system"
},
{
"content": "What was the college team of the player whose former WNBA team was the Cleveland Rockers?",
"role": "user"
},
{
"content": "SELECT college_country_team FROM table_name_46 WHERE former_wnba_team = \"cleveland rockers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_89 (division VARCHAR, regular_season VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division?",
"role": "user"
},
{
"content": "SELECT COUNT(division) FROM table_name_89 WHERE regular_season = \"2nd, northeast\" AND year < 2008",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (series VARCHAR, f_laps VARCHAR)",
"role": "system"
},
{
"content": "Which series has 4 f/laps?",
"role": "user"
},
{
"content": "SELECT series FROM table_name_58 WHERE f_laps = \"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_1616608_2 (game_modes VARCHAR, pinyin VARCHAR)",
"role": "system"
},
{
"content": "What game modes are there when the pinyin is zhígǎn yī bǐ ?",
"role": "user"
},
{
"content": "SELECT game_modes FROM table_1616608_2 WHERE pinyin = \"Zhígǎn Yī Bǐ\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.