schema stringlengths 32 158 | question stringlengths 27 164 | answer stringlengths 27 207 |
|---|---|---|
CREATE TABLE table_name_55 (name VARCHAR, decile VARCHAR, roll VARCHAR) | What is the name with a Decile less than 10, and a Roll of 297? | SELECT name FROM table_name_55 WHERE decile < 10 AND roll = 297 |
CREATE TABLE table_name_56 (yards INTEGER, avg INTEGER) | Which has and average less than 3 and the lowest yards? | SELECT MIN(yards) FROM table_name_56 WHERE avg < 3 |
CREATE TABLE table_name_53 (goals INTEGER, venue VARCHAR) | What is the average number of goals that occurred in Hong Kong Stadium, Hong Kong? | SELECT AVG(goals) FROM table_name_53 WHERE venue = "hong kong stadium, hong kong" |
CREATE TABLE table_18600760_20 (ansi_code VARCHAR, latitude VARCHAR) | How many ansi codes are there for latitude 48.142938? | SELECT COUNT(ansi_code) FROM table_18600760_20 WHERE latitude = "48.142938" |
CREATE TABLE table_name_60 (game VARCHAR, location_attendance VARCHAR) | What game was located at the Los Angeles Memorial Sports Arena? | SELECT game FROM table_name_60 WHERE location_attendance = "los angeles memorial sports arena" |
CREATE TABLE table_name_9 (took_office INTEGER, deputy_prime_minister VARCHAR) | What year did deputy prime minister Mariano Rajoy Brey take office? | SELECT SUM(took_office) FROM table_name_9 WHERE deputy_prime_minister = "mariano rajoy brey" |
CREATE TABLE table_2226817_9 (title VARCHAR, no_in_series VARCHAR) | What is the name of episode 165? | SELECT title FROM table_2226817_9 WHERE no_in_series = 165 |
CREATE TABLE table_name_52 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, platelet_count VARCHAR, bleeding_time VARCHAR) | Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged | SELECT condition FROM table_name_52 WHERE platelet_count = "unaffected" AND bleeding_time = "unaffected" AND prothrombin_time = "prolonged" AND partial_thromboplastin_time = "prolonged" |
CREATE TABLE table_name_32 (final_four VARCHAR, win__percentage VARCHAR) | What is the Final Four with a win percentage of .750? | SELECT final_four FROM table_name_32 WHERE win__percentage = ".750" |
CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR) | What is Steve Lowery's Place? | SELECT place FROM table_name_78 WHERE player = "steve lowery" |
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR) | Show the names of customers who have at least 2 mailshots with outcome code 'Order'. | SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING COUNT(*) >= 2 |
CREATE TABLE event (name VARCHAR, YEAR VARCHAR) | List all the event names by year from the most recent to the oldest. | SELECT name FROM event ORDER BY YEAR DESC |
CREATE TABLE table_28146944_2 (title VARCHAR, no_in_series VARCHAR) | What's the title of the episode with series number 36? | SELECT title FROM table_28146944_2 WHERE no_in_series = 36 |
CREATE TABLE table_name_15 (song VARCHAR, artist VARCHAR) | Which song was by artist Gino Vannelli? | SELECT song FROM table_name_15 WHERE artist = "gino vannelli" |
CREATE TABLE table_name_4 (played INTEGER, points VARCHAR, lost VARCHAR, team VARCHAR) | Which Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5? | SELECT SUM(played) FROM table_name_4 WHERE lost > 4 AND team = "américa" AND points < 5 |
CREATE TABLE table_name_74 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | Tell me the time/retired for Laps of 42 and Grids of 4 | SELECT time_retired FROM table_name_74 WHERE laps = 42 AND grid = 4 |
CREATE TABLE table_23944006_4 (outcome VARCHAR, championship VARCHAR) | Name the outcome for zurich | SELECT outcome FROM table_23944006_4 WHERE championship = "Zurich" |
CREATE TABLE table_name_27 (name VARCHAR, authority VARCHAR, roll VARCHAR) | Which school has a state authority and a roll of 318? | SELECT name FROM table_name_27 WHERE authority = "state" AND roll = 318 |
CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR) | what is the lowest crowd at kardinia park | SELECT MIN(crowd) FROM table_name_50 WHERE venue = "kardinia park" |
CREATE TABLE table_name_38 (home_team VARCHAR, crowd INTEGER) | Which home team has a crowd that is bigger than 22,449? | SELECT home_team FROM table_name_38 WHERE crowd > 22 OFFSET 449 |
CREATE TABLE table_name_50 (overall INTEGER, round VARCHAR, college VARCHAR) | What is the sum of Overall, when Round is less than 24, and when College is North Carolina State? | SELECT SUM(overall) FROM table_name_50 WHERE round < 24 AND college = "north carolina state" |
CREATE TABLE table_10128185_2 (scotland VARCHAR, total VARCHAR) | What is the total number of votes if Scotland cast 35? | SELECT COUNT(scotland) FROM table_10128185_2 WHERE total = 35 |
CREATE TABLE table_name_14 (established VARCHAR, nickname VARCHAR) | What year was the team with the nickname pride established? | SELECT COUNT(established) FROM table_name_14 WHERE nickname = "pride" |
CREATE TABLE table_23995075_2 (teams_that_have_been_eliminated VARCHAR, teams_started VARCHAR) | How many teams eliminated when 11 teams started? | SELECT teams_that_have_been_eliminated FROM table_23995075_2 WHERE teams_started = "11" |
CREATE TABLE table_name_73 (points VARCHAR, class VARCHAR, rank VARCHAR) | How many points did ginger have when she was ranked 5th on a 350cc class bike? | SELECT COUNT(points) FROM table_name_73 WHERE class = "350cc" AND rank = "5th" |
CREATE TABLE table_22815568_6 (county VARCHAR, poverty_rate VARCHAR) | If the poverty rate is 12.9%, what is the county? | SELECT county FROM table_22815568_6 WHERE poverty_rate = "12.9%" |
CREATE TABLE table_name_5 (country VARCHAR, client VARCHAR) | What country did the client Agiba-agip work in? | SELECT country FROM table_name_5 WHERE client = "agiba-agip" |
CREATE TABLE table_25869317_1 (gdp__ppp__per_capita INTEGER) | What is the lowest GDP (ppp) per capita? | SELECT MIN(gdp__ppp__per_capita) FROM table_25869317_1 |
CREATE TABLE table_name_88 (crowd INTEGER, venue VARCHAR) | How many were in the crowd when there was a game at Junction Oval? | SELECT SUM(crowd) FROM table_name_88 WHERE venue = "junction oval" |
CREATE TABLE table_name_8 (_number___county VARCHAR, location VARCHAR) | What county is Fountain City? | SELECT _number___county FROM table_name_8 WHERE location = "fountain city" |
CREATE TABLE table_name_72 (date VARCHAR, crowd INTEGER) | Which Date has a Crowd smaller than 4,485? | SELECT date FROM table_name_72 WHERE crowd < 4 OFFSET 485 |
CREATE TABLE table_25438110_5 (road VARCHAR, county VARCHAR) | What road is associated with Carson Valley county? | SELECT road FROM table_25438110_5 WHERE county = "Carson Valley" |
CREATE TABLE table_name_80 (city VARCHAR, host VARCHAR) | Which city is the University of Montana located in? | SELECT city FROM table_name_80 WHERE host = "university of montana" |
CREATE TABLE Sportsinfo (gamesplayed INTEGER) | How many games are played for all students? | SELECT SUM(gamesplayed) FROM Sportsinfo |
CREATE TABLE table_name_72 (season INTEGER, apps VARCHAR, country VARCHAR, team VARCHAR) | In which season did Fc Pakhtakor Tashkent represent the country of Uzbekistan with more than 6 apps? | SELECT MAX(season) FROM table_name_72 WHERE country = "uzbekistan" AND team = "fc pakhtakor tashkent" AND apps > 6 |
CREATE TABLE table_name_36 (high_rebounds VARCHAR, date VARCHAR) | Who had the high rebounds on February 24? | SELECT high_rebounds FROM table_name_36 WHERE date = "february 24" |
CREATE TABLE table_name_53 (team VARCHAR, location_attendance VARCHAR, record VARCHAR) | Which team has a location attendance of Air Canada Centre 19,800 with a record of 41–33? | SELECT team FROM table_name_53 WHERE location_attendance = "air canada centre 19,800" AND record = "41–33" |
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER) | Name the least clock rate mhz | SELECT MIN(clock_rate__mhz_) FROM table_142573_1 |
CREATE TABLE table_name_65 (name_of_kingdom VARCHAR, capital VARCHAR) | Which kingdom has Suin as its capital? | SELECT name_of_kingdom FROM table_name_65 WHERE capital = "suin" |
CREATE TABLE table_27755603_10 (high_points VARCHAR, team VARCHAR) | What was the high points when the team was Washington? | SELECT high_points FROM table_27755603_10 WHERE team = "Washington" |
CREATE TABLE table_19149550_9 (bangladeshi_population INTEGER, rank VARCHAR) | How many Bangladeshi citizens are there in the borough ranked at number 7? | SELECT MIN(bangladeshi_population) FROM table_19149550_9 WHERE rank = 7 |
CREATE TABLE table_name_75 (winner VARCHAR, stage VARCHAR) | what is the winner of stage 3 | SELECT winner FROM table_name_75 WHERE stage = 3 |
CREATE TABLE table_name_10 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR) | What is the Area of the Allardville Parish with a Population smaller than 2,151? | SELECT SUM(area_km_2) FROM table_name_10 WHERE official_name = "allardville" AND population < 2 OFFSET 151 |
CREATE TABLE table_26200568_16 (losses INTEGER, club VARCHAR) | How many losses does Central Blues have? | SELECT MAX(losses) FROM table_26200568_16 WHERE club = "Central Blues" |
CREATE TABLE table_name_57 (role VARCHAR, genre VARCHAR, year VARCHAR) | What drama role does she play in 1973? | SELECT role FROM table_name_57 WHERE genre = "drama" AND year = 1973 |
CREATE TABLE table_name_90 (co_contestant__yaar_vs_pyaar_ VARCHAR, main_contestant VARCHAR) | Who is the co-contestant (yaar vs. Pyaar) with Vishal Singh as the main contestant? | SELECT co_contestant__yaar_vs_pyaar_ FROM table_name_90 WHERE main_contestant = "vishal singh" |
CREATE TABLE table_2467150_2 (model__list_ VARCHAR, processor VARCHAR, brand_name VARCHAR) | What is the value for model if processor is Kentsfield and brand name is Xeon? | SELECT model__list_ FROM table_2467150_2 WHERE processor = "Kentsfield" AND brand_name = "Xeon" |
CREATE TABLE table_1140103_6 (date VARCHAR, circuit VARCHAR) | What date has a solitudering circuit | SELECT date FROM table_1140103_6 WHERE circuit = "Solitudering" |
CREATE TABLE table_name_39 (time VARCHAR, opponent VARCHAR) | Which Time has an Opponent of shamil abdurahimov? | SELECT time FROM table_name_39 WHERE opponent = "shamil abdurahimov" |
CREATE TABLE table_name_84 (loss VARCHAR, coach VARCHAR, pts VARCHAR) | What is the number of losses that coach John Kowalski has with a PTS smaller than 9? | SELECT COUNT(loss) FROM table_name_84 WHERE coach = "john kowalski" AND pts < 9 |
CREATE TABLE table_14688744_2 (arrival VARCHAR, no VARCHAR) | what is the arrival time for no. 14? | SELECT arrival FROM table_14688744_2 WHERE no = 14 |
CREATE TABLE table_1277350_3 (thursday_guru__jupiter_ VARCHAR, wednesday_budha__mercury_ VARCHAR) | In language where Wednesday is বুধবার budhbar, what is Thursday? | SELECT thursday_guru__jupiter_ FROM table_1277350_3 WHERE wednesday_budha__mercury_ = "বুধবার Budhbar" |
CREATE TABLE table_2101431_1 (episode VARCHAR, run_time VARCHAR) | What episode had a run time of 24:18? | SELECT episode FROM table_2101431_1 WHERE run_time = "24:18" |
CREATE TABLE table_name_86 (tournament VARCHAR) | What is the tournament when 2010 is not held? | SELECT tournament FROM table_name_86 WHERE 2010 = "not held" |
CREATE TABLE table_14342592_5 (player VARCHAR, extra_points VARCHAR) | Which players have made a total of 12 extra points? | SELECT player FROM table_14342592_5 WHERE extra_points = 12 |
CREATE TABLE table_26385848_1 (main_language_s_ VARCHAR, year__ceremony_ VARCHAR) | In the year (ceremony) 1998 (71st), what are all the main languages? | SELECT main_language_s_ FROM table_26385848_1 WHERE year__ceremony_ = "1998 (71st)" |
CREATE TABLE table_name_50 (hdtv VARCHAR, television_service VARCHAR) | Does daystar television network provide HDTV? | SELECT hdtv FROM table_name_50 WHERE television_service = "daystar television network" |
CREATE TABLE table_name_55 (country VARCHAR, format VARCHAR) | What country that has LP as a format? | SELECT country FROM table_name_55 WHERE format = "lp" |
CREATE TABLE table_name_8 (bb_pop VARCHAR, riaa VARCHAR, year VARCHAR) | What is the BB Pop for the song with RIAA of G that was in a year earlier than 1961? | SELECT bb_pop FROM table_name_8 WHERE riaa = "g" AND year < 1961 |
CREATE TABLE table_name_65 (episode__number INTEGER, location VARCHAR, _number_in_season VARCHAR) | What is the average episode # located in Tanzania and whose # in season is larger than 5? | SELECT AVG(episode__number) FROM table_name_65 WHERE location = "tanzania" AND _number_in_season > 5 |
CREATE TABLE table_name_45 (day_3 VARCHAR, day_4 VARCHAR) | What is the day 3 when day 4 is fr.? | SELECT day_3 FROM table_name_45 WHERE day_4 = "fr." |
CREATE TABLE browser (id VARCHAR, name VARCHAR, market_share VARCHAR) | List the ids, names and market shares of all browsers. | SELECT id, name, market_share FROM browser |
CREATE TABLE table_name_55 (away_team VARCHAR, venue VARCHAR) | Which away team played at MCG? | SELECT away_team FROM table_name_55 WHERE venue = "mcg" |
CREATE TABLE table_name_58 (pick VARCHAR, player VARCHAR, nfl_club VARCHAR) | Which Pick has a Player of chuck bryant, and an NFL Club of san diego chargers? | SELECT pick FROM table_name_58 WHERE player = "chuck bryant" AND nfl_club = "san diego chargers" |
CREATE TABLE table_1342315_12 (district VARCHAR, party VARCHAR) | Which district has a Republican elected? | SELECT district FROM table_1342315_12 WHERE party = "Republican" |
CREATE TABLE shop (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR); CREATE TABLE happy_hour (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR) | Find the address and staff number of the shops that do not have any happy hour. | SELECT address, num_of_staff FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM happy_hour) |
CREATE TABLE table_17015_2 (pe̍h_ōe_jī VARCHAR, chinese VARCHAR) | Name the pe̍h-ōe-jī for 前金區 | SELECT pe̍h_ōe_jī FROM table_17015_2 WHERE chinese = "前金區" |
CREATE TABLE table_27906667_2 (legs_lost VARCHAR, high_checkout VARCHAR) | How many legs were lost when the high checkout was 101? | SELECT COUNT(legs_lost) FROM table_27906667_2 WHERE high_checkout = 101 |
CREATE TABLE table_26041144_10 (runs INTEGER) | What is the smallest number of runs? | SELECT MIN(runs) FROM table_26041144_10 |
CREATE TABLE table_15572443_1 (district VARCHAR, election_date VARCHAR) | Name the number of districts for december 1799 | SELECT COUNT(district) FROM table_15572443_1 WHERE election_date = "December 1799" |
CREATE TABLE table_name_60 (total INTEGER, to_par VARCHAR, country VARCHAR) | Can you tell me the average Total that has the To par smaller than 10, and the Country of south korea? | SELECT AVG(total) FROM table_name_60 WHERE to_par < 10 AND country = "south korea" |
CREATE TABLE table_11960610_10 (high_assists VARCHAR, high_points VARCHAR) | When gordon (27) had high points, what was the number of high assists? | SELECT COUNT(high_assists) FROM table_11960610_10 WHERE high_points = "Gordon (27)" |
CREATE TABLE votes (created INTEGER, state VARCHAR) | What is last date created of votes from the state 'CA'? | SELECT MAX(created) FROM votes WHERE state = 'CA' |
CREATE TABLE table_name_90 (engine_type VARCHAR, model VARCHAR) | What is the engine type with a model with base 2.4? | SELECT engine_type FROM table_name_90 WHERE model = "base 2.4" |
CREATE TABLE table_name_60 (venue VARCHAR, runs VARCHAR) | During runs 332, what was the venue? | SELECT venue FROM table_name_60 WHERE runs = "332" |
CREATE TABLE table_name_73 (results VARCHAR, institutional_authority VARCHAR) | Name the results for institutional authority of paf | SELECT results FROM table_name_73 WHERE institutional_authority = "paf" |
CREATE TABLE table_name_68 (goals INTEGER, leeds_career VARCHAR, appearances VARCHAR) | What is the average number of goals for a player who had a Leeds career from 1960–1964 and made fewer than 120 appearances? | SELECT AVG(goals) FROM table_name_68 WHERE leeds_career = "1960–1964" AND appearances < 120 |
CREATE TABLE table_2151643_3 (surface VARCHAR, year VARCHAR) | What was the surface for events held in 1983? | SELECT surface FROM table_2151643_3 WHERE year = 1983 |
CREATE TABLE table_11222744_3 (studio VARCHAR, catalog_number VARCHAR) | Who creates the catalog with the number "cal03 / 0091037137333"? | SELECT studio FROM table_11222744_3 WHERE catalog_number = "CAL03 / 0091037137333" |
CREATE TABLE table_16255245_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) | Name the film title for wohin und zurück - welcome in vienna | SELECT film_title_used_in_nomination FROM table_16255245_1 WHERE original_title = "Wohin und zurück - Welcome in Vienna" |
CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR) | who is the home team when the away team is rivercity rage? | SELECT home_team FROM table_name_91 WHERE away_team = "rivercity rage" |
CREATE TABLE table_name_70 (potential_prize_money VARCHAR, mole VARCHAR) | When the Mole was Petrina Edge, what was the potential prize money? | SELECT potential_prize_money FROM table_name_70 WHERE mole = "petrina edge" |
CREATE TABLE table_22962745_12 (league_finish VARCHAR, w VARCHAR) | Name the league finish for w being 11 | SELECT league_finish FROM table_22962745_12 WHERE w = 11 |
CREATE TABLE table_10797463_1 (village__slovenian_ VARCHAR, percent_of_slovenes_1991 VARCHAR) | What are the slovenian names of the villages that had 16.7% of slovenes in 1991? | SELECT village__slovenian_ FROM table_10797463_1 WHERE percent_of_slovenes_1991 = "16.7%" |
CREATE TABLE table_name_23 (losses INTEGER, goals_for INTEGER) | What is the average losses for 22 goals? | SELECT AVG(losses) FROM table_name_23 WHERE goals_for > 22 |
CREATE TABLE table_name_44 (drawn VARCHAR, lost VARCHAR, goal_difference VARCHAR) | How many times was the player drawn that had less than 12 losses and a goal difference of +20? | SELECT drawn FROM table_name_44 WHERE lost < 12 AND goal_difference = "+20" |
CREATE TABLE table_26202847_6 (surface VARCHAR, score_in_the_final VARCHAR) | The score in the final is 2–6, 6–2, 6–0, on what surface? | SELECT surface FROM table_26202847_6 WHERE score_in_the_final = "2–6, 6–2, 6–0" |
CREATE TABLE table_name_11 (particle VARCHAR, rest_mass_mev___c_2 VARCHAR) | Which Particle has a Rest mass MeV/c 2 of 1383.7±1.0? | SELECT particle FROM table_name_11 WHERE rest_mass_mev___c_2 = "1383.7±1.0" |
CREATE TABLE table_28137918_5 (births INTEGER, conversions VARCHAR) | Name the least births for conversion being 26,333 | SELECT MIN(births) FROM table_28137918_5 WHERE conversions = "26,333" |
CREATE TABLE table_name_50 (population__2010_11_01_ VARCHAR, name VARCHAR) | What is the population as of 11-01-2010 for Bayan County? | SELECT population__2010_11_01_ FROM table_name_50 WHERE name = "bayan county" |
CREATE TABLE table_name_49 (result VARCHAR, opponent VARCHAR) | What was the result of the game against the Los Angeles Dons? | SELECT result FROM table_name_49 WHERE opponent = "los angeles dons" |
CREATE TABLE table_name_64 (launched VARCHAR, ship VARCHAR) | What launch has a Ship of fearless? | SELECT launched FROM table_name_64 WHERE ship = "fearless" |
CREATE TABLE table_name_91 (calendar VARCHAR, image_attachment VARCHAR, wysiwyg_editor VARCHAR, unread_message_tracking VARCHAR) | Which Calendar has a WYSIWYG Editor of no, and an Unread message tracking of session, and an Image attachment of no? | SELECT calendar FROM table_name_91 WHERE wysiwyg_editor = "no" AND unread_message_tracking = "session" AND image_attachment = "no" |
CREATE TABLE table_name_26 (character VARCHAR, category VARCHAR) | What character won the best dramatic performance award? | SELECT character FROM table_name_26 WHERE category = "best dramatic performance" |
CREATE TABLE table_14242137_11 (regionalliga_nord VARCHAR, regionalliga_süd VARCHAR) | what's the regionalliga nord with regionalliga süd being 1. fc nuremberg spvgg greuther fürth | SELECT regionalliga_nord FROM table_14242137_11 WHERE regionalliga_süd = "1. FC Nuremberg SpVgg Greuther Fürth" |
CREATE TABLE table_287659_2 (state_name VARCHAR, regional_page__number VARCHAR) | What states have a regional page # of 1, 5-7, 9-11, 13-15? | SELECT state_name FROM table_287659_2 WHERE regional_page__number = "1, 5-7, 9-11, 13-15" |
CREATE TABLE table_name_6 (date VARCHAR, week VARCHAR, attendance VARCHAR) | Which date has a Week larger than 5, and an Attendance of 54,803? | SELECT date FROM table_name_6 WHERE week > 5 AND attendance = "54,803" |
CREATE TABLE table_name_59 (sample_size VARCHAR, poll_source VARCHAR, margin_of_error VARCHAR) | What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5? | SELECT COUNT(sample_size) FROM table_name_59 WHERE poll_source = "rasmussen reports" AND margin_of_error > 4.5 |
CREATE TABLE table_name_79 (outcome VARCHAR, opponent VARCHAR) | What outcome has yvonne vermaak as the opponent? | SELECT outcome FROM table_name_79 WHERE opponent = "yvonne vermaak" |
CREATE TABLE table_name_27 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR, long VARCHAR) | How much Loss has a Gain smaller than 1571, and a Long smaller than 47, and an Avg/G of 36.4? | SELECT COUNT(loss) FROM table_name_27 WHERE gain < 1571 AND long < 47 AND avg_g = 36.4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.