answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT venue FROM table_name_93 WHERE founded > 1967 AND league = "north american soccer league" | Which venue was founded after 1967 and had the league North American Soccer League? | CREATE TABLE table_name_93 (venue VARCHAR, founded VARCHAR, league VARCHAR) |
SELECT compression_ratio FROM table_name_57 WHERE dx_10_name = "(none)" AND fourcc = "dxt4" | Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4? | CREATE TABLE table_name_57 (compression_ratio VARCHAR, dx_10_name VARCHAR, fourcc VARCHAR) |
SELECT constructor FROM table_name_33 WHERE laps > 72 AND driver = "eddie irvine" | who is the constructor when the laps is more than 72 and the driver is eddie irvine? | CREATE TABLE table_name_33 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) |
SELECT COUNT(league_cup_apps) FROM table_name_15 WHERE league_goals < 0 | What's the total number of league cup apps when the league goals were less than 0? | CREATE TABLE table_name_15 (league_cup_apps VARCHAR, league_goals INTEGER) |
SELECT nation FROM table_name_77 WHERE gold = 1 AND bronze > 0 | what is the nation when the gold is 1 and bronze is larger than 0? | CREATE TABLE table_name_77 (nation VARCHAR, gold VARCHAR, bronze VARCHAR) |
SELECT stadium FROM table_14102379_4 WHERE record = "1–1" | what's the stadium with record being 1–1 | CREATE TABLE table_14102379_4 (stadium VARCHAR, record VARCHAR) |
SELECT audience FROM table_name_74 WHERE title = "mi amigo el monstruo" | What was the audience for Mi Amigo el Monstruo? | CREATE TABLE table_name_74 (audience VARCHAR, title VARCHAR) |
SELECT band FROM table_name_99 WHERE ratio = "13/9" | Which Band has a Ratio of 13/9? | CREATE TABLE table_name_99 (band VARCHAR, ratio VARCHAR) |
SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas" | how many mean elevation with lowest point being gulf of mexico and state being texas | CREATE TABLE table_1416612_1 (mean_elevation VARCHAR, lowest_point VARCHAR, state VARCHAR) |
SELECT MAX(erp_w) FROM table_name_94 WHERE call_sign = "w284av" | What is the highest ERP W of the translator with a call sign of w284av? | CREATE TABLE table_name_94 (erp_w INTEGER, call_sign VARCHAR) |
SELECT COUNT(peletier) FROM table_260938_1 WHERE shortscale_comparison = "Billion" | Name the total number of peletier for shortscale comparison billion | CREATE TABLE table_260938_1 (peletier VARCHAR, shortscale_comparison VARCHAR) |
SELECT Date FROM debate WHERE Num_of_Audience > 150 | List the dates of debates with number of audience bigger than 150 | CREATE TABLE debate (Date VARCHAR, Num_of_Audience INTEGER) |
SELECT visitor FROM table_name_5 WHERE date = "april 22" | On the date of April 22, which city was a visitor? | CREATE TABLE table_name_5 (visitor VARCHAR, date VARCHAR) |
SELECT date FROM table_name_91 WHERE country = "uk" AND format = "cd" AND catalog = "edcd 227" | What is the Date when the Country shows uk, the Format is cd, and the Catalog of edcd 227? | CREATE TABLE table_name_91 (date VARCHAR, catalog VARCHAR, country VARCHAR, format VARCHAR) |
SELECT points_difference FROM table_name_45 WHERE lost > 2 AND points > 1 | What is the difference associated with more than 2 losses and more than 1 point? | CREATE TABLE table_name_45 (points_difference VARCHAR, lost VARCHAR, points VARCHAR) |
SELECT museum AS city FROM table_name_28 WHERE discoverer = "jane solem" | What is the city of the Museum that houses the specimen discovered by Jane Solem? | CREATE TABLE table_name_28 (museum VARCHAR, discoverer VARCHAR) |
SELECT AVG(attendance) FROM table_name_40 WHERE date = "april 9" | on april 9 what was the attendance? | CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR) |
SELECT COUNT(losing_bonus) FROM table_13399573_3 WHERE tries_for = "68" | How many numbers were listed under losing bonus when there were 68 tries for? | CREATE TABLE table_13399573_3 (losing_bonus VARCHAR, tries_for VARCHAR) |
SELECT max_mach FROM table_221315_3 WHERE max_speed__mph_ = 3887 | What was the max mach when the maximum speed was 3887? | CREATE TABLE table_221315_3 (max_mach VARCHAR, max_speed__mph_ VARCHAR) |
SELECT order_id FROM shipments WHERE shipment_tracking_number = "3452" | Find the id of the order whose shipment tracking number is "3452". | CREATE TABLE shipments (order_id VARCHAR, shipment_tracking_number VARCHAR) |
SELECT MAX(goal_ratio) FROM table_name_73 WHERE goals < 0 | What is the largest goal ratio with Goals smaller than 0? | CREATE TABLE table_name_73 (goal_ratio INTEGER, goals INTEGER) |
SELECT player FROM table_name_65 WHERE position = "g" AND round < 9 | Who has a round less than 9 and a position of G? | CREATE TABLE table_name_65 (player VARCHAR, position VARCHAR, round VARCHAR) |
SELECT MIN(league) AS Cup FROM table_name_88 WHERE league > 1 AND name = "brian deane" AND fa_cup < 1 | What is the smallest value for League Cup when the League number is greater than 1, no FA Cups, and Brian Deane scoring? | CREATE TABLE table_name_88 (league INTEGER, fa_cup VARCHAR, name VARCHAR) |
SELECT MIN(games_played) FROM table_18018214_3 | How many games did each team played? | CREATE TABLE table_18018214_3 (games_played INTEGER) |
SELECT date FROM table_name_87 WHERE h___a = "whalley range" | When did the game in whalley range take place? | CREATE TABLE table_name_87 (date VARCHAR, h___a VARCHAR) |
SELECT Name, Birth_Date FROM people ORDER BY Name | List the names and birth dates of people in ascending alphabetical order of name. | CREATE TABLE people (Name VARCHAR, Birth_Date VARCHAR) |
SELECT resolution FROM table_name_87 WHERE official_website = "ketftv.com" AND callsign = "kldo-dt2" | Name the resolution for ketftv.com and callsign of kldo-dt2 | CREATE TABLE table_name_87 (resolution VARCHAR, official_website VARCHAR, callsign VARCHAR) |
SELECT state FROM table_name_66 WHERE royal_house = "ying" | Which state has a royal house of Ying? | CREATE TABLE table_name_66 (state VARCHAR, royal_house VARCHAR) |
SELECT MIN(silver) FROM table_name_68 WHERE rank = 4 AND total > 1 | What is the lowest number of silver medals with a rank of 4 and total medals greater than 1? | CREATE TABLE table_name_68 (silver INTEGER, rank VARCHAR, total VARCHAR) |
SELECT COUNT(heat) FROM table_name_37 WHERE name = "sun yang" AND lane < 2 | What is the total heat number of sun yang, who has a lane less than 2? | CREATE TABLE table_name_37 (heat VARCHAR, name VARCHAR, lane VARCHAR) |
SELECT reason_for_change FROM table_2192067_4 WHERE date_successor_seated = "July 28, 1876" | what is the reason for change where the date the successor was seated was july 28, 1876? | CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR) |
SELECT MIN(year) FROM table_name_89 WHERE position = "c" AND player = "gary bergen" | What is the earliest year of c position player gary bergen? | CREATE TABLE table_name_89 (year INTEGER, position VARCHAR, player VARCHAR) |
SELECT building FROM table_name_13 WHERE year = "2013" AND floors < 20 | For the Year 2013 what building(s) had less than 20 Floors? | CREATE TABLE table_name_13 (building VARCHAR, year VARCHAR, floors VARCHAR) |
SELECT position FROM table_29857115_4 WHERE singer = "Serena Abrami" | What position was serena abrami in? | CREATE TABLE table_29857115_4 (position VARCHAR, singer VARCHAR) |
SELECT MIN(bronze) FROM table_name_2 WHERE ranking = "22nd of 32" AND gold > 4 | What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4? | CREATE TABLE table_name_2 (bronze INTEGER, ranking VARCHAR, gold VARCHAR) |
SELECT nationality FROM table_2679061_2 WHERE player = "Randy Heath" | What is the nationality when the player is randy heath? | CREATE TABLE table_2679061_2 (nationality VARCHAR, player VARCHAR) |
SELECT area__km²_ FROM table_29289372_1 WHERE income_classification = "1st Class" AND population__2010_ = 318676 | When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared? | CREATE TABLE table_29289372_1 (area__km²_ VARCHAR, income_classification VARCHAR, population__2010_ VARCHAR) |
SELECT AVG(attendance) FROM table_name_40 WHERE date = "november 29, 1981" AND week > 13 | What was the average number of attendance for the game on November 29, 1981 played after week 13? | CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR) |
SELECT nation FROM table_19730892_1 WHERE name = "Jeff Barker" | Name the nation where jeff barker is from | CREATE TABLE table_19730892_1 (nation VARCHAR, name VARCHAR) |
SELECT AVG(goalsagainst) FROM table_name_40 WHERE points = 108 AND lost < 14 | Goalsagainst that has a Points of 108, and a Lost smaller than 14 has what average? | CREATE TABLE table_name_40 (goalsagainst INTEGER, points VARCHAR, lost VARCHAR) |
SELECT team FROM table_21824695_8 WHERE average = 7757 | Which team has 7757 as the average? | CREATE TABLE table_21824695_8 (team VARCHAR, average VARCHAR) |
SELECT AVG(entries) FROM table_name_27 WHERE driver = "mark webber" AND points > 1014.5 | What is the average number of entries driver Mark Webber, who has more than 1014.5 points, has? | CREATE TABLE table_name_27 (entries INTEGER, driver VARCHAR, points VARCHAR) |
SELECT COUNT(losses) FROM table_name_94 WHERE wins < 6 AND draws < 0 | What is the total number of losses with less than 6 wins and less than 0 draws? | CREATE TABLE table_name_94 (losses VARCHAR, wins VARCHAR, draws VARCHAR) |
SELECT jockey FROM table_name_55 WHERE odds = "5/1" | Who has 5/1 odds? | CREATE TABLE table_name_55 (jockey VARCHAR, odds VARCHAR) |
SELECT winner FROM table_name_92 WHERE trainer = "gary simms" | Who won under Gary Simms? | CREATE TABLE table_name_92 (winner VARCHAR, trainer VARCHAR) |
SELECT round FROM table_name_16 WHERE venue = "galpharm stadium" | what round happened at galpharm stadium? | CREATE TABLE table_name_16 (round VARCHAR, venue VARCHAR) |
SELECT date FROM table_name_73 WHERE tie_no = "6" | What date has 6 as the tie no.? | CREATE TABLE table_name_73 (date VARCHAR, tie_no VARCHAR) |
SELECT edition FROM table_name_34 WHERE partner = "magdalena maleeva" | What edition had magdalena maleeva as partner? | CREATE TABLE table_name_34 (edition VARCHAR, partner VARCHAR) |
SELECT record FROM table_name_77 WHERE score = "21-16" | What was the record at the game with a score of 21-16? | CREATE TABLE table_name_77 (record VARCHAR, score VARCHAR) |
SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 | Which countries has the most number of airlines whose active status is 'Y'? | CREATE TABLE airlines (country VARCHAR, active VARCHAR) |
SELECT place FROM table_name_10 WHERE player = "nolan henke" | What place is Nolan Henke in? | CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR) |
SELECT production_code FROM table_22948559_1 WHERE written_by = "Paul Lieberstein" | Name the production code by paul lieberstein | CREATE TABLE table_22948559_1 (production_code VARCHAR, written_by VARCHAR) |
SELECT 2009 FROM table_name_65 WHERE 2008 = "a" AND tournament = "canada masters" | Which 2009 has a 2008 of A, and a Tournament of canada masters? | CREATE TABLE table_name_65 (tournament VARCHAR) |
SELECT opponent FROM table_name_5 WHERE date = "april 29" | Who was the opponent on April 29? | CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR) |
SELECT silver FROM table_name_7 WHERE bronze > 0 AND total < 54 AND nation = "spain" | How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals? | CREATE TABLE table_name_7 (silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR) |
SELECT Name FROM country WHERE continent = "Europe" AND Population = "80000" | What are the names of the countries that are in the continent of Europe and have a population of 80000? | CREATE TABLE country (Name VARCHAR, continent VARCHAR, Population VARCHAR) |
SELECT AVG(total) FROM table_name_59 WHERE championship < 1 | What is the average total for less than 1 championship? | CREATE TABLE table_name_59 (total INTEGER, championship INTEGER) |
SELECT SUM(goals_for) FROM table_name_50 WHERE wins < 4 AND losses > 6 | How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6? | CREATE TABLE table_name_50 (goals_for INTEGER, wins VARCHAR, losses VARCHAR) |
SELECT AVG(myspace) FROM table_name_62 WHERE site = "linkedin" AND orkut > 3 | What myspace has linkedin as the site, with an orkit greater than 3? | CREATE TABLE table_name_62 (myspace INTEGER, site VARCHAR, orkut VARCHAR) |
SELECT high_assists FROM table_27733909_10 WHERE game = 75 | Who had the highest assists in game 75? | CREATE TABLE table_27733909_10 (high_assists VARCHAR, game VARCHAR) |
SELECT tournament FROM table_name_26 WHERE 2013 = "2r" AND 2006 = "1r" | What is the Tournament when the 2013 is 2r, and a 2006 is 1r? | CREATE TABLE table_name_26 (tournament VARCHAR) |
SELECT MIN(physician__gp_) & _specialist_ FROM table_name_76 WHERE all_nurses = 91 | What is the number of physicians in the region with an all nurses number of 91? | CREATE TABLE table_name_76 (_specialist_ VARCHAR, physician__gp_ INTEGER, all_nurses VARCHAR) |
SELECT domestic_box_office FROM table_2203760_4 WHERE foreign_box_office = "$26,600,000" | What was the domestic box office for the film that had a foreign box office of $26,600,000? | CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, foreign_box_office VARCHAR) |
SELECT game_site FROM table_24481478_1 WHERE attendance = 29753 | At which location did 29753 fans show up to watch the game? | CREATE TABLE table_24481478_1 (game_site VARCHAR, attendance VARCHAR) |
SELECT COUNT(avg) FROM table_name_45 WHERE rec < 26 AND player = "reggie brown" AND long < 40 | How many averages have recs smaller than 26, and a Player of reggie brown, and a Long smaller than 40? | CREATE TABLE table_name_45 (avg VARCHAR, long VARCHAR, rec VARCHAR, player VARCHAR) |
SELECT term_in_office FROM table_name_42 WHERE member = "hon peter morris" | What was the term of Hon Peter Morris? | CREATE TABLE table_name_42 (term_in_office VARCHAR, member VARCHAR) |
SELECT frequency FROM table_name_67 WHERE first_published = "april 27, 2010" | What is the frequency that the magazine issues that was first published on april 27, 2010? | CREATE TABLE table_name_67 (frequency VARCHAR, first_published VARCHAR) |
SELECT sensor_resolution FROM table_name_39 WHERE cpu_usage = "minimal" AND camera = "naturalpoint trackir 3 pro" | What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro? | CREATE TABLE table_name_39 (sensor_resolution VARCHAR, cpu_usage VARCHAR, camera VARCHAR) |
SELECT mens_doubles FROM table_28138035_4 WHERE mens_singles = "Dimitrij Ovtcharov" | Name the mens doubles for dimitrij ovtcharov | CREATE TABLE table_28138035_4 (mens_doubles VARCHAR, mens_singles VARCHAR) |
SELECT venue FROM table_name_33 WHERE date = "27 april 1964" | What was the venue of the game on 27 April 1964? | CREATE TABLE table_name_33 (venue VARCHAR, date VARCHAR) |
SELECT opponent FROM table_name_2 WHERE record = "5-2" | Who has a Record of 5-2? | CREATE TABLE table_name_2 (opponent VARCHAR, record VARCHAR) |
SELECT year FROM table_2333416_2 WHERE position = "78th" | What year did Ken Bouchard finish in 78th place? | CREATE TABLE table_2333416_2 (year VARCHAR, position VARCHAR) |
SELECT COUNT(to_par) FROM table_name_16 WHERE score = 70 - 75 - 76 = 221 | What is the total number of To Par, when Score is "70-75-76=221"? | CREATE TABLE table_name_16 (to_par VARCHAR, score VARCHAR) |
SELECT COUNT(runners) FROM table_name_55 WHERE placing > 1 | How many Runners have a Placing that isn't 1? | CREATE TABLE table_name_55 (runners VARCHAR, placing INTEGER) |
SELECT network FROM table_name_12 WHERE year > 2011 | Which network broadcasted the cup after 2011? | CREATE TABLE table_name_12 (network VARCHAR, year INTEGER) |
SELECT winner FROM table_name_87 WHERE stage = "16" | Who won stage 16? | CREATE TABLE table_name_87 (winner VARCHAR, stage VARCHAR) |
SELECT AVG(bronze) FROM table_name_9 WHERE total > 0 AND gold = 3 AND games > 6 | How many bronzes associated with over 0 total medals, 3 golds, and over 6 games? | CREATE TABLE table_name_9 (bronze INTEGER, games VARCHAR, total VARCHAR, gold VARCHAR) |
SELECT length FROM table_1773707_2 WHERE height = "mm (in)" | What are the lengths of the models that are mm (in) tall? | CREATE TABLE table_1773707_2 (length VARCHAR, height VARCHAR) |
SELECT wrestlers FROM table_name_71 WHERE event = "summer brawl 2006" | What wrestlers have summer brawl 2006 as the event? | CREATE TABLE table_name_71 (wrestlers VARCHAR, event VARCHAR) |
SELECT case_length FROM table_name_9 WHERE name = ".416 barrett" | A .416 barrett has which Case Length? | CREATE TABLE table_name_9 (case_length VARCHAR, name VARCHAR) |
SELECT MIN(attendance) FROM table_10646790_2 WHERE date = "December 7, 1969" | What was the minimum attendance on December 7, 1969? | CREATE TABLE table_10646790_2 (attendance INTEGER, date VARCHAR) |
SELECT name FROM pilot WHERE NOT pilot_id IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia') | find the name of pilots who did not win the matches held in the country of Australia. | CREATE TABLE MATCH (name VARCHAR, pilot_id VARCHAR, Winning_Pilot VARCHAR, country VARCHAR); CREATE TABLE pilot (name VARCHAR, pilot_id VARCHAR, Winning_Pilot VARCHAR, country VARCHAR) |
SELECT notes FROM table_name_96 WHERE location = "berlin" | What is the notes left for Berlin? | CREATE TABLE table_name_96 (notes VARCHAR, location VARCHAR) |
SELECT issue_date_s_ FROM table_name_44 WHERE artist = "andy gibb" | When was the song by Andy Gibb issued? | CREATE TABLE table_name_44 (issue_date_s_ VARCHAR, artist VARCHAR) |
SELECT MIN(attendance) FROM table_name_47 WHERE game = 6 | The game of 6 has what lowest attendance? | CREATE TABLE table_name_47 (attendance INTEGER, game VARCHAR) |
SELECT market_income_per_capita FROM table_22815568_3 WHERE status = "Distressed" AND unemployment_rate = "10.5%" | What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%? | CREATE TABLE table_22815568_3 (market_income_per_capita VARCHAR, status VARCHAR, unemployment_rate VARCHAR) |
SELECT tie_no FROM table_name_36 WHERE away_team = "tranmere rovers" | Which tie number had an away team of the Tranmere Rovers? | CREATE TABLE table_name_36 (tie_no VARCHAR, away_team VARCHAR) |
SELECT country FROM table_name_34 WHERE winner = "ole ellefsæter" | What country was ole ellefsæter from? | CREATE TABLE table_name_34 (country VARCHAR, winner VARCHAR) |
SELECT MAX(year) FROM table_name_50 WHERE delegate = "jennifer tarol barrientos" | Which Year jennifer tarol barrientos is in? | CREATE TABLE table_name_50 (year INTEGER, delegate VARCHAR) |
SELECT MAX(shts) FROM table_name_23 WHERE club = "san jose earthquakes" AND mins > 2700 | What is the largest number for SHTS for the San Jose earthquakes with MINS larger than 2700? | CREATE TABLE table_name_23 (shts INTEGER, club VARCHAR, mins VARCHAR) |
SELECT SUM(ngc_number) FROM table_name_16 WHERE constellation = "vela" | What is the sum of NGC numbers for Constellation vela? | CREATE TABLE table_name_16 (ngc_number INTEGER, constellation VARCHAR) |
SELECT COUNT(attendance) FROM table_name_42 WHERE result_f_a = "2–0" | Result F–A of 2–0 had what total number of attendance? | CREATE TABLE table_name_42 (attendance VARCHAR, result_f_a VARCHAR) |
SELECT date_s_ FROM table_name_14 WHERE winner = "virginia commonwealth rams" | What date did Virginia Commonwealth Rams win? | CREATE TABLE table_name_14 (date_s_ VARCHAR, winner VARCHAR) |
SELECT COUNT(gold) FROM table_name_61 WHERE silver < 1 AND nation = "slovakia" | What is the total number of gold medals of slovakia, which has less than 1 silver medal? | CREATE TABLE table_name_61 (gold VARCHAR, silver VARCHAR, nation VARCHAR) |
SELECT surface FROM table_name_38 WHERE mountain = "elk garden" | What is the surface of the mountain range that contains the Elk Garden Mountain? | CREATE TABLE table_name_38 (surface VARCHAR, mountain VARCHAR) |
SELECT COUNT(rank) FROM table_name_9 WHERE silver < 3 AND total < 2 AND bronze > 0 | What is the total number of ladies ranked who had less than 3 silvers, less than 2 total medals, and more than 0 bronze medals? | CREATE TABLE table_name_9 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR) |
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob' | Who are the friends of Bob? | CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR) |
SELECT torque FROM table_name_30 WHERE name = "1.9 diesel" AND capacity = "1905 cc" | What torque does 1.9 diesel with 1905 cc have? | CREATE TABLE table_name_30 (torque VARCHAR, name VARCHAR, capacity VARCHAR) |
SELECT T2.Delegate, T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District | Show the delegates and the names of county they belong to. | CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR) |
SELECT MIN(year) FROM table_name_25 WHERE result = "3" AND venue = "jarama" | What year has a result of 3 in the venue of Jarama. | CREATE TABLE table_name_25 (year INTEGER, result VARCHAR, venue VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.