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_35 (thickness VARCHAR, year_of_issue INTEGER)",
"role": "system"
},
{
"content": "Which Thickness has a Year of Issue smaller than 1983?",
"role": "user"
},
{
"content": "SELECT thickness FROM table_name_35 WHERE year_of_issue < 1983",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (rank INTEGER, country VARCHAR, losing_semi__finalist VARCHAR)",
"role": "system"
},
{
"content": "Which Rank has a Country of costa rica, and a Losing Semi- finalist larger than 1?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_78 WHERE country = \"costa rica\" AND losing_semi__finalist > 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 customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)",
"role": "system"
},
{
"content": "Find the name of customers who have more than one loan.",
"role": "user"
},
{
"content": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 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_93 (gold INTEGER, nation VARCHAR)",
"role": "system"
},
{
"content": "How much gold received by nation of uzbekistan (uzb)?",
"role": "user"
},
{
"content": "SELECT MAX(gold) FROM table_name_93 WHERE nation = \"uzbekistan (uzb)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (year VARCHAR, events_won_by_kclMS INTEGER)",
"role": "system"
},
{
"content": "How many years were the events won by KCLMS less than 7?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_8 WHERE events_won_by_kclMS < 7",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22815568_6 (county VARCHAR, poverty_rate VARCHAR)",
"role": "system"
},
{
"content": "If the poverty rate is 12.9%, what is the county?",
"role": "user"
},
{
"content": "SELECT county FROM table_22815568_6 WHERE poverty_rate = \"12.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_14 (rank VARCHAR, goals VARCHAR, scorer VARCHAR)",
"role": "system"
},
{
"content": "Which Rank has Goals larger than 4, and a Scorer of oh seok-jae?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_14 WHERE goals > 4 AND scorer = \"oh seok-jae\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16331025_2 (dates__mdy_ VARCHAR, position VARCHAR, sellout___percentage_ VARCHAR)",
"role": "system"
},
{
"content": "Who many dates are in position 9 and the sellout is 81%?",
"role": "user"
},
{
"content": "SELECT COUNT(dates__mdy_) FROM table_16331025_2 WHERE position = 9 AND sellout___percentage_ = \"81%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14649522_1 (nfl_team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which team does Robert Brooks play with?",
"role": "user"
},
{
"content": "SELECT nfl_team FROM table_14649522_1 WHERE player = \"Robert Brooks\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (points INTEGER, chassis VARCHAR)",
"role": "system"
},
{
"content": "What is the low score for the jaguar r3 chasis?",
"role": "user"
},
{
"content": "SELECT MIN(points) FROM table_name_90 WHERE chassis = \"jaguar r3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (thumb_stick VARCHAR, wrist_pad VARCHAR, supplier VARCHAR)",
"role": "system"
},
{
"content": "Which Thumb stick has a Wrist pad of no, and a Supplier of sharkoon?",
"role": "user"
},
{
"content": "SELECT thumb_stick FROM table_name_76 WHERE wrist_pad = \"no\" AND supplier = \"sharkoon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (score VARCHAR, partner VARCHAR)",
"role": "system"
},
{
"content": "What was the score when Mark parterned with lorenzo manta?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_19 WHERE partner = \"lorenzo manta\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?",
"role": "user"
},
{
"content": "SELECT COUNT(silver) FROM table_name_65 WHERE gold > 0 AND rank > 1 AND total < 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_71 (year_of_release INTEGER, title VARCHAR)",
"role": "system"
},
{
"content": "What was the latest year of release for the greatest hits title?",
"role": "user"
},
{
"content": "SELECT MAX(year_of_release) FROM table_name_71 WHERE title = \"greatest hits\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15416002_1 (saffir_simpson_category VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the Saffir-Simpson category for the hurricane named Bonnie?",
"role": "user"
},
{
"content": "SELECT saffir_simpson_category FROM table_15416002_1 WHERE name = \"Bonnie\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_53 (attendance VARCHAR, game_site VARCHAR)",
"role": "system"
},
{
"content": "How many fans attended the game at Bye?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_53 WHERE game_site = \"bye\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_3005450_1 (station VARCHAR, metlink_code VARCHAR)",
"role": "system"
},
{
"content": "what is the name of the station where the metlink code is mata?",
"role": "user"
},
{
"content": "SELECT station FROM table_3005450_1 WHERE metlink_code = \"MATA\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13026799_3 (starts VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the number of starts for 1987?",
"role": "user"
},
{
"content": "SELECT COUNT(starts) FROM table_13026799_3 WHERE year = 1987",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (visitor VARCHAR, home VARCHAR)",
"role": "system"
},
{
"content": "Name the visitor for home of ny rangers",
"role": "user"
},
{
"content": "SELECT visitor FROM table_name_29 WHERE home = \"ny rangers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR); CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR)",
"role": "system"
},
{
"content": "Show the distinct apartment numbers of the apartments that have bookings with status code \"Confirmed\".",
"role": "user"
},
{
"content": "SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Confirmed\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (bronze VARCHAR, rank VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What is the sum number of bronzes when the rank is less than 2 and the gold is less than 1?",
"role": "user"
},
{
"content": "SELECT COUNT(bronze) FROM table_name_86 WHERE rank < 2 AND gold < 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_2 (result VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the result of the game at kyiv, ukraine?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_2 WHERE venue = \"kyiv, ukraine\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (category VARCHAR, result VARCHAR, lost_to VARCHAR)",
"role": "system"
},
{
"content": "which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?",
"role": "user"
},
{
"content": "SELECT category FROM table_name_40 WHERE result = \"nominated\" AND lost_to = \"jennifer westfeldt ( kissing jessica stein )\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (time VARCHAR, name VARCHAR, lane VARCHAR, heat VARCHAR)",
"role": "system"
},
{
"content": "What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_19 WHERE lane < 6 AND heat < 4 AND name = \"joanne malar\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_74 (to_par VARCHAR, money___£__ VARCHAR)",
"role": "system"
},
{
"content": "What is the to par for the player with winnings of 49,500?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_74 WHERE money___£__ = \"49,500\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20193855_2 (author_s__or_editor_s_ VARCHAR, book_title VARCHAR)",
"role": "system"
},
{
"content": "How many authors or editors are there for the book title elf child?",
"role": "user"
},
{
"content": "SELECT COUNT(author_s__or_editor_s_) FROM table_20193855_2 WHERE book_title = \"Elf Child\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (home_team VARCHAR)",
"role": "system"
},
{
"content": "How many points did the home team Essendon score?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_4 WHERE home_team = \"essendon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19534677_1 (creators VARCHAR, volume_title VARCHAR)",
"role": "system"
},
{
"content": "Name the umbr of creators for flash of two worlds",
"role": "user"
},
{
"content": "SELECT COUNT(creators) FROM table_19534677_1 WHERE volume_title = \"Flash of Two Worlds\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (power_rpm VARCHAR, model_engine VARCHAR)",
"role": "system"
},
{
"content": "Name the power for 1.8 duratorq",
"role": "user"
},
{
"content": "SELECT power_rpm FROM table_name_91 WHERE model_engine = \"1.8 duratorq\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (team VARCHAR, run_1 VARCHAR)",
"role": "system"
},
{
"content": "Which team has run 1 of 1:17.44?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_36 WHERE run_1 = \"1:17.44\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27755603_10 (high_points VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What was the high points when the team was Washington?",
"role": "user"
},
{
"content": "SELECT high_points FROM table_27755603_10 WHERE team = \"Washington\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (latest_version VARCHAR, architecture VARCHAR, release_date VARCHAR)",
"role": "system"
},
{
"content": "Which of the Latest version had a 16-bit Architecture and was released on Release date 1985-11-20?",
"role": "user"
},
{
"content": "SELECT latest_version FROM table_name_29 WHERE architecture = \"16-bit\" AND release_date = \"1985-11-20\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (attendance INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What was the highest attendance on November 12, 1989?",
"role": "user"
},
{
"content": "SELECT MAX(attendance) FROM table_name_80 WHERE date = \"november 12, 1989\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (district VARCHAR, iucn VARCHAR, est VARCHAR)",
"role": "system"
},
{
"content": "Which district has an IUCN of iii and was established in 1998?",
"role": "user"
},
{
"content": "SELECT district FROM table_name_44 WHERE iucn = \"iii\" AND est = 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_23 (crowd INTEGER, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the total crowd count for the venue Princes Park?",
"role": "user"
},
{
"content": "SELECT SUM(crowd) FROM table_name_23 WHERE venue = \"princes 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_54 (total INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2?",
"role": "user"
},
{
"content": "SELECT MIN(total) FROM table_name_54 WHERE rank > 2 AND bronze = 1 AND silver > 0 AND gold < 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_72 (name VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR)",
"role": "system"
},
{
"content": "What player had a transfer window of winter, and free as the transfer fee?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_72 WHERE transfer_window = \"winter\" AND transfer_fee = \"free\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (since_beginning_of_big_12 VARCHAR, last_5_meetings VARCHAR, last_10_meetings VARCHAR, at_neutral_site VARCHAR)",
"role": "system"
},
{
"content": "what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2?",
"role": "user"
},
{
"content": "SELECT since_beginning_of_big_12 FROM table_name_28 WHERE last_10_meetings = \"ou, 7-3\" AND at_neutral_site = \"ou, 2-1\" AND last_5_meetings = \"bu, 3-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_1733457_1 (kerry_number VARCHAR, others_number VARCHAR)",
"role": "system"
},
{
"content": "Name the kerry # for others# is 44",
"role": "user"
},
{
"content": "SELECT kerry_number FROM table_1733457_1 WHERE others_number = 44",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (game INTEGER, score VARCHAR)",
"role": "system"
},
{
"content": "What Game had a Score of 129–105?",
"role": "user"
},
{
"content": "SELECT MIN(game) FROM table_name_13 WHERE score = \"129–105\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Lessons (lesson_status_code VARCHAR)",
"role": "system"
},
{
"content": "How many lessons were in cancelled state?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM Lessons WHERE lesson_status_code = \"Cancelled\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28498999_3 (after VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the after for the player kevin streelman?",
"role": "user"
},
{
"content": "SELECT after FROM table_28498999_3 WHERE player = \"Kevin Streelman\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (river_mile INTEGER, pool_length__miles_ VARCHAR, lock_lift_drop__in_feet_ VARCHAR)",
"role": "system"
},
{
"content": "What is the highest River Mile that has a pool length of 42.2 miles or a lock/lift drop of 21 feet?",
"role": "user"
},
{
"content": "SELECT MAX(river_mile) FROM table_name_71 WHERE pool_length__miles_ = \"42.2\" AND lock_lift_drop__in_feet_ = \"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_171361_1 (population VARCHAR, area_km_2 VARCHAR)",
"role": "system"
},
{
"content": "How many population values are listed for the community with an area of 10.25 sq.km.?",
"role": "user"
},
{
"content": "SELECT COUNT(population) FROM table_171361_1 WHERE area_km_2 = \"10.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 Person (name VARCHAR, age INTEGER); CREATE TABLE person (name VARCHAR, age INTEGER)",
"role": "system"
},
{
"content": "Who is the oldest person?",
"role": "user"
},
{
"content": "SELECT name FROM Person WHERE age = (SELECT MAX(age) FROM person)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (reason_for_termination VARCHAR, appointed_by VARCHAR)",
"role": "system"
},
{
"content": "Which Reason for termination has Appointed by of eisenhower category:articles with hcards?",
"role": "user"
},
{
"content": "SELECT reason_for_termination FROM table_name_14 WHERE appointed_by = \"eisenhower category:articles with hcards\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (name VARCHAR, direction VARCHAR, length__km_ VARCHAR)",
"role": "system"
},
{
"content": "What line is 24.7 km and head towards Toyohashi East?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_36 WHERE direction = \"toyohashi east\" AND length__km_ = 24.7",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (origin VARCHAR, final_destination VARCHAR)",
"role": "system"
},
{
"content": "What is the origin of the one whose final destination is Brandholmen?",
"role": "user"
},
{
"content": "SELECT origin FROM table_name_15 WHERE final_destination = \"brandholmen\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (bike__40km_ VARCHAR, swim__15km_ VARCHAR)",
"role": "system"
},
{
"content": "What is the time for the bike (40km) when the swim (1.5km) is 19:56?",
"role": "user"
},
{
"content": "SELECT bike__40km_ FROM table_name_38 WHERE swim__15km_ = \"19:56\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (purse___us$__ VARCHAR, dist VARCHAR, winning_horse VARCHAR)",
"role": "system"
},
{
"content": "How much money did Crafty Bear wins with a dist of 1 mile?",
"role": "user"
},
{
"content": "SELECT purse___us$__ FROM table_name_30 WHERE dist = \"1 mile\" AND winning_horse = \"crafty bear\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23286722_1 (series__number INTEGER, written_by VARCHAR)",
"role": "system"
},
{
"content": "Name least series number for writers david e. kelley & jill goldsmith",
"role": "user"
},
{
"content": "SELECT MIN(series__number) FROM table_23286722_1 WHERE written_by = \"David E. Kelley & Jill Goldsmith\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (name VARCHAR, role VARCHAR, period VARCHAR)",
"role": "system"
},
{
"content": "What name has the role of midfielder for 1999-2003?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_76 WHERE role = \"midfielder\" AND period = \"1999-2003\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (away_captain VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Who was the away captain at Waca Ground?",
"role": "user"
},
{
"content": "SELECT away_captain FROM table_name_60 WHERE venue = \"waca ground\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (frequency_mhz INTEGER, city_of_license VARCHAR)",
"role": "system"
},
{
"content": "What is the average Frequency MHz that is on farwell, texas?",
"role": "user"
},
{
"content": "SELECT AVG(frequency_mhz) FROM table_name_72 WHERE city_of_license = \"farwell, texas\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (country VARCHAR, finish VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "From what Country is T2 Finish Player Gary Player?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_60 WHERE finish = \"t2\" AND player = \"gary player\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (player VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is Player, when Score is \"66-74-76=216\"?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_48 WHERE score = 66 - 74 - 76 = 216",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18600760_15 (water__sqmi_ VARCHAR, county VARCHAR, geo_id VARCHAR)",
"role": "system"
},
{
"content": "How many square miles of water is in Ramsey County with a geo id larger than 3807159460.0?",
"role": "user"
},
{
"content": "SELECT water__sqmi_ FROM table_18600760_15 WHERE county = \"Ramsey\" AND geo_id > 3807159460.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_54 (captain VARCHAR, manufacturer VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "Which Manchester United captain is sponsored by Nike?",
"role": "user"
},
{
"content": "SELECT captain FROM table_name_54 WHERE manufacturer = \"nike\" AND club = \"manchester united\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_238124_1 (prothrombin_time VARCHAR, condition VARCHAR)",
"role": "system"
},
{
"content": "What is the prothrombin time of von willebrand disease? ",
"role": "user"
},
{
"content": "SELECT COUNT(prothrombin_time) FROM table_238124_1 WHERE condition = \"Von Willebrand disease\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (role VARCHAR, broadcaster VARCHAR)",
"role": "system"
},
{
"content": "What was the role for Challenge TV?",
"role": "user"
},
{
"content": "SELECT role FROM table_name_55 WHERE broadcaster = \"challenge tv\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (hometown VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is Hasan Shah's hometown?",
"role": "user"
},
{
"content": "SELECT hometown FROM table_name_40 WHERE name = \"hasan shah\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (manufacturer VARCHAR, engine_make_capacity VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Who manufactured the car with the jawa 249cc engine that was made in the years 1956-1963?",
"role": "user"
},
{
"content": "SELECT manufacturer FROM table_name_58 WHERE engine_make_capacity = \"jawa 249cc\" AND year = \"1956-1963\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25557556_5 (number_of_dances INTEGER, competition_finish VARCHAR)",
"role": "system"
},
{
"content": "What was the number of dances for the competition finish of 3?",
"role": "user"
},
{
"content": "SELECT MAX(number_of_dances) FROM table_25557556_5 WHERE competition_finish = 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_44 (nationality VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What nationality was the round 6 draft pick?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_name_44 WHERE round = 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_22 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What was the 2011 Wimbledon result?",
"role": "user"
},
{
"content": "SELECT 2011 FROM table_name_22 WHERE tournament = \"wimbledon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_42 (COUNT VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "How many events did clay win?",
"role": "user"
},
{
"content": "SELECT NOT COUNT AS event FROM table_name_42 WHERE winner = \"clay\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26638600_3 (lites_2_race_one_winning_team VARCHAR, lites_1_race_two_winning_team VARCHAR)",
"role": "system"
},
{
"content": "How many different circuits had Gary Gibson has the Lites 1 race two winning team?",
"role": "user"
},
{
"content": "SELECT COUNT(lites_2_race_one_winning_team) FROM table_26638600_3 WHERE lites_1_race_two_winning_team = \"Gary Gibson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (opponent VARCHAR, score VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent of the game that 31,293 people attended that had a final score of 9 - 6.",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_4 WHERE score = \"9 - 6\" AND attendance > 31 OFFSET 293",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (prominence__m_ INTEGER, col__m_ INTEGER)",
"role": "system"
},
{
"content": "Count the Prominence (m) of Col (m) smaller than 0?",
"role": "user"
},
{
"content": "SELECT AVG(prominence__m_) FROM table_name_9 WHERE col__m_ < 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_85 (round INTEGER, time VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of Round that has a Time of 6:04?",
"role": "user"
},
{
"content": "SELECT SUM(round) FROM table_name_85 WHERE time = \"6:04\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (player VARCHAR, span VARCHAR)",
"role": "system"
},
{
"content": "What is the player with a Span of 1998-2009?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_8 WHERE span = \"1998-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_name_9 (engine_code VARCHAR, model VARCHAR)",
"role": "system"
},
{
"content": "What is the engine code for the model xdrive35i?",
"role": "user"
},
{
"content": "SELECT engine_code FROM table_name_9 WHERE model = \"xdrive35i\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (result VARCHAR, year VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "What is the result of the World Race Walking Cup tournament played before the year 2010?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_20 WHERE year > 2010 AND tournament = \"world race walking cup\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (release_date VARCHAR, director VARCHAR, production_num VARCHAR)",
"role": "system"
},
{
"content": "Which Release date has a Director of tom palmer, and a Production Num larger than 5956?",
"role": "user"
},
{
"content": "SELECT release_date FROM table_name_92 WHERE director = \"tom palmer\" AND production_num > 5956",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (occupation VARCHAR, hometown VARCHAR)",
"role": "system"
},
{
"content": "What is listed under occupation for someone from Santa Monica, California?",
"role": "user"
},
{
"content": "SELECT occupation FROM table_name_71 WHERE hometown = \"santa monica, california\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (bask VARCHAR, indoor_track VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "What is the basketball status for Valparaiso who has an indoor track status of yes?",
"role": "user"
},
{
"content": "SELECT bask FROM table_name_69 WHERE indoor_track = \"yes\" AND school = \"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_31 (overs VARCHAR, ground VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "How many overs occurred at Waca Ground against Queensland?",
"role": "user"
},
{
"content": "SELECT overs FROM table_name_31 WHERE ground = \"waca ground\" AND opponent = \"queensland\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (total INTEGER, free VARCHAR, technical VARCHAR)",
"role": "system"
},
{
"content": "What is the total for the person with free of 47.667, and technical less than 47.417?",
"role": "user"
},
{
"content": "SELECT SUM(total) FROM table_name_69 WHERE free = 47.667 AND technical < 47.417",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (date VARCHAR, round INTEGER)",
"role": "system"
},
{
"content": "Which date has a round more than 9?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_85 WHERE round > 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_71 (games VARCHAR, marks VARCHAR)",
"role": "system"
},
{
"content": "Name the games with marks of 21",
"role": "user"
},
{
"content": "SELECT games FROM table_name_71 WHERE marks = \"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_2 (name VARCHAR, since VARCHAR, ends VARCHAR, nat VARCHAR)",
"role": "system"
},
{
"content": "Which Name has Ends of 30 june 2010, and a Nation of eng, and Since larger than 2007?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_2 WHERE ends = \"30 june 2010\" AND nat = \"eng\" AND since > 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_1601792_3 (genre VARCHAR, station VARCHAR)",
"role": "system"
},
{
"content": "What is the genre for the hot fm station?",
"role": "user"
},
{
"content": "SELECT genre FROM table_1601792_3 WHERE station = \"Hot FM\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (opposition VARCHAR, stadium VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Who's the opposition at westpac stadium when the attendance is 31,853?",
"role": "user"
},
{
"content": "SELECT opposition FROM table_name_56 WHERE stadium = \"westpac stadium\" AND attendance = \"31,853\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_98 (f_laps VARCHAR, final_placing VARCHAR, podiums VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?",
"role": "user"
},
{
"content": "SELECT f_laps FROM table_name_98 WHERE podiums = \"1\" AND season = 2000 AND final_placing = \"nc\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (Id VARCHAR)",
"role": "system"
},
{
"content": "Which tournament in 2012 had a 2007 and 2011 finishes of \"A\"?",
"role": "user"
},
{
"content": "SELECT 2012 FROM table_name_91 WHERE 2007 = \"a\" AND 2011 = \"a\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19704392_1 (modified_speed__6th_gear_ INTEGER, standard_speed__6th_gear_ VARCHAR)",
"role": "system"
},
{
"content": "when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98",
"role": "user"
},
{
"content": "SELECT MAX(modified_speed__6th_gear_) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = \"98\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (grid VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "What grid for denny hulme?",
"role": "user"
},
{
"content": "SELECT grid FROM table_name_12 WHERE driver = \"denny hulme\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (rank INTEGER, silver INTEGER)",
"role": "system"
},
{
"content": "What is the highest rank of a nation with fewer than 0 silver medals?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_43 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_73 (tournament VARCHAR, career_sr VARCHAR)",
"role": "system"
},
{
"content": "What is Tournament, when Career SR is \"ATP Masters Series\"?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_73 WHERE career_sr = \"atp masters series\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE customers (payment_method VARCHAR)",
"role": "system"
},
{
"content": "Which payment method is used by most customers?",
"role": "user"
},
{
"content": "SELECT payment_method FROM customers GROUP BY payment_method 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_69 (Id VARCHAR)",
"role": "system"
},
{
"content": "Tell me the 2008 of 2001 olympic games",
"role": "user"
},
{
"content": "SELECT 2008 FROM table_name_69 WHERE 2011 = \"olympic games\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (type VARCHAR, builder VARCHAR, number VARCHAR)",
"role": "system"
},
{
"content": "Which Type has a Builder of avonside engine company, and a Number of 9?",
"role": "user"
},
{
"content": "SELECT type FROM table_name_55 WHERE builder = \"avonside engine company\" AND number = 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_28 (scored VARCHAR, position INTEGER)",
"role": "system"
},
{
"content": "Name the Scored which has a Position larger than 6?",
"role": "user"
},
{
"content": "SELECT COUNT(scored) FROM table_name_28 WHERE position > 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_84 (company VARCHAR, number VARCHAR, price VARCHAR)",
"role": "system"
},
{
"content": "What company is numbered larger than 5 and priced at $389M?",
"role": "user"
},
{
"content": "SELECT company FROM table_name_84 WHERE number > 5 AND price = \"$389m\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (year INTEGER, opponent VARCHAR)",
"role": "system"
},
{
"content": "Name the average year for manly-warringah sea eagles",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_13 WHERE opponent = \"manly-warringah sea eagles\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (region VARCHAR, _percentage_growth VARCHAR)",
"role": "system"
},
{
"content": "Which Region that has a growth of −3.6%?",
"role": "user"
},
{
"content": "SELECT region FROM table_name_24 WHERE _percentage_growth = \"−3.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_36 (inhabitants INTEGER, election VARCHAR, party VARCHAR, municipality VARCHAR)",
"role": "system"
},
{
"content": "Which Inhabitants has a Party of south tyrolean people's party, a Municipality of bruneck, and an Election larger than 2010?",
"role": "user"
},
{
"content": "SELECT AVG(inhabitants) FROM table_name_36 WHERE party = \"south tyrolean people's party\" AND municipality = \"bruneck\" AND election > 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_68 (model VARCHAR, year VARCHAR, fuel_or_propulsion VARCHAR, manufacturer VARCHAR)",
"role": "system"
},
{
"content": "Tell me the model with fuel or propulsion of diesel and orion manufacturer in 2005",
"role": "user"
},
{
"content": "SELECT model FROM table_name_68 WHERE fuel_or_propulsion = \"diesel\" AND manufacturer = \"orion\" AND year = 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_90 (language VARCHAR, role VARCHAR)",
"role": "system"
},
{
"content": "What language is the film with a character named Annabelle?",
"role": "user"
},
{
"content": "SELECT language FROM table_name_90 WHERE role = \"annabelle\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (tournament VARCHAR)",
"role": "system"
},
{
"content": "Name the tournament for 2006 of a, 1996 of 1r and 2004 of 1r",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_68 WHERE 2006 = \"a\" AND 1996 = \"1r\" AND 2004 = \"1r\"",
"role": "assistant"
}
] |
Subsets and Splits