instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Which School/Club Team does Andrew Jones play for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_64 WHERE player = "andrew jones" |
Write a SQL query that answers the following question: Which School/Club Team did not make it to round 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (school_club_team VARCHAR, round INTEGER) | SELECT school_club_team FROM table_name_5 WHERE round < 2 |
Write a SQL query that answers the following question: Which player is the 24 pick? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (player VARCHAR, pick VARCHAR) | SELECT player FROM table_name_16 WHERE pick = "24" |
Write a SQL query that answers the following question: What is the average round of the number 16 pick? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (round INTEGER, pick VARCHAR) | SELECT AVG(round) FROM table_name_72 WHERE pick = "16" |
Write a SQL query that answers the following question: How many games were lost where the win percentage is smaller than 16.7 and the played games is 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (lost VARCHAR, win__percentage VARCHAR, played VARCHAR) | SELECT COUNT(lost) FROM table_name_83 WHERE win__percentage < 16.7 AND played = 3 |
Write a SQL query that answers the following question: Where is pine valley? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (location VARCHAR, name VARCHAR) | SELECT location FROM table_name_23 WHERE name = "pine valley" |
Write a SQL query that answers the following question: What is augusta's low rank? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (rank INTEGER, location VARCHAR) | SELECT MIN(rank) FROM table_name_58 WHERE location = "augusta" |
Write a SQL query that answers the following question: Which Model has the GCM (kg) Technical Capacity of 42000? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (model VARCHAR, gcm__kg__technical_capacity VARCHAR) | SELECT model FROM table_name_52 WHERE gcm__kg__technical_capacity = "42000" |
Write a SQL query that answers the following question: Which Model has a GCM (kg) Technical Capacity of 35000, a GVM (kg) Technical Capacity of 16000, and Cummins Interact 6.0-euro III (turbo intercooler) for the Engine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (model VARCHAR, engine_make_capacity VARCHAR, gcm__kg__technical_capacity VARCHAR, gvm__kg__technical_capacity VARCHAR) | SELECT model FROM table_name_94 WHERE gcm__kg__technical_capacity = "35000" AND gvm__kg__technical_capacity = "16000" AND engine_make_capacity = "cummins interact 6.0-euro iii (turbo intercooler)" |
Write a SQL query that answers the following question: Which character won before 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (character VARCHAR, result VARCHAR, year VARCHAR) | SELECT character FROM table_name_44 WHERE result = "won" AND year < 2006 |
Write a SQL query that answers the following question: In 2004 who was favourite maa? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (character VARCHAR, category VARCHAR, year VARCHAR) | SELECT character FROM table_name_6 WHERE category = "favourite maa" AND year = 2004 |
Write a SQL query that answers the following question: What were the results after 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (result VARCHAR, year INTEGER) | SELECT result FROM table_name_33 WHERE year > 2004 |
Write a SQL query that answers the following question: In 2007 what category won? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (category VARCHAR, result VARCHAR, year VARCHAR) | SELECT category FROM table_name_62 WHERE result = "won" AND year < 2007 |
Write a SQL query that answers the following question: What's the D 48 √ when the D 40 √ is D 37? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (d_48_√ VARCHAR, d_40_√ VARCHAR) | SELECT d_48_√ FROM table_name_97 WHERE d_40_√ = "d 37" |
Write a SQL query that answers the following question: What's the D 42 √ when D 46 √ is majority→? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (d_42_√ VARCHAR, d_46_√ VARCHAR) | SELECT d_42_√ FROM table_name_14 WHERE d_46_√ = "majority→" |
Write a SQL query that answers the following question: What's the D 40 √ when D 43 √ is d 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (d_40_√ VARCHAR, d_43_√ VARCHAR) | SELECT d_40_√ FROM table_name_23 WHERE d_43_√ = "d 14" |
Write a SQL query that answers the following question: What's the D 42 √ when D 44 √ is majority→? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (d_42_√ VARCHAR, d_44_√ VARCHAR) | SELECT d_42_√ FROM table_name_59 WHERE d_44_√ = "majority→" |
Write a SQL query that answers the following question: What's the D 44 √ when D 46 √ is d 26? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (d_44_√ VARCHAR, d_46_√ VARCHAR) | SELECT d_44_√ FROM table_name_27 WHERE d_46_√ = "d 26" |
Write a SQL query that answers the following question: What's the D 42 √ when D 43 √ is r 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (d_42_√ VARCHAR, d_43_√ VARCHAR) | SELECT d_42_√ FROM table_name_13 WHERE d_43_√ = "r 5" |
Write a SQL query that answers the following question: How many benue houses have been founded? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (founded VARCHAR, house_name VARCHAR) | SELECT COUNT(founded) FROM table_name_67 WHERE house_name = "benue" |
Write a SQL query that answers the following question: When is the earliest year founded for houses named after the river benue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (founded INTEGER, named_after VARCHAR) | SELECT MIN(founded) FROM table_name_56 WHERE named_after = "river benue" |
Write a SQL query that answers the following question: What composition was founded in 1976? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (composition VARCHAR, founded VARCHAR) | SELECT composition FROM table_name_37 WHERE founded = 1976 |
Write a SQL query that answers the following question: What colours have a House Name of ogun? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (colours VARCHAR, house_name VARCHAR) | SELECT colours FROM table_name_93 WHERE house_name = "ogun" |
Write a SQL query that answers the following question: What's the average attendance on january 6, 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR) | SELECT AVG(attendance) FROM table_name_34 WHERE date = "january 6, 2008" |
Write a SQL query that answers the following question: What was the score when the spurs were the visitors? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (score VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_43 WHERE visitor = "spurs" |
Write a SQL query that answers the following question: What is the total GNIS Feature ID with a County of idaho? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (gnis_feature_id INTEGER, county VARCHAR) | SELECT SUM(gnis_feature_id) FROM table_name_64 WHERE county = "idaho" |
Write a SQL query that answers the following question: What is the lowest GNIS Feature ID from County of sheridan? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (gnis_feature_id INTEGER, county VARCHAR) | SELECT MIN(gnis_feature_id) FROM table_name_39 WHERE county = "sheridan" |
Write a SQL query that answers the following question: Which state has a Name of diamond lake, and a GNIS Feature ID of 1579127? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (state VARCHAR, name VARCHAR, gnis_feature_id VARCHAR) | SELECT state FROM table_name_91 WHERE name = "diamond lake" AND gnis_feature_id = 1579127 |
Write a SQL query that answers the following question: Who directed the episode written cyrus nowrasteh? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (directed_by VARCHAR, written_by VARCHAR) | SELECT directed_by FROM table_name_85 WHERE written_by = "cyrus nowrasteh" |
Write a SQL query that answers the following question: What is the Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (rank__pakistan_ VARCHAR, world_rank VARCHAR, height__m_ VARCHAR) | SELECT COUNT(rank__pakistan_) FROM table_name_72 WHERE world_rank < 11 AND height__m_ < 8126 |
Write a SQL query that answers the following question: Which 2006 tournament had a 4R performance in 2001? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (Id VARCHAR) | SELECT 2006 FROM table_name_96 WHERE 2001 = "4r" |
Write a SQL query that answers the following question: Which tournament had a performance of 1R in 2004 and 2R in 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (tournament VARCHAR) | SELECT tournament FROM table_name_79 WHERE 2004 = "1r" AND 1998 = "2r" |
Write a SQL query that answers the following question: Which 1998 tournament had a performance of 3R in 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (Id VARCHAR) | SELECT 1998 FROM table_name_14 WHERE 2007 = "3r" |
Write a SQL query that answers the following question: What's the name of the 2005 tournament that has a 1R in both 2006 and 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (Id VARCHAR) | SELECT 2005 FROM table_name_14 WHERE 2006 = "1r" AND 2002 = "1r" |
Write a SQL query that answers the following question: For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR) | SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = "83.4-84.4" AND debt_held_by_public__$billions_ < 7 OFFSET 552 |
Write a SQL query that answers the following question: For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (gross_debt_in_ VARCHAR, debt_held_by_public__$billions_ VARCHAR, as__percentage_of_gdp_low_high VARCHAR) | SELECT COUNT(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_11 WHERE debt_held_by_public__$billions_ > 236.8 AND as__percentage_of_gdp_low_high = "33.4" |
Write a SQL query that answers the following question: What player was selected in Round 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (player VARCHAR, round VARCHAR) | SELECT player FROM table_name_96 WHERE round = 6 |
Write a SQL query that answers the following question: What is the nationality of the player who played for the Peterborough Petes (OHL)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR) | SELECT nationality FROM table_name_6 WHERE college_junior_club_team__league_ = "peterborough petes (ohl)" |
Write a SQL query that answers the following question: Which round was Mike Peca (C) of Canada selected in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (round INTEGER, nationality VARCHAR, player VARCHAR) | SELECT SUM(round) FROM table_name_84 WHERE nationality = "canada" AND player = "mike peca (c)" |
Write a SQL query that answers the following question: What is the smallest grid for Ayrton Senna? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (grid INTEGER, driver VARCHAR) | SELECT MIN(grid) FROM table_name_21 WHERE driver = "ayrton senna" |
Write a SQL query that answers the following question: What is the Time/Retired for laps higher than 52 on a grid larger than 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_47 WHERE laps > 52 AND grid > 21 |
Write a SQL query that answers the following question: What is the sum of laps for grid 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (laps INTEGER, grid VARCHAR) | SELECT SUM(laps) FROM table_name_53 WHERE grid = 20 |
Write a SQL query that answers the following question: What is the most laps for Ayrton Senna? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR) | SELECT MAX(laps) FROM table_name_6 WHERE driver = "ayrton senna" |
Write a SQL query that answers the following question: what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (parallel_bars INTEGER, vault VARCHAR, floor_exercise VARCHAR, horizontal_bar VARCHAR) | SELECT SUM(parallel_bars) FROM table_name_87 WHERE floor_exercise > 9.137 AND horizontal_bar = 9.225 AND vault > 9.5 |
Write a SQL query that answers the following question: what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (floor_exercise INTEGER, pommel_horse VARCHAR, horizontal_bar VARCHAR) | SELECT MAX(floor_exercise) FROM table_name_81 WHERE pommel_horse = 9.65 AND horizontal_bar > 9.475 |
Write a SQL query that answers the following question: Which tournament had A in 2008, and a 1r in 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (tournament VARCHAR) | SELECT tournament FROM table_name_4 WHERE 2008 = "a" AND 2010 = "1r" |
Write a SQL query that answers the following question: What was the position for 2008, where 2012 was q1, and 2010 was 1r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (Id VARCHAR) | SELECT 2008 FROM table_name_12 WHERE 2012 = "q1" AND 2010 = "1r" |
Write a SQL query that answers the following question: Which venue has a Goal of 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (venue VARCHAR, goal VARCHAR) | SELECT venue FROM table_name_81 WHERE goal = 3 |
Write a SQL query that answers the following question: Which venue was used on 10 september 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_28 WHERE date = "10 september 2010" |
Write a SQL query that answers the following question: How many carries for the player with under 6 yards and an average of over 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (car VARCHAR, yards VARCHAR, avg VARCHAR) | SELECT COUNT(car) FROM table_name_48 WHERE yards < 6 AND avg > 5 |
Write a SQL query that answers the following question: What was the longest carry for kevin clemens with under 31 yards total? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (long INTEGER, player VARCHAR, yards VARCHAR) | SELECT MAX(long) FROM table_name_72 WHERE player = "kevin clemens" AND yards < 31 |
Write a SQL query that answers the following question: What was the attendance at Brunswick Street Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (crowd VARCHAR, venue VARCHAR) | SELECT COUNT(crowd) FROM table_name_42 WHERE venue = "brunswick street oval" |
Write a SQL query that answers the following question: What's listed as the First Day Cover Cancellation with a Date of Issue of 13 June 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (first_day_cover_cancellation VARCHAR, date_of_issue VARCHAR) | SELECT first_day_cover_cancellation FROM table_name_4 WHERE date_of_issue = "13 june 2005" |
Write a SQL query that answers the following question: What's the First Day Cover Cancellation with Denomination of $0.50 and Date of Issue as 13 June 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (first_day_cover_cancellation VARCHAR, denomination VARCHAR, date_of_issue VARCHAR) | SELECT first_day_cover_cancellation FROM table_name_68 WHERE denomination = "$0.50" AND date_of_issue = "13 june 2005" |
Write a SQL query that answers the following question: What's the Denomination listed for the Date of Issue 12 April 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (denomination VARCHAR, date_of_issue VARCHAR) | SELECT denomination FROM table_name_88 WHERE date_of_issue = "12 april 2005" |
Write a SQL query that answers the following question: Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (paper_type VARCHAR, denomination VARCHAR, date_of_issue VARCHAR) | SELECT paper_type FROM table_name_30 WHERE denomination = "$0.50" AND date_of_issue = "4 february 2005" |
Write a SQL query that answers the following question: What's the Date of Issue for Design of Katalin Kovats? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (date_of_issue VARCHAR, design VARCHAR) | SELECT date_of_issue FROM table_name_46 WHERE design = "katalin kovats" |
Write a SQL query that answers the following question: What was the lowest recorded record for a player with an average larger than 13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (rec INTEGER, avg INTEGER) | SELECT MIN(rec) FROM table_name_57 WHERE avg > 13 |
Write a SQL query that answers the following question: How many yards were averaged by the player that had a higher than 13 average with less than 18 long? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (yards INTEGER, long VARCHAR, avg VARCHAR) | SELECT AVG(yards) FROM table_name_94 WHERE long < 18 AND avg > 13 |
Write a SQL query that answers the following question: For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (passenger_fleet INTEGER, airline_holding VARCHAR, current_destinations VARCHAR) | SELECT MAX(passenger_fleet) FROM table_name_77 WHERE airline_holding = "wizz air" AND current_destinations < 83 |
Write a SQL query that answers the following question: Which alliance has a rank of 40? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (alliance__association VARCHAR, rank VARCHAR) | SELECT alliance__association FROM table_name_85 WHERE rank = 40 |
Write a SQL query that answers the following question: For airlines named Aeroflot Group, what is the alliance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (alliance__association VARCHAR, airline_holding VARCHAR) | SELECT alliance__association FROM table_name_11 WHERE airline_holding = "aeroflot group" |
Write a SQL query that answers the following question: In which year was a linebacker pick 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (year VARCHAR, position VARCHAR, pick VARCHAR) | SELECT year FROM table_name_4 WHERE position = "linebacker" AND pick = "17" |
Write a SQL query that answers the following question: What is the name of the cornerback from 1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (player_name VARCHAR, position VARCHAR, year VARCHAR) | SELECT player_name FROM table_name_42 WHERE position = "cornerback" AND year = 1997 |
Write a SQL query that answers the following question: What is the name of the player from after 1989 from Washington State? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (player_name VARCHAR, year VARCHAR, college VARCHAR) | SELECT player_name FROM table_name_48 WHERE year > 1989 AND college = "washington state" |
Write a SQL query that answers the following question: Which race has a Margin of 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (race VARCHAR, margin VARCHAR) | SELECT race FROM table_name_5 WHERE margin = "8" |
Write a SQL query that answers the following question: How many Runners have a Placing that isn't 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (runners VARCHAR, placing INTEGER) | SELECT COUNT(runners) FROM table_name_55 WHERE placing > 1 |
Write a SQL query that answers the following question: What is the lowest number of Runners that has a Placing that isn't 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (runners INTEGER, placing INTEGER) | SELECT MIN(runners) FROM table_name_12 WHERE placing < 1 |
Write a SQL query that answers the following question: What is the lowest Prize amount for the Irish Derby Race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (prize__ INTEGER, race VARCHAR) | SELECT MIN(prize__) AS £k_ FROM table_name_87 WHERE race = "irish derby" |
Write a SQL query that answers the following question: What was the mintage having an issue price of $1,099.99, artist being Pamela Stagg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (mintage INTEGER, issue_price VARCHAR, artist VARCHAR) | SELECT AVG(mintage) FROM table_name_62 WHERE issue_price = "$1,099.99" AND artist = "pamela stagg" |
Write a SQL query that answers the following question: What was the year that had an issue price of $1,295.95? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (year INTEGER, issue_price VARCHAR) | SELECT AVG(year) FROM table_name_31 WHERE issue_price = "$1,295.95" |
Write a SQL query that answers the following question: What was the average mintage for that of artist Celia Godkin, before the year 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (mintage INTEGER, artist VARCHAR, year VARCHAR) | SELECT AVG(mintage) FROM table_name_75 WHERE artist = "celia godkin" AND year < 2010 |
Write a SQL query that answers the following question: What was the away team score at Windy Hill? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_15 WHERE venue = "windy hill" |
Write a SQL query that answers the following question: Who was the home team at Lake Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_66 WHERE venue = "lake oval" |
Write a SQL query that answers the following question: On what date was the venue VFL Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_5 WHERE venue = "vfl park" |
Write a SQL query that answers the following question: Which team was the home team at Glenferrie Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_82 WHERE venue = "glenferrie oval" |
Write a SQL query that answers the following question: What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR) | SELECT date FROM table_name_49 WHERE opponent_in_the_final = "steffi graf" AND score_in_the_final = "2–6, 0–6" |
Write a SQL query that answers the following question: What was the surface where the outcome was winner on 12 march 1989? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (surface VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT surface FROM table_name_19 WHERE outcome = "winner" AND date = "12 march 1989" |
Write a SQL query that answers the following question: What was the outcome of the Tournament of lugano , switzerland wta virginia slims, against bonnie gadusek? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (outcome VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR) | SELECT outcome FROM table_name_68 WHERE tournament = "lugano , switzerland wta virginia slims" AND opponent_in_the_final = "bonnie gadusek" |
Write a SQL query that answers the following question: What is the outcome of the match against Sylvia Hanika on a hard (i) surface? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (outcome VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR) | SELECT outcome FROM table_name_75 WHERE opponent_in_the_final = "sylvia hanika" AND surface = "hard (i)" |
Write a SQL query that answers the following question: What player had numbers of 20 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (player VARCHAR, no_s_ VARCHAR) | SELECT player FROM table_name_67 WHERE no_s_ = "20" |
Write a SQL query that answers the following question: Tell me the height in ft for 1999-2004 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (height_in_ft VARCHAR, years_for_rockets VARCHAR) | SELECT height_in_ft FROM table_name_47 WHERE years_for_rockets = "1999-2004" |
Write a SQL query that answers the following question: Tell me the number for height in ft of 6-7 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (no_s_ VARCHAR, height_in_ft VARCHAR) | SELECT no_s_ FROM table_name_18 WHERE height_in_ft = "6-7" |
Write a SQL query that answers the following question: What player had a school of missouri | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (player VARCHAR, school_club_team_country VARCHAR) | SELECT player FROM table_name_13 WHERE school_club_team_country = "missouri" |
Write a SQL query that answers the following question: What pick # has a team from Rimouski Océanic? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (pick__number INTEGER, team_from VARCHAR) | SELECT AVG(pick__number) FROM table_name_26 WHERE team_from = "rimouski océanic" |
Write a SQL query that answers the following question: Who is the player from Hotchkiss School with a position of d? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (player VARCHAR, position VARCHAR, team_from VARCHAR) | SELECT player FROM table_name_45 WHERE position = "d" AND team_from = "hotchkiss school" |
Write a SQL query that answers the following question: What type is the sorrento to sapri course with a distance of km (mi)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (type VARCHAR, distance VARCHAR, course VARCHAR) | SELECT type FROM table_name_23 WHERE distance = "km (mi)" AND course = "sorrento to sapri" |
Write a SQL query that answers the following question: What type is the misurina to bassano del grappa course? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (type VARCHAR, course VARCHAR) | SELECT type FROM table_name_24 WHERE course = "misurina to bassano del grappa" |
Write a SQL query that answers the following question: What's the distance for the chieti to macerata course? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (distance VARCHAR, course VARCHAR) | SELECT distance FROM table_name_66 WHERE course = "chieti to macerata" |
Write a SQL query that answers the following question: Which is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (points INTEGER, car__number VARCHAR, make VARCHAR, driver VARCHAR) | SELECT MIN(points) FROM table_name_51 WHERE make = "chevrolet" AND driver = "sterling marlin" AND car__number < 14 |
Write a SQL query that answers the following question: Which is the lowest point value that had not only a Chevrolet car, but also a car number smaller than 24, total laps of 312, and a winning purse of $122,325? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (points INTEGER, winnings VARCHAR, laps VARCHAR, make VARCHAR, car__number VARCHAR) | SELECT MIN(points) FROM table_name_17 WHERE make = "chevrolet" AND car__number < 24 AND laps = 312 AND winnings = "$122,325" |
Write a SQL query that answers the following question: What is the location for the win against Johan Mparmpagiannis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (location VARCHAR, result VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_78 WHERE result = "win" AND opponent = "johan mparmpagiannis" |
Write a SQL query that answers the following question: What is the method against Björn Bregy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_29 WHERE opponent = "björn bregy" |
Write a SQL query that answers the following question: What is the method against Paula Mataele? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_26 WHERE opponent = "paula mataele" |
Write a SQL query that answers the following question: What is the date of the match in Vilnius, Lithuania? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR) | SELECT date FROM table_name_60 WHERE location = "vilnius, lithuania" |
Write a SQL query that answers the following question: What is the result against Errol Zimmerman on 2007-04-07? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (result VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT result FROM table_name_81 WHERE opponent = "errol zimmerman" AND date = "2007-04-07" |
Write a SQL query that answers the following question: What is the location of the match against Martinis Knyzelis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_75 WHERE opponent = "martinis knyzelis" |
Write a SQL query that answers the following question: What day is st kilda the home side? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_87 WHERE home_team = "st kilda" |
Write a SQL query that answers the following question: What is melbourne's away score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_29 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: What was the home team's score when Geelong was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_1 WHERE away_team = "geelong" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.