instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (launched VARCHAR, time_elapsed VARCHAR) | SELECT launched FROM table_name_31 WHERE time_elapsed = "1991 days (5 yr, 5 mo, 12 d)" |
Write a SQL query that answers the following question: With a Launched of 3 July 1998 what is the Closest approach? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (closest_approach VARCHAR, launched VARCHAR) | SELECT closest_approach FROM table_name_54 WHERE launched = "3 july 1998" |
Write a SQL query that answers the following question: What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (launched VARCHAR, spacecraft VARCHAR, time_elapsed VARCHAR) | SELECT launched FROM table_name_56 WHERE spacecraft = "ulysses" AND time_elapsed = "491 days (1 yr, 4 mo, 3 d)" |
Write a SQL query that answers the following question: What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (karen_handel VARCHAR, eric_johnson VARCHAR, undecided VARCHAR) | SELECT karen_handel FROM table_name_45 WHERE eric_johnson = "13%" AND undecided = "22%" |
Write a SQL query that answers the following question: In what poll is Nathan Deal at 13% and John Oxendine at 28%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (poll_source VARCHAR, nathan_deal VARCHAR, john_oxendine VARCHAR) | SELECT poll_source FROM table_name_49 WHERE nathan_deal = "13%" AND john_oxendine = "28%" |
Write a SQL query that answers the following question: What is Eric Johnson at in the poll where Karen Handel is at 12%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (eric_johnson VARCHAR, karen_handel VARCHAR) | SELECT eric_johnson FROM table_name_38 WHERE karen_handel = "12%" |
Write a SQL query that answers the following question: In what poll is John Oxendine at 32%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (poll_source VARCHAR, john_oxendine VARCHAR) | SELECT poll_source FROM table_name_67 WHERE john_oxendine = "32%" |
Write a SQL query that answers the following question: What is John Oxendine at in the poll where Karen Handel is at 38%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (john_oxendine VARCHAR, karen_handel VARCHAR) | SELECT john_oxendine FROM table_name_75 WHERE karen_handel = "38%" |
Write a SQL query that answers the following question: What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (karen_handel VARCHAR, poll_source VARCHAR, john_oxendine VARCHAR) | SELECT karen_handel FROM table_name_78 WHERE poll_source = "insideradvantage" AND john_oxendine = "15%" |
Write a SQL query that answers the following question: What was the 1991 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (score VARCHAR, year VARCHAR) | SELECT score FROM table_name_6 WHERE year = "1991" |
Write a SQL query that answers the following question: Where was the 1966 competition with a winner of Gary Cowan held? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (venue VARCHAR, winner VARCHAR, year VARCHAR) | SELECT venue FROM table_name_18 WHERE winner = "gary cowan" AND year = "1966" |
Write a SQL query that answers the following question: Who was the runner-up of the competition played at Minikahda Club? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (runner_up VARCHAR, venue VARCHAR) | SELECT runner_up FROM table_name_55 WHERE venue = "minikahda club" |
Write a SQL query that answers the following question: Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (year INTEGER, us_cham_rank VARCHAR, next_highest_spender VARCHAR, us_cham_spending VARCHAR) | SELECT MAX(year) FROM table_name_16 WHERE next_highest_spender = "aarp" AND us_cham_spending = "$39,805,000" AND us_cham_rank > 1 |
Write a SQL query that answers the following question: Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (us_cham_rank INTEGER, next_highest_spender VARCHAR, year VARCHAR) | SELECT MIN(us_cham_rank) FROM table_name_94 WHERE next_highest_spender = "national assn of realtors" AND year < 2012 |
Write a SQL query that answers the following question: Which Year is the lowest one that has a US Cham Rank smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (year INTEGER, us_cham_rank INTEGER) | SELECT MIN(year) FROM table_name_16 WHERE us_cham_rank < 1 |
Write a SQL query that answers the following question: What was the Score in Final of the Eckerd Open Tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (score_in_final VARCHAR, tournament_name VARCHAR) | SELECT score_in_final FROM table_name_21 WHERE tournament_name = "eckerd open" |
Write a SQL query that answers the following question: Who was the Partner in the United Airlines Tournament (1)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (partner VARCHAR, tournament_name VARCHAR) | SELECT partner FROM table_name_62 WHERE tournament_name = "united airlines tournament (1)" |
Write a SQL query that answers the following question: What was the Score in Final on February 19, 1989? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (score_in_final VARCHAR, date VARCHAR) | SELECT score_in_final FROM table_name_59 WHERE date = "february 19, 1989" |
Write a SQL query that answers the following question: What are the Points when the Place is 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (points VARCHAR, place VARCHAR) | SELECT points FROM table_name_91 WHERE place = 9 |
Write a SQL query that answers the following question: What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (place VARCHAR, singer VARCHAR, points VARCHAR) | SELECT COUNT(place) FROM table_name_88 WHERE singer = "mariza ikonomi" AND points > 20 |
Write a SQL query that answers the following question: With a Suited Match of 13:1, what is the Double Non-Suited Match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (Double VARCHAR, suited_match VARCHAR) | SELECT Double AS non_suited_match FROM table_name_74 WHERE suited_match = "13:1" |
Write a SQL query that answers the following question: What's the Suited Match with a 2.99% House Edge? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (suited_match VARCHAR, house_edge VARCHAR) | SELECT suited_match FROM table_name_44 WHERE house_edge = "2.99%" |
Write a SQL query that answers the following question: With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (Double VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR) | SELECT Double AS non_suited_match FROM table_name_99 WHERE non_suited_match = "3:1" AND house_edge = "3.53%" |
Write a SQL query that answers the following question: Name the Non-Suited Match that has greater than 6 Number of Decks. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (non_suited_match VARCHAR, number_of_decks INTEGER) | SELECT non_suited_match FROM table_name_60 WHERE number_of_decks > 6 |
Write a SQL query that answers the following question: Name the Suited & Non-Suited Match with a 2.99% for House Edge. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (Suited VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR) | SELECT Suited + non_suited_match FROM table_name_80 WHERE house_edge = "2.99%" |
Write a SQL query that answers the following question: With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (Double VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR) | SELECT Double AS non_suited_match FROM table_name_1 WHERE non_suited_match = "4:1" AND house_edge = "3.63%" |
Write a SQL query that answers the following question: Wins smaller than 0 had what sum of year? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (year INTEGER, wins INTEGER) | SELECT SUM(year) FROM table_name_16 WHERE wins < 0 |
Write a SQL query that answers the following question: Class of 125cc, and a Year smaller than 1966 had what lowest wins? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (wins INTEGER, class VARCHAR, year VARCHAR) | SELECT MIN(wins) FROM table_name_95 WHERE class = "125cc" AND year < 1966 |
Write a SQL query that answers the following question: Class of 500cc, and a Wins smaller than 0 had what average year? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (year INTEGER, class VARCHAR, wins VARCHAR) | SELECT AVG(year) FROM table_name_75 WHERE class = "500cc" AND wins < 0 |
Write a SQL query that answers the following question: What are the highest laps Kazuki Nakajima did with a Grid larger than 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (laps INTEGER, driver VARCHAR, grid VARCHAR) | SELECT MAX(laps) FROM table_name_58 WHERE driver = "kazuki nakajima" AND grid > 19 |
Write a SQL query that answers the following question: Which Constructor has a Grid of 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (constructor VARCHAR, grid VARCHAR) | SELECT constructor FROM table_name_87 WHERE grid = 17 |
Write a SQL query that answers the following question: Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR) | SELECT driver FROM table_name_37 WHERE grid > 2 AND constructor = "bmw sauber" AND time_retired = "+15.037" |
Write a SQL query that answers the following question: Participation as of actor, film editor has what average year? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (year INTEGER, participation_as VARCHAR) | SELECT AVG(year) FROM table_name_11 WHERE participation_as = "actor, film editor" |
Write a SQL query that answers the following question: What were the odds for the finish of 1/4h? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (odds VARCHAR, finish VARCHAR) | SELECT odds FROM table_name_14 WHERE finish = "1/4h" |
Write a SQL query that answers the following question: What is the lowest last quarter with a time of 1:53.2 and odds of *1.30? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (last_1_4 INTEGER, time VARCHAR, odds VARCHAR) | SELECT MIN(last_1_4) FROM table_name_30 WHERE time = "1:53.2" AND odds = "*1.30" |
Write a SQL query that answers the following question: What is the average number of Gold when the total is 11 with more than 2 silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (gold INTEGER, total VARCHAR, silver VARCHAR) | SELECT AVG(gold) FROM table_name_3 WHERE total = 11 AND silver > 2 |
Write a SQL query that answers the following question: What is the total rank with more than 0 silver and less than 2 medals total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (rank VARCHAR, total VARCHAR, silver VARCHAR) | SELECT COUNT(rank) FROM table_name_88 WHERE total < 2 AND silver > 0 |
Write a SQL query that answers the following question: What is the value of bronze with less than 2 in total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (bronze VARCHAR, total INTEGER) | SELECT bronze FROM table_name_91 WHERE total < 2 |
Write a SQL query that answers the following question: What number of rank has more than 2 medals in total with less than 4 bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (rank VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT COUNT(rank) FROM table_name_26 WHERE total > 2 AND bronze < 4 |
Write a SQL query that answers the following question: what is a building that is proposed and will have 32 floors? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (building VARCHAR, status VARCHAR, floors VARCHAR) | SELECT building FROM table_name_22 WHERE status = "proposed" AND floors = 32 |
Write a SQL query that answers the following question: What is the best time for marcus marshall? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (best INTEGER, name VARCHAR) | SELECT AVG(best) FROM table_name_21 WHERE name = "marcus marshall" |
Write a SQL query that answers the following question: What is the best time for a rusport driver with a qual 2 time of 1:10.166? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (best INTEGER, team VARCHAR, qual_2 VARCHAR) | SELECT MAX(best) FROM table_name_58 WHERE team = "rusport" AND qual_2 = "1:10.166" |
Write a SQL query that answers the following question: What team had a qual 2 time of 58.385? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (team VARCHAR, qual_2 VARCHAR) | SELECT team FROM table_name_92 WHERE qual_2 = "58.385" |
Write a SQL query that answers the following question: What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (university_of_dublin VARCHAR, industrial_and_commercial_panel VARCHAR, agricultural_panel VARCHAR, nominated_by_the_taoiseach VARCHAR) | SELECT COUNT(university_of_dublin) FROM table_name_94 WHERE agricultural_panel = 0 AND nominated_by_the_taoiseach > 0 AND industrial_and_commercial_panel < 0 |
Write a SQL query that answers the following question: What is the average for the agricultural panel that has a National University of Ireland less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (agricultural_panel INTEGER, national_university_of_ireland INTEGER) | SELECT AVG(agricultural_panel) FROM table_name_16 WHERE national_university_of_ireland < 0 |
Write a SQL query that answers the following question: What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (university_of_dublin INTEGER, administrative_panel VARCHAR, cultural_and_educational_panel VARCHAR) | SELECT MIN(university_of_dublin) FROM table_name_93 WHERE administrative_panel = 3 AND cultural_and_educational_panel < 2 |
Write a SQL query that answers the following question: What was the record at Memorial Stadium on September 19, 1965? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (record VARCHAR, game_site VARCHAR, date VARCHAR) | SELECT record FROM table_name_59 WHERE game_site = "memorial stadium" AND date = "september 19, 1965" |
Write a SQL query that answers the following question: What is the largest attendance at Memorial Stadium on December 12, 1965? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (attendance INTEGER, game_site VARCHAR, date VARCHAR) | SELECT MAX(attendance) FROM table_name_51 WHERE game_site = "memorial stadium" AND date = "december 12, 1965" |
Write a SQL query that answers the following question: Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (extra_points INTEGER, player VARCHAR, field_goals VARCHAR) | SELECT MAX(extra_points) FROM table_name_97 WHERE player = "herman everhardus" AND field_goals > 0 |
Write a SQL query that answers the following question: Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (extra_points INTEGER, touchdowns VARCHAR, points VARCHAR, player VARCHAR) | SELECT SUM(extra_points) FROM table_name_45 WHERE points < 12 AND player = "chuck bernard" AND touchdowns > 1 |
Write a SQL query that answers the following question: How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (field_goals INTEGER, extra_points VARCHAR, touchdowns VARCHAR, player VARCHAR) | SELECT SUM(field_goals) FROM table_name_45 WHERE touchdowns < 3 AND player = "willis ward" AND extra_points < 0 |
Write a SQL query that answers the following question: Whicih Extra points are the average ones that have Points smaller than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (extra_points INTEGER, points INTEGER) | SELECT AVG(extra_points) FROM table_name_35 WHERE points < 6 |
Write a SQL query that answers the following question: Which position is round 7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (position VARCHAR, round VARCHAR) | SELECT position FROM table_name_27 WHERE round = 7 |
Write a SQL query that answers the following question: Which college has a position of goaltender? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (college_junior_club_team__league_ VARCHAR, position VARCHAR) | SELECT college_junior_club_team__league_ FROM table_name_92 WHERE position = "goaltender" |
Write a SQL query that answers the following question: What is Darryl Fedorak's highest round? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (round INTEGER, player VARCHAR) | SELECT MAX(round) FROM table_name_91 WHERE player = "darryl fedorak" |
Write a SQL query that answers the following question: What nationality has a higher round than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (nationality VARCHAR, round INTEGER) | SELECT nationality FROM table_name_86 WHERE round > 8 |
Write a SQL query that answers the following question: What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (connection_with_australia VARCHAR, connection_with_america VARCHAR) | SELECT connection_with_australia FROM table_name_74 WHERE connection_with_america = "born in the u.s.; mother is u.s. citizen" |
Write a SQL query that answers the following question: What is the person born in Australia, rick springfield notable for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (notable_for VARCHAR, connection_with_australia VARCHAR, name VARCHAR) | SELECT notable_for FROM table_name_23 WHERE connection_with_australia = "born in australia" AND name = "rick springfield" |
Write a SQL query that answers the following question: What is the Born–Died for the person whose family moved to Australia at age 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (born___died VARCHAR, connection_with_australia VARCHAR) | SELECT born___died FROM table_name_93 WHERE connection_with_australia = "family moved to australia at age 6" |
Write a SQL query that answers the following question: What is the latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (date INTEGER, cores_per_die___dies_per_module VARCHAR, clock VARCHAR) | SELECT MAX(date) FROM table_name_64 WHERE cores_per_die___dies_per_module = "2 / 1" AND clock = "1.4-1.6ghz" |
Write a SQL query that answers the following question: Which process has a date later than 2000 and a Clock of 1.4-1.6ghz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (process VARCHAR, date VARCHAR, clock VARCHAR) | SELECT process FROM table_name_61 WHERE date > 2000 AND clock = "1.4-1.6ghz" |
Write a SQL query that answers the following question: Which date has a Clock of 0.8-1.6ghz? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (date VARCHAR, clock VARCHAR) | SELECT date FROM table_name_61 WHERE clock = "0.8-1.6ghz" |
Write a SQL query that answers the following question: What was the record on May 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_15 WHERE date = "may 21" |
Write a SQL query that answers the following question: On what date was the attendance 24,976? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_98 WHERE attendance = "24,976" |
Write a SQL query that answers the following question: On what date was the record 21-26? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_79 WHERE record = "21-26" |
Write a SQL query that answers the following question: How many were in attendance with a loss of Prokopec (2-7)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (attendance VARCHAR, loss VARCHAR) | SELECT attendance FROM table_name_21 WHERE loss = "prokopec (2-7)" |
Write a SQL query that answers the following question: Who was the opponent on May 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_74 WHERE date = "may 20" |
Write a SQL query that answers the following question: What is the tournament on Apr 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_13 WHERE date = "apr 6" |
Write a SQL query that answers the following question: What is the 1st prize of the tournament in Scotland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (location VARCHAR) | SELECT 1 AS st_prize___$__ FROM table_name_95 WHERE location = "scotland" |
Write a SQL query that answers the following question: What is the location of the Sea Pines Heritage Classic tournament? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (location VARCHAR, tournament VARCHAR) | SELECT location FROM table_name_68 WHERE tournament = "sea pines heritage classic" |
Write a SQL query that answers the following question: What is the score of the Tournament Players Championship? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (score VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_16 WHERE tournament = "tournament players championship" |
Write a SQL query that answers the following question: What is the 1st prize at the U.S. Open? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (tournament VARCHAR) | SELECT 1 AS st_prize___$__ FROM table_name_69 WHERE tournament = "u.s. open" |
Write a SQL query that answers the following question: What is the average first prize of the tournament with a score of 279 (–9)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (score VARCHAR) | SELECT AVG(1 AS st_prize___) AS $__ FROM table_name_47 WHERE score = "279 (–9)" |
Write a SQL query that answers the following question: What is the lowest first prize of the Mercedes Championships tournament in California? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (location VARCHAR, tournament VARCHAR) | SELECT MIN(1 AS st_prize___) AS $__ FROM table_name_18 WHERE location = "california" AND tournament = "mercedes championships" |
Write a SQL query that answers the following question: What is the average capacity for the venue where the team kommunalnik played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (capacity INTEGER, team VARCHAR) | SELECT AVG(capacity) FROM table_name_29 WHERE team = "kommunalnik" |
Write a SQL query that answers the following question: What is the position of the team that played at the venue, Central, Gomel? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (position_in_1999 VARCHAR, venue VARCHAR) | SELECT position_in_1999 FROM table_name_71 WHERE venue = "central, gomel" |
Write a SQL query that answers the following question: What is the position of the team that played at the venue with more than 6,500 capacity? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (position_in_1999 VARCHAR, capacity INTEGER) | SELECT position_in_1999 FROM table_name_70 WHERE capacity > 6 OFFSET 500 |
Write a SQL query that answers the following question: What is the smallest number of assists with 70 Pims and less than 19 goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (assists INTEGER, pims VARCHAR, goals VARCHAR) | SELECT MIN(assists) FROM table_name_71 WHERE pims = 70 AND goals < 19 |
Write a SQL query that answers the following question: What is the smallest number of assists for Ben Duggan with less than 7 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (assists INTEGER, name VARCHAR, points VARCHAR) | SELECT MIN(assists) FROM table_name_17 WHERE name = "ben duggan" AND points < 7 |
Write a SQL query that answers the following question: In what Year was Rhode Island the National Champion? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (year VARCHAR, national_champion VARCHAR) | SELECT year FROM table_name_77 WHERE national_champion = "rhode island" |
Write a SQL query that answers the following question: What was the Runner-up in the Monroe County Sports Commission? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (runner_up VARCHAR, host VARCHAR) | SELECT runner_up FROM table_name_59 WHERE host = "monroe county sports commission" |
Write a SQL query that answers the following question: At what Location was the Runner-up TBD? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (location VARCHAR, runner_up VARCHAR) | SELECT location FROM table_name_3 WHERE runner_up = "tbd" |
Write a SQL query that answers the following question: At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (location VARCHAR, host VARCHAR, national_champion VARCHAR) | SELECT location FROM table_name_71 WHERE host = "robert morris university (illinois)" AND national_champion = "lindenwood" |
Write a SQL query that answers the following question: What was the Runner-up with Ohio as the National Champion in Tucson, AZ? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (runner_up VARCHAR, national_champion VARCHAR, location VARCHAR) | SELECT runner_up FROM table_name_53 WHERE national_champion = "ohio" AND location = "tucson, az" |
Write a SQL query that answers the following question: Which graphics spec has a VRAM spec of 512MB? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (graphics VARCHAR, vram VARCHAR) | SELECT graphics FROM table_name_43 WHERE vram = "512mb" |
Write a SQL query that answers the following question: What is the MSRP for the laptop with storage of 128-512 GB SSD? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (msrp VARCHAR, storage VARCHAR) | SELECT msrp FROM table_name_2 WHERE storage = "128-512 gb ssd" |
Write a SQL query that answers the following question: Name the opponent for game 5 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (opponent VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_25 WHERE game = 5 |
Write a SQL query that answers the following question: What status is shown for Cadeby? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (status VARCHAR, name VARCHAR) | SELECT status FROM table_name_17 WHERE name = "cadeby" |
Write a SQL query that answers the following question: What is the Former local authority for Ecclesfield? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (former_local_authority VARCHAR, name VARCHAR) | SELECT former_local_authority FROM table_name_96 WHERE name = "ecclesfield" |
Write a SQL query that answers the following question: What is the Status of Mexborough? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (status VARCHAR, name VARCHAR) | SELECT status FROM table_name_83 WHERE name = "mexborough" |
Write a SQL query that answers the following question: What is the score on December 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_36 WHERE date = "december 1" |
Write a SQL query that answers the following question: Which skip has Oliver Dupont as a second? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (skip VARCHAR, second VARCHAR) | SELECT skip FROM table_name_63 WHERE second = "oliver dupont" |
Write a SQL query that answers the following question: Which second's third is Jean-Michel Arsenault? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (second VARCHAR, third VARCHAR) | SELECT second FROM table_name_91 WHERE third = "jean-michel arsenault" |
Write a SQL query that answers the following question: Which skip's third is Steffen Walstad? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (skip VARCHAR, third VARCHAR) | SELECT skip FROM table_name_1 WHERE third = "steffen walstad" |
Write a SQL query that answers the following question: Which skip's second is Martin Hejhal? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (skip VARCHAR, second VARCHAR) | SELECT skip FROM table_name_51 WHERE second = "martin hejhal" |
Write a SQL query that answers the following question: Which skip's lead is Gordon McDougall? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (skip VARCHAR, lead VARCHAR) | SELECT skip FROM table_name_17 WHERE lead = "gordon mcdougall" |
Write a SQL query that answers the following question: Which second's skip is Chris Plys? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (second VARCHAR, skip VARCHAR) | SELECT second FROM table_name_10 WHERE skip = "chris plys" |
Write a SQL query that answers the following question: How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (poles INTEGER, points VARCHAR, class VARCHAR, team VARCHAR) | SELECT SUM(poles) FROM table_name_39 WHERE class = "125cc" AND team = "matteoni racing team" AND points > 3 |
Write a SQL query that answers the following question: How many Podiums have a Class of 250cc, and an F laps of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (podiums INTEGER, class VARCHAR, f_laps VARCHAR) | SELECT SUM(podiums) FROM table_name_18 WHERE class = "250cc" AND f_laps = 0 |
Write a SQL query that answers the following question: Team of elgin city, and a Highest smaller than 537 had what total number of average? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (average VARCHAR, team VARCHAR, highest VARCHAR) | SELECT COUNT(average) FROM table_name_20 WHERE team = "elgin city" AND highest < 537 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.