answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT home__2nd_leg_ FROM table_14219514_2 WHERE home__1st_leg_ = "Belgrano" | When belgrano is the home (1st leg) what is the home (2nd leg)? | CREATE TABLE table_14219514_2 (home__2nd_leg_ VARCHAR, home__1st_leg_ VARCHAR) |
SELECT SUM(tours), ranking_date FROM rankings GROUP BY ranking_date | Find the total number of tours for each ranking date. | CREATE TABLE rankings (ranking_date VARCHAR, tours INTEGER) |
SELECT COUNT(party) FROM table_2668347_14 WHERE candidates = "Thomas H. Hubbard (DR) 51.5% Simeon Ford (F) 48.4%" | how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%? | CREATE TABLE table_2668347_14 (party VARCHAR, candidates VARCHAR) |
SELECT COUNT(DISTINCT degree_summary_name) FROM Degree_Programs | How many different degree names are offered? | CREATE TABLE Degree_Programs (degree_summary_name VARCHAR) |
SELECT score FROM table_name_82 WHERE game > 66 AND march = 28 | what is the score when the game is higher than 66 on march 28? | CREATE TABLE table_name_82 (score VARCHAR, game VARCHAR, march VARCHAR) |
SELECT COUNT(high_rebounds) FROM table_22879262_7 WHERE team = "Minnesota" | what is the total number of high rebounds for minnesota? | CREATE TABLE table_22879262_7 (high_rebounds VARCHAR, team VARCHAR) |
SELECT score FROM table_name_89 WHERE tie_no = 6 | What was the score when the Tie no was 6? | CREATE TABLE table_name_89 (score VARCHAR, tie_no VARCHAR) |
SELECT AVG(area__km²_) FROM table_name_24 WHERE name = "glenella" AND population__2011_ < 522 | What was the area in Glenella with a population of 522 in 2011? | CREATE TABLE table_name_24 (area__km²_ INTEGER, name VARCHAR, population__2011_ VARCHAR) |
SELECT tongan FROM table_name_15 WHERE north_marquesan = "/haʔe/" | Which Tongan has a North Marquesan of /haʔe/? | CREATE TABLE table_name_15 (tongan VARCHAR, north_marquesan VARCHAR) |
SELECT location FROM table_name_59 WHERE founded > 1889 AND team_nickname = "broncos" | What is the location of the team nicknamed Broncos, which was founded after 1889? | CREATE TABLE table_name_59 (location VARCHAR, founded VARCHAR, team_nickname VARCHAR) |
SELECT status FROM table_29572583_20 WHERE seed = 14 | what is the status for seed 14 | CREATE TABLE table_29572583_20 (status VARCHAR, seed VARCHAR) |
SELECT date FROM table_name_31 WHERE course = "rome to naples" | On what date was the race course from Rome to Naples? | CREATE TABLE table_name_31 (date VARCHAR, course VARCHAR) |
SELECT assist_pass FROM table_name_85 WHERE score = "1-0" AND goal = "5" | Which Assist/pass has a Score of 1-0, and a Goal of 5? | CREATE TABLE table_name_85 (assist_pass VARCHAR, score VARCHAR, goal VARCHAR) |
SELECT conditions FROM table_24463470_1 WHERE circuit = "Athens" | What are the conditions for the athens circuit? | CREATE TABLE table_24463470_1 (conditions VARCHAR, circuit VARCHAR) |
SELECT country FROM table_name_17 WHERE area_in_m² = "3,170" | What is the country with area of 3,170 in m²? | CREATE TABLE table_name_17 (country VARCHAR, area_in_m² VARCHAR) |
SELECT dance FROM table_name_16 WHERE result = "safe" AND week = 1 | What Dance in Week 1 resulted in Safe? | CREATE TABLE table_name_16 (dance VARCHAR, result VARCHAR, week VARCHAR) |
SELECT AVG(lost) FROM table_name_99 WHERE games = 64 AND champs < 0 | Which Lost has Games of 64, and Champs smaller than 0? | CREATE TABLE table_name_99 (lost INTEGER, games VARCHAR, champs VARCHAR) |
SELECT player FROM table_name_28 WHERE year = "2001-2002" | Which player is featured for 2001-2002? | CREATE TABLE table_name_28 (player VARCHAR, year VARCHAR) |
SELECT constellation FROM table_1820752_1 WHERE spectral_type = "G1V" | If the spectral type is g1v, what is the constellation? | CREATE TABLE table_1820752_1 (constellation VARCHAR, spectral_type VARCHAR) |
SELECT release_date FROM table_name_2 WHERE type = "3d" AND genre = "moba" AND developer_s_ = "riot games" | When did Riot Games release their 3D MOBA game? | CREATE TABLE table_name_2 (release_date VARCHAR, developer_s_ VARCHAR, type VARCHAR, genre VARCHAR) |
SELECT MAX(bronze) FROM table_name_40 WHERE rank < 1 | What's the highest bronze with a less than 1 Rank? | CREATE TABLE table_name_40 (bronze INTEGER, rank INTEGER) |
SELECT score FROM table_18904831_7 WHERE record = "25-8" | What was the score in the game that had a record of 25-8? | CREATE TABLE table_18904831_7 (score VARCHAR, record VARCHAR) |
SELECT candidates FROM table_1341672_14 WHERE district = "Illinois 15" | Name the candidates for illinois 15 | CREATE TABLE table_1341672_14 (candidates VARCHAR, district VARCHAR) |
SELECT candidate_name FROM table_name_58 WHERE target_approach = "vaccine to amyloid-beta" | What is Candidate Name, when Target/Approach is "vaccine to amyloid-beta"? | CREATE TABLE table_name_58 (candidate_name VARCHAR, target_approach VARCHAR) |
SELECT constructor FROM table_name_71 WHERE driver = "shinji nakano" | Which constructor had Shinji Nakano as a driver? | CREATE TABLE table_name_71 (constructor VARCHAR, driver VARCHAR) |
SELECT DISTINCT breed_code, size_code FROM dogs | What are all the possible breed type and size type combinations? | CREATE TABLE dogs (breed_code VARCHAR, size_code VARCHAR) |
SELECT episode_title FROM table_191105_2 WHERE subject = "pronoun" | When pronoun is the subject what is the episode title? | CREATE TABLE table_191105_2 (episode_title VARCHAR, subject VARCHAR) |
SELECT country FROM table_1515346_2 WHERE player = "Keith Fergus" | For which country does Keith Fergus play? | CREATE TABLE table_1515346_2 (country VARCHAR, player VARCHAR) |
SELECT COUNT(_percentage_2001) FROM table_name_32 WHERE seats_2001 = 7 | What is the sum of % for 2001 if 2001 seats equals 7? | CREATE TABLE table_name_32 (_percentage_2001 VARCHAR, seats_2001 VARCHAR) |
SELECT plant_patent_number FROM table_name_63 WHERE habit = "standard" AND mutated_from = "yakata 7001" | What's the patent number when it was mutated from Yakata 7001 and a standard habit? | CREATE TABLE table_name_63 (plant_patent_number VARCHAR, habit VARCHAR, mutated_from VARCHAR) |
SELECT AVG(first_year) FROM table_name_31 WHERE notes = "replaced by us 12 when i-94 replaced us 12" AND final_year > 1961 | What is the average First year that has a Notes of replaced by us 12 when i-94 replaced us 12, and a Final year larger than 1961? | CREATE TABLE table_name_31 (first_year INTEGER, notes VARCHAR, final_year VARCHAR) |
SELECT season FROM table_name_63 WHERE division_three = "hampton park rangers" | Which Season was the Division Three Hampton Park Rangers champions? | CREATE TABLE table_name_63 (season VARCHAR, division_three VARCHAR) |
SELECT venue FROM table_name_36 WHERE date = "2002-03-07" | Where was the game held that was played on 2002-03-07? | CREATE TABLE table_name_36 (venue VARCHAR, date VARCHAR) |
SELECT score FROM table_name_26 WHERE date = "may 9" | What score has may 9 as the date? | CREATE TABLE table_name_26 (score VARCHAR, date VARCHAR) |
SELECT AVG(Money_Requested) FROM entrepreneur | What is the average money requested by all entrepreneurs? | CREATE TABLE entrepreneur (Money_Requested INTEGER) |
SELECT partner FROM table_2259502_2 WHERE year = 2012 | Who were the partners in 2012? | CREATE TABLE table_2259502_2 (partner VARCHAR, year VARCHAR) |
SELECT COUNT(season) FROM table_name_53 WHERE loses > 1 AND competition = "fiba europe cup" AND wins < 4 | How many seasons have Losses larger than 1, and a Competition of fiba europe cup, and Wins smaller than 4? | CREATE TABLE table_name_53 (season VARCHAR, wins VARCHAR, loses VARCHAR, competition VARCHAR) |
SELECT address FROM table_name_42 WHERE year = "1974" | What was the address in 1974? | CREATE TABLE table_name_42 (address VARCHAR, year VARCHAR) |
SELECT joined FROM table_16168849_1 WHERE nickname = "Blue Hose" | Name the joined for blue hose | CREATE TABLE table_16168849_1 (joined VARCHAR, nickname VARCHAR) |
SELECT SUM(position) FROM table_name_88 WHERE lost < 14 AND goal_difference = "+1" AND drawn > 15 | what is the position when lot is less than 14, goal difference is +1 and drawn is more than 15? | CREATE TABLE table_name_88 (position INTEGER, drawn VARCHAR, lost VARCHAR, goal_difference VARCHAR) |
SELECT AVG(laps) FROM table_name_6 WHERE constructor = "arrows" AND driver = "mika salo" AND grid > 13 | What is the average number of laps for mika salo's arrows car with a grid over 13? | CREATE TABLE table_name_6 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR) |
SELECT bronze FROM table_name_52 WHERE year = 1998 | What's the Bronze with the Year of 1998? | CREATE TABLE table_name_52 (bronze VARCHAR, year VARCHAR) |
SELECT nationality FROM table_name_31 WHERE round = 5 | What is the nationality of the player from round 5? | CREATE TABLE table_name_31 (nationality VARCHAR, round VARCHAR) |
SELECT joined FROM table_10577579_2 WHERE institution = "Tougaloo College" | What is the year the institution Tougaloo College joined? | CREATE TABLE table_10577579_2 (joined VARCHAR, institution VARCHAR) |
SELECT represents FROM table_26301697_2 WHERE hometown = "Los Alcarrizos" | Name the represents for los alcarrizos | CREATE TABLE table_26301697_2 (represents VARCHAR, hometown VARCHAR) |
SELECT COUNT(*) FROM Activity | How many activities do we have? | CREATE TABLE Activity (Id VARCHAR) |
SELECT winner FROM table_name_89 WHERE _number_of_weeks < 13 AND third_place = "robert kudelski" | Who won when robert kudelski finished with under 13 weeks? | CREATE TABLE table_name_89 (winner VARCHAR, _number_of_weeks VARCHAR, third_place VARCHAR) |
SELECT outcome FROM table_name_75 WHERE opponent_in_the_final = "sylvia hanika" AND surface = "hard (i)" | What is the outcome of the match against Sylvia Hanika on a hard (i) surface? | CREATE TABLE table_name_75 (outcome VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR) |
SELECT max_1_min_wind_mph__km_h_ FROM table_name_57 WHERE min_press___mbar__ = "997" | What is the max 1-min wind mph when the minimum press is 997? | CREATE TABLE table_name_57 (max_1_min_wind_mph__km_h_ VARCHAR, min_press___mbar__ VARCHAR) |
SELECT SUM(goals_scored) FROM table_name_31 WHERE club = "utenis utena" AND wins < 8 | How many goals scored have utenis utena as the club, with wins less than 8? | CREATE TABLE table_name_31 (goals_scored INTEGER, club VARCHAR, wins VARCHAR) |
SELECT released FROM table_1620397_2 WHERE author = "Pat Mills" | Name the released for pat mills | CREATE TABLE table_1620397_2 (released VARCHAR, author VARCHAR) |
SELECT opponent FROM table_name_94 WHERE rank = "4" | What is the Opponent that has a Rank of 4? | CREATE TABLE table_name_94 (opponent VARCHAR, rank VARCHAR) |
SELECT round FROM table_name_86 WHERE series = "5th place" AND season = "2006–07" | What is the Round when the series shows 5th place, and a Season of 2006–07? | CREATE TABLE table_name_86 (round VARCHAR, series VARCHAR, season VARCHAR) |
SELECT AVG(stories) FROM table_name_30 WHERE completed > 2003 AND rank = "16" | Name the average stories done after 2003 with a 16 rank | CREATE TABLE table_name_30 (stories INTEGER, completed VARCHAR, rank VARCHAR) |
SELECT date FROM table_name_21 WHERE race = "new zealand grand prix" | What is the date of the race for the new zealand grand prix? | CREATE TABLE table_name_21 (date VARCHAR, race VARCHAR) |
SELECT age_groups FROM table_name_40 WHERE sport = "figure skating" | What is the age group for figure skating? | CREATE TABLE table_name_40 (age_groups VARCHAR, sport VARCHAR) |
SELECT opponent_in_the_final FROM table_name_52 WHERE date = "july 4, 2005" | Name the Opponent in the final on july 4, 2005? | CREATE TABLE table_name_52 (opponent_in_the_final VARCHAR, date VARCHAR) |
SELECT Winery FROM WINE GROUP BY Winery HAVING COUNT(*) >= 4 | Find the wineries that have at least four wines. | CREATE TABLE WINE (Winery VARCHAR) |
SELECT content FROM table_15887683_1 WHERE television_service = "LA7" | What is the content of la7 television service? | CREATE TABLE table_15887683_1 (content VARCHAR, television_service VARCHAR) |
SELECT t1.model FROM car_names AS t1 JOIN cars_data AS t2 ON t1.makeid = t2.id ORDER BY t2.mpg DESC LIMIT 1 | What is the car model with the highest mpg ? | CREATE TABLE cars_data (id VARCHAR, mpg VARCHAR); CREATE TABLE car_names (model VARCHAR, makeid VARCHAR) |
SELECT location_attendance FROM table_27902171_6 WHERE team = "Utah Jazz" | What location with it's corresponding attendance was the game against Utah Jazz? | CREATE TABLE table_27902171_6 (location_attendance VARCHAR, team VARCHAR) |
SELECT team FROM table_name_28 WHERE pick > 30 AND position = "c" AND round > 4 | Name the team for pick more than 30 and position of c with round more than 4 | CREATE TABLE table_name_28 (team VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR) |
SELECT COUNT(rank) FROM table_name_94 WHERE places = "233" AND sp + fs < 27 | What is the rank when 233 shows for places and SP+FS smaller than 27? | CREATE TABLE table_name_94 (rank VARCHAR, places VARCHAR, sp VARCHAR, fs VARCHAR) |
SELECT MIN(bronze) FROM table_name_83 WHERE "total" > 10 AND silver > 0 AND rank = "total" | What is the lowest Bronze, when Total is greater than 10, when Silver is greater than 0, and when Rank is "Total"? | CREATE TABLE table_name_83 (bronze INTEGER, rank VARCHAR, silver VARCHAR) |
SELECT high_points FROM table_27902171_6 WHERE team = "Utah Jazz" | Who had highest points during game against the Utah Jazz? | CREATE TABLE table_27902171_6 (high_points VARCHAR, team VARCHAR) |
SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01" | Find the ids of orders which are shipped after 2000-01-01. | CREATE TABLE shipments (order_id VARCHAR, shipment_date INTEGER) |
SELECT date FROM table_name_62 WHERE away_team = "brentford" | What is Date, when Away Team is "Brentford"? | CREATE TABLE table_name_62 (date VARCHAR, away_team VARCHAR) |
SELECT pba_team FROM table_name_68 WHERE college = "mlqu" | Who is the PBA team with Mlqu college? | CREATE TABLE table_name_68 (pba_team VARCHAR, college VARCHAR) |
SELECT region_4 FROM table_1337525_1 WHERE complete_series = "The Complete Fifth Series" | Name the region 4 for the complete fifth series | CREATE TABLE table_1337525_1 (region_4 VARCHAR, complete_series VARCHAR) |
SELECT game FROM table_18894744_5 WHERE date = "June 7" | Name the game for june 7 | CREATE TABLE table_18894744_5 (game VARCHAR, date VARCHAR) |
SELECT party FROM table_name_19 WHERE net_gain_loss = "-2" | Which party has a net gain/loss of -2? | CREATE TABLE table_name_19 (party VARCHAR, net_gain_loss VARCHAR) |
SELECT AVG(grid) FROM table_name_27 WHERE rider = "shinya nakano" AND laps < 21 | What is the average Grid, when Rider is Shinya Nakano, and when Laps is less than 21? | CREATE TABLE table_name_27 (grid INTEGER, rider VARCHAR, laps VARCHAR) |
SELECT pole_position FROM table_25459168_2 WHERE supporting = "USAC National Midget Series" | Who got the pole position if the supporting is USAC National Midget Series? | CREATE TABLE table_25459168_2 (pole_position VARCHAR, supporting VARCHAR) |
SELECT MAX(money___) AS $__ FROM table_name_57 WHERE score = 69 - 74 - 70 - 73 = 286 | What is the Money ($) of the game with a score of 69-74-70-73=286? | CREATE TABLE table_name_57 (money___ INTEGER, score VARCHAR) |
SELECT MAX(rank) FROM table_name_8 WHERE name = "john curry" AND points > 338.43 | Which Rank has a Name of john curry, and Points larger than 338.43? | CREATE TABLE table_name_8 (rank INTEGER, name VARCHAR, points VARCHAR) |
SELECT races FROM table_name_6 WHERE podiums = "2" | Which races have #2 podiums? | CREATE TABLE table_name_6 (races VARCHAR, podiums VARCHAR) |
SELECT semifinalists FROM table_name_52 WHERE week = "may 12" | Who are the Semifinalists, when the Week is May 12? | CREATE TABLE table_name_52 (semifinalists VARCHAR, week VARCHAR) |
SELECT school FROM table_name_50 WHERE team = "minnesota twins" AND position = "ss" | From which school did the Minnesota Twins SS come from? | CREATE TABLE table_name_50 (school VARCHAR, team VARCHAR, position VARCHAR) |
SELECT record FROM table_name_47 WHERE date = "february 10" | What is the Record from February 10? | CREATE TABLE table_name_47 (record VARCHAR, date VARCHAR) |
SELECT score FROM table_name_21 WHERE opponent_in_the_final = "ashley harkleroad" | In the final against Ashley Harkleroad what was the score? | CREATE TABLE table_name_21 (score VARCHAR, opponent_in_the_final VARCHAR) |
SELECT MAX(round) FROM table_name_7 WHERE pick < 10 AND name = "tory nixon" | Which Round is the highest one that has a Pick smaller than 10, and a Name of tory nixon? | CREATE TABLE table_name_7 (round INTEGER, pick VARCHAR, name VARCHAR) |
SELECT interview FROM table_11690135_1 WHERE evening_gown = "9.78" | Who had an evening gown score of 9.78? | CREATE TABLE table_11690135_1 (interview VARCHAR, evening_gown VARCHAR) |
SELECT AVG(week) FROM table_name_31 WHERE opponent = "cleveland browns" | What week did Cleveland Browns played? | CREATE TABLE table_name_31 (week INTEGER, opponent VARCHAR) |
SELECT nation_of_citizenship FROM table_name_12 WHERE year_of_award > 2011 | What is the nation of citizenship for athletes later than 2011 year of award? | CREATE TABLE table_name_12 (nation_of_citizenship VARCHAR, year_of_award INTEGER) |
SELECT opponent_in_the_final FROM table_name_75 WHERE date = "may 8, 2006" | Who was the opponent on May 8, 2006? | CREATE TABLE table_name_75 (opponent_in_the_final VARCHAR, date VARCHAR) |
SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928 | Show names of ships involved in a mission launched after 1928. | CREATE TABLE mission (Ship_ID VARCHAR, Launched_Year INTEGER); CREATE TABLE ship (Name VARCHAR, Ship_ID VARCHAR) |
SELECT main_date FROM table_name_81 WHERE number_of_fixtures = 20 | What was the main date of the round with 20 fixtures? | CREATE TABLE table_name_81 (main_date VARCHAR, number_of_fixtures VARCHAR) |
SELECT venue FROM table_name_89 WHERE away_team = "hawthorn" | Where did Hawthorn play as the away team? | CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR) |
SELECT margin_of_victory FROM table_name_78 WHERE runner_s__up = "amy alcott" AND winning_score = –9(72 - 68 - 67 = 207) | what is the margin of victory when the runner-up is amy alcott and the winning score is –9 (72-68-67=207)? | CREATE TABLE table_name_78 (margin_of_victory VARCHAR, runner_s__up VARCHAR, winning_score VARCHAR) |
SELECT to_par FROM table_name_13 WHERE score = "1 up" | How many strokes to par when the score is 1 up? | CREATE TABLE table_name_13 (to_par VARCHAR, score VARCHAR) |
SELECT MIN(west_indies) FROM table_name_92 WHERE holder_at_the_end_of_the_series = "west indies" AND england > 1 AND season = "1991" | When west indes was a holder at the end of the series for the 1991 season with an england greater than 1, what is the smallest west indies? | CREATE TABLE table_name_92 (west_indies INTEGER, season VARCHAR, holder_at_the_end_of_the_series VARCHAR, england VARCHAR) |
SELECT MAX(played) FROM table_name_85 WHERE scored > 25 AND position = 1 AND draws < 5 | Which Played has a Scored larger than 25 and a Position of 1, and Draws smaller than 5? | CREATE TABLE table_name_85 (played INTEGER, draws VARCHAR, scored VARCHAR, position VARCHAR) |
SELECT date FROM table_name_80 WHERE location = "michie stadium • west point, ny" | What is the Date for the game at michie stadium • west point, ny? | CREATE TABLE table_name_80 (date VARCHAR, location VARCHAR) |
SELECT MAX(game) FROM table_name_26 WHERE opponent = "oakland seals" AND record = "27-30-6" AND date > 7 | What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7? | CREATE TABLE table_name_26 (game INTEGER, date VARCHAR, opponent VARCHAR, record VARCHAR) |
SELECT bleeding_time FROM table_14006_1 WHERE condition = "Factor V deficiency" | what's the bleeding time with condition being factor v deficiency | CREATE TABLE table_14006_1 (bleeding_time VARCHAR, condition VARCHAR) |
SELECT MIN(_number) FROM table_24535095_2 WHERE listed_owner_s_ = "Pete Raymer" | Name the least listed owner for pete raymer | CREATE TABLE table_24535095_2 (_number INTEGER, listed_owner_s_ VARCHAR) |
SELECT circuit FROM table_name_86 WHERE constructor = "ferrari" AND fastest_lap = "alberto ascari" | Which circuit did Alberto Ascari set the fastest lap time with a Ferrari? | CREATE TABLE table_name_86 (circuit VARCHAR, constructor VARCHAR, fastest_lap VARCHAR) |
SELECT away_team AS score FROM table_name_24 WHERE away_team = "north melbourne" | What is the Away Team score of North Melbourne? | CREATE TABLE table_name_24 (away_team VARCHAR) |
SELECT 3 AS rd_component FROM table_name_49 WHERE bp_azeo__˚c_ = "62.1" | Tell me the 3rd component for bp azeo of 62.1 | CREATE TABLE table_name_49 (bp_azeo__˚c_ VARCHAR) |
SELECT 2008 FROM table_name_87 WHERE 2001 = "wta premier 5 tournaments" | Tell me the 2008 for when 2001 of wta premier 5 tournaments | CREATE TABLE table_name_87 (Id VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.