instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Which Record has a home of Nashville? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (record VARCHAR, home VARCHAR) | SELECT record FROM table_name_72 WHERE home = "nashville" |
Write a SQL query that answers the following question: Which Visitor played on January 17? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_67 WHERE date = "january 17" |
Write a SQL query that answers the following question: Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (record VARCHAR, game VARCHAR, visitor VARCHAR, decision VARCHAR) | SELECT record FROM table_name_59 WHERE visitor = "nashville" AND decision = "ellis" AND game > 32 |
Write a SQL query that answers the following question: Who was the visiting team in the game sometime after number 29 that had 18,584 atttendees? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (visitor VARCHAR, game VARCHAR, attendance VARCHAR) | SELECT visitor FROM table_name_28 WHERE game > 29 AND attendance > 18 OFFSET 584 |
Write a SQL query that answers the following question: If there is a VCPC of 75km/h (47mph) what is the VCA? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (vca_155 VARCHAR, vcpc VARCHAR) | SELECT vca_155 FROM table_name_7 WHERE vcpc = "75km/h (47mph)" |
Write a SQL query that answers the following question: If there is a VCRT of 7.62mm (0.3in) fn mag 60-20 machine gun, what is the VCTP of that? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (vctp VARCHAR, vcrt VARCHAR) | SELECT vctp FROM table_name_86 WHERE vcrt = "7.62mm (0.3in) fn mag 60-20 machine gun" |
Write a SQL query that answers the following question: What is the airing date for a modern drama with more than 21 episodes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR) | SELECT airing_date FROM table_name_21 WHERE genre = "modern drama" AND number_of_episodes > 21 |
Write a SQL query that answers the following question: What was the Constructor for the German Grand Prix Race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (constructor VARCHAR, race VARCHAR) | SELECT constructor FROM table_name_33 WHERE race = "german grand prix" |
Write a SQL query that answers the following question: What was the Constructor for the race that had Derek Warwick as its Fastest Lap? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (constructor VARCHAR, fastest_lap VARCHAR) | SELECT constructor FROM table_name_36 WHERE fastest_lap = "derek warwick" |
Write a SQL query that answers the following question: What Brands Hatch race had Niki Lauda as its Fastest Lap? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR) | SELECT race FROM table_name_78 WHERE fastest_lap = "niki lauda" AND location = "brands hatch" |
Write a SQL query that answers the following question: What was the Report for the Monaco race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (report VARCHAR, location VARCHAR) | SELECT report FROM table_name_32 WHERE location = "monaco" |
Write a SQL query that answers the following question: What was the nation that had 59 totals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (nation VARCHAR, total VARCHAR) | SELECT nation FROM table_name_75 WHERE total = 59 |
Write a SQL query that answers the following question: On what date did Ayrton Senna win at Imola? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (date VARCHAR, winning_driver VARCHAR, location VARCHAR) | SELECT date FROM table_name_92 WHERE winning_driver = "ayrton senna" AND location = "imola" |
Write a SQL query that answers the following question: Who had the fastest lap of the race that Ayrton Senna won on 23 April? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (fastest_lap VARCHAR, winning_driver VARCHAR, date VARCHAR) | SELECT fastest_lap FROM table_name_4 WHERE winning_driver = "ayrton senna" AND date = "23 april" |
Write a SQL query that answers the following question: Which Grand Prix is located in Jerez? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (grand_prix VARCHAR, location VARCHAR) | SELECT grand_prix FROM table_name_25 WHERE location = "jerez" |
Write a SQL query that answers the following question: Who had the pole position in Jerez? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (pole_position VARCHAR, location VARCHAR) | SELECT pole_position FROM table_name_82 WHERE location = "jerez" |
Write a SQL query that answers the following question: What is the report for the race that Ayrton Senna won on 27 August? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (report VARCHAR, winning_driver VARCHAR, date VARCHAR) | SELECT report FROM table_name_84 WHERE winning_driver = "ayrton senna" AND date = "27 august" |
Write a SQL query that answers the following question: What is the sum of gold medals for the United States with silver medal count greater than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (gold INTEGER, nation VARCHAR, silver VARCHAR) | SELECT SUM(gold) FROM table_name_26 WHERE nation = "united states" AND silver > 3 |
Write a SQL query that answers the following question: What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT COUNT(total) FROM table_name_72 WHERE silver > 6 AND nation = "norway" AND gold > 10 |
Write a SQL query that answers the following question: What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR) | SELECT MIN(bronze) FROM table_name_14 WHERE gold < 6 AND nation = "italy" AND total > 10 |
Write a SQL query that answers the following question: On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 medals and fewer than 2 bronze medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (silver INTEGER, bronze VARCHAR, rank VARCHAR, total VARCHAR) | SELECT AVG(silver) FROM table_name_38 WHERE rank > 7 AND total = 6 AND bronze < 2 |
Write a SQL query that answers the following question: For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (total INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT MAX(total) FROM table_name_4 WHERE bronze > 2 AND rank > 3 AND nation = "united states" AND silver > 3 |
Write a SQL query that answers the following question: Which player was active in Jazz in 1975-79? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (player VARCHAR, years_for_jazz VARCHAR) | SELECT player FROM table_name_36 WHERE years_for_jazz = "1975-79" |
Write a SQL query that answers the following question: What is the nationality for the guard position from Bowling Green? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_47 WHERE position = "guard" AND school_club_team = "bowling green" |
Write a SQL query that answers the following question: Who is the player from Auburn? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (player VARCHAR, school_club_team VARCHAR) | SELECT player FROM table_name_86 WHERE school_club_team = "auburn" |
Write a SQL query that answers the following question: Which player is a shooting guard? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (player VARCHAR, position VARCHAR) | SELECT player FROM table_name_81 WHERE position = "shooting guard" |
Write a SQL query that answers the following question: Which position was active in Jazz in 2002-03? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (position VARCHAR, years_for_jazz VARCHAR) | SELECT position FROM table_name_59 WHERE years_for_jazz = "2002-03" |
Write a SQL query that answers the following question: Name the total number of swimsuits when evening gown is 8.329 and average is less than 8.497 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (swimsuit VARCHAR, evening_gown VARCHAR, average VARCHAR) | SELECT COUNT(swimsuit) FROM table_name_39 WHERE evening_gown = 8.329 AND average < 8.497 |
Write a SQL query that answers the following question: Name the sum of swimsuit when the evening gown is less than 6.983 and the average is less than 7.362 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (swimsuit INTEGER, average VARCHAR, evening_gown VARCHAR) | SELECT SUM(swimsuit) FROM table_name_67 WHERE average < 7.362 AND evening_gown < 6.983 |
Write a SQL query that answers the following question: Name the most interview for minnesota and average more than 7.901 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (interview INTEGER, state VARCHAR, average VARCHAR) | SELECT MAX(interview) FROM table_name_7 WHERE state = "minnesota" AND average > 7.901 |
Write a SQL query that answers the following question: Name the highest Decile for roll more than 325 and area of warkworth | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (decile INTEGER, roll VARCHAR, area VARCHAR) | SELECT MAX(decile) FROM table_name_70 WHERE roll > 325 AND area = "warkworth" |
Write a SQL query that answers the following question: Name the authority for roll of 54 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (authority VARCHAR, roll VARCHAR) | SELECT authority FROM table_name_22 WHERE roll = 54 |
Write a SQL query that answers the following question: What was the score of Match 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (score1 VARCHAR, match VARCHAR) | SELECT score1 FROM table_name_69 WHERE match = 2 |
Write a SQL query that answers the following question: When did Essendon play at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_15 WHERE home_team = "essendon" |
Write a SQL query that answers the following question: What was Collingwood's score when they played against North Melbourne at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_12 WHERE away_team = "north melbourne" |
Write a SQL query that answers the following question: What was the home team score at Melbourne's away match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_77 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: How many people were in attendance at Hawthorn's home match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (crowd INTEGER, home_team VARCHAR) | SELECT MIN(crowd) FROM table_name_60 WHERE home_team = "hawthorn" |
Write a SQL query that answers the following question: what is the capital with the Voivodeship Separate city of białostockie? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (capital VARCHAR, voivodeship_separate_city VARCHAR) | SELECT capital FROM table_name_1 WHERE voivodeship_separate_city = "białostockie" |
Write a SQL query that answers the following question: between car plates of 80-84 what is the population in 1000 in year 1931? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR) | SELECT population_in_1000__1931_ FROM table_name_14 WHERE car_plates__since_1937_ = "80-84" |
Write a SQL query that answers the following question: tell me the population in 1000(1931) that has car plates since 1937 of 35-39. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR) | SELECT population_in_1000__1931_ FROM table_name_62 WHERE car_plates__since_1937_ = "35-39" |
Write a SQL query that answers the following question: tell me the name of the capital with an area of 20,4. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (capital VARCHAR, area_in_1000km²__1930_ VARCHAR) | SELECT capital FROM table_name_7 WHERE area_in_1000km²__1930_ = "20,4" |
Write a SQL query that answers the following question: When did they play against Wales? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_41 WHERE opponent = "wales" |
Write a SQL query that answers the following question: What was the result on 29/09/07? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_14 WHERE date = "29/09/07" |
Write a SQL query that answers the following question: What was the competition on 25/08/07? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_52 WHERE date = "25/08/07" |
Write a SQL query that answers the following question: What position is associated with a Time of 20:39.171? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (pos INTEGER, time VARCHAR) | SELECT AVG(pos) FROM table_name_42 WHERE time = "20:39.171" |
Write a SQL query that answers the following question: How many points associated with a Best time of 01:46.367? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (points INTEGER, best_time VARCHAR) | SELECT AVG(points) FROM table_name_76 WHERE best_time = "01:46.367" |
Write a SQL query that answers the following question: What is the total reg gp of Ilya Krikunov, who has a round of 7 and a pick number larger than 223? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (reg_gp VARCHAR, pick__number VARCHAR, rd__number VARCHAR, player VARCHAR) | SELECT COUNT(reg_gp) FROM table_name_44 WHERE rd__number = 7 AND player = "ilya krikunov" AND pick__number > 223 |
Write a SQL query that answers the following question: What is the total PI GP of the player with a pick number 49 and a reg gp less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR) | SELECT COUNT(pl_gp) FROM table_name_69 WHERE pick__number = 49 AND reg_gp < 0 |
Write a SQL query that answers the following question: What is the pick # of the player with a PI GP less than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (pick__number INTEGER, pl_gp INTEGER) | SELECT SUM(pick__number) FROM table_name_16 WHERE pl_gp < 0 |
Write a SQL query that answers the following question: What is the reg gp of the player with a round number less than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (reg_gp INTEGER, rd__number INTEGER) | SELECT SUM(reg_gp) FROM table_name_83 WHERE rd__number < 2 |
Write a SQL query that answers the following question: What is the average PI GP of the player from round 5 with a pick # larger than 151? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR) | SELECT AVG(pl_gp) FROM table_name_19 WHERE rd__number = 5 AND pick__number > 151 |
Write a SQL query that answers the following question: What constellation has a Declination ( J2000 ) of °32′39″? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (constellation VARCHAR, declination___j2000__ VARCHAR) | SELECT constellation FROM table_name_57 WHERE declination___j2000__ = "°32′39″" |
Write a SQL query that answers the following question: What is the lowest pick from Elitserien (Sweden)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (pick__number INTEGER, league_from VARCHAR) | SELECT MIN(pick__number) FROM table_name_15 WHERE league_from = "elitserien (sweden)" |
Write a SQL query that answers the following question: How many spectators were at the game where Richmond was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR) | SELECT SUM(crowd) FROM table_name_8 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: What is the location of the kanyakumari government medical college? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (location VARCHAR, college_name VARCHAR) | SELECT location FROM table_name_59 WHERE college_name = "kanyakumari government medical college" |
Write a SQL query that answers the following question: Where is the coimbatore affilation that was established in 1982? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (affiliation VARCHAR, estd VARCHAR, location VARCHAR) | SELECT affiliation FROM table_name_89 WHERE estd = "1982" AND location = "coimbatore" |
Write a SQL query that answers the following question: What is the location of the salem district? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (location VARCHAR, district VARCHAR) | SELECT location FROM table_name_16 WHERE district = "salem district" |
Write a SQL query that answers the following question: What is the location of the tiruchirappalli district? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (location VARCHAR, district VARCHAR) | SELECT location FROM table_name_73 WHERE district = "tiruchirappalli district" |
Write a SQL query that answers the following question: What is the district where the thanjavur medical college is located? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (district VARCHAR, college_name VARCHAR) | SELECT district FROM table_name_93 WHERE college_name = "thanjavur medical college" |
Write a SQL query that answers the following question: Where is the location of the coimbatore medical college? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (location VARCHAR, college_name VARCHAR) | SELECT location FROM table_name_42 WHERE college_name = "coimbatore medical college" |
Write a SQL query that answers the following question: What is the Time/Retired when the grid is larger than 9 and Rolf Stommelen is the driver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_25 WHERE grid > 9 AND driver = "rolf stommelen" |
Write a SQL query that answers the following question: What is the highest number of laps when the Time/Retired is differential? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (laps INTEGER, time_retired VARCHAR) | SELECT MAX(laps) FROM table_name_76 WHERE time_retired = "differential" |
Write a SQL query that answers the following question: Who is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_82 WHERE laps < 14 AND grid < 16 AND time_retired = "not classified" |
Write a SQL query that answers the following question: What is the average grid when the laps are smaller than 14 and Reine Wisell is the driver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (grid INTEGER, laps VARCHAR, driver VARCHAR) | SELECT AVG(grid) FROM table_name_69 WHERE laps < 14 AND driver = "reine wisell" |
Write a SQL query that answers the following question: Who is the entrant with a driver Damon Hill and a Renault RS8 3.0 V10 engine? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (entrant VARCHAR, engine VARCHAR, driver VARCHAR) | SELECT entrant FROM table_name_72 WHERE engine = "renault rs8 3.0 v10" AND driver = "damon hill" |
Write a SQL query that answers the following question: Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (constructor VARCHAR, rounds VARCHAR, engine VARCHAR) | SELECT constructor FROM table_name_2 WHERE rounds = "all" AND engine = "peugeot a12 ev5 3.0 v10" |
Write a SQL query that answers the following question: What kind of engine is in the car for Scuderia Ferrari that went all rounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (engine VARCHAR, rounds VARCHAR, entrant VARCHAR) | SELECT engine FROM table_name_28 WHERE rounds = "all" AND entrant = "scuderia ferrari" |
Write a SQL query that answers the following question: Who is the constructor of the 196 chassis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (constructor VARCHAR, chassis VARCHAR) | SELECT constructor FROM table_name_50 WHERE chassis = "196" |
Write a SQL query that answers the following question: Name the home with visitor of kings | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (home VARCHAR, visitor VARCHAR) | SELECT home FROM table_name_81 WHERE visitor = "kings" |
Write a SQL query that answers the following question: Name the total number of attendance when the cavaliers visited | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (attendance VARCHAR, visitor VARCHAR) | SELECT COUNT(attendance) FROM table_name_84 WHERE visitor = "cavaliers" |
Write a SQL query that answers the following question: Which mixed doubles was featured in 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (mixed_doubles VARCHAR, year VARCHAR) | SELECT mixed_doubles FROM table_name_93 WHERE year = 2006 |
Write a SQL query that answers the following question: In the games at corio oval, what was the highest crowd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval" |
Write a SQL query that answers the following question: In the match as corio oval, who was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_29 WHERE venue = "corio oval" |
Write a SQL query that answers the following question: How many communes associated with over 10 cantons and an area (Square km) of 1,589? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (communes INTEGER, cantons VARCHAR, area__square_km_ VARCHAR) | SELECT AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589 |
Write a SQL query that answers the following question: Which team won the game on January 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (decision VARCHAR, date VARCHAR) | SELECT decision FROM table_name_83 WHERE date = "january 12" |
Write a SQL query that answers the following question: Who was the home team against Geelong? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_70 WHERE away_team = "geelong" |
Write a SQL query that answers the following question: What was the attendance when the VFL played MCG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (crowd VARCHAR, venue VARCHAR) | SELECT COUNT(crowd) FROM table_name_70 WHERE venue = "mcg" |
Write a SQL query that answers the following question: Name the security forces with civilians of 67 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (security_forces VARCHAR, civilians VARCHAR) | SELECT security_forces FROM table_name_15 WHERE civilians = "67" |
Write a SQL query that answers the following question: Name the insurgents for civilians being 49 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (insurgents VARCHAR, civilians VARCHAR) | SELECT insurgents FROM table_name_75 WHERE civilians = "49" |
Write a SQL query that answers the following question: Name the security forces with civilians being 67 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (security_forces VARCHAR, civilians VARCHAR) | SELECT security_forces FROM table_name_81 WHERE civilians = "67" |
Write a SQL query that answers the following question: Name the security forces for 2009 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (security_forces VARCHAR, year VARCHAR) | SELECT security_forces FROM table_name_82 WHERE year = "2009" |
Write a SQL query that answers the following question: What tyre has a chassis of p57 p61? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (tyre VARCHAR, chassis VARCHAR) | SELECT tyre FROM table_name_85 WHERE chassis = "p57 p61" |
Write a SQL query that answers the following question: what is the highest laps when the grid is 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR) | SELECT MAX(laps) FROM table_name_94 WHERE grid = 1 |
Write a SQL query that answers the following question: How many athletes had a Swimming Time (pts) of 2:20.93 (1232)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (total VARCHAR, swimming_time__pts_ VARCHAR) | SELECT COUNT(total) FROM table_name_92 WHERE swimming_time__pts_ = "2:20.93 (1232)" |
Write a SQL query that answers the following question: What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (riding_penalties__pts_ VARCHAR, swimming_time__pts_ VARCHAR) | SELECT riding_penalties__pts_ FROM table_name_83 WHERE swimming_time__pts_ = "2:18.16 (1264)" |
Write a SQL query that answers the following question: Which owner has a description of Mark 1 pos and is dated 1956? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR) | SELECT owner_s_ FROM table_name_18 WHERE date = 1956 AND description = "mark 1 pos" |
Write a SQL query that answers the following question: Which owner has a description of Mark 1 CK and is dated 1953? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR) | SELECT owner_s_ FROM table_name_30 WHERE date = 1953 AND description = "mark 1 ck" |
Write a SQL query that answers the following question: Who was the athlete who had SEMI of 1:43.79? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (name_athlete VARCHAR, semi VARCHAR) | SELECT name_athlete FROM table_name_97 WHERE semi = "1:43.79" |
Write a SQL query that answers the following question: What were the final time for the swimmer on lane 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (final VARCHAR, lane VARCHAR) | SELECT final FROM table_name_1 WHERE lane = 4 |
Write a SQL query that answers the following question: What is the final score of the game at lambeau field? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (final_score VARCHAR, stadium VARCHAR) | SELECT final_score FROM table_name_21 WHERE stadium = "lambeau field" |
Write a SQL query that answers the following question: What rank is aliyya qadi with less than 1421 votes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (rank INTEGER, candidate_name VARCHAR, votes VARCHAR) | SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = "aliyya qadi" AND votes < 1421 |
Write a SQL query that answers the following question: Which candidate has more than 279 votes, rank less than 50, is ♀ and al-ahd? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (candidate_name VARCHAR, list VARCHAR, gender VARCHAR, votes VARCHAR, rank VARCHAR) | SELECT candidate_name FROM table_name_61 WHERE votes > 279 AND rank < 50 AND gender = "♀" AND list = "al-ahd" |
Write a SQL query that answers the following question: What is the first year that the Favorite Male Replacement category had Ben Vereen as a nominee? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (year INTEGER, category VARCHAR, nominee VARCHAR) | SELECT MIN(year) FROM table_name_48 WHERE category = "favorite male replacement" AND nominee = "ben vereen" |
Write a SQL query that answers the following question: What year was Kristin Chenoweth nominated in the category of outstanding actress in a musical? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (award_ceremony VARCHAR, category VARCHAR, nominee VARCHAR) | SELECT award_ceremony FROM table_name_52 WHERE category = "outstanding actress in a musical" AND nominee = "kristin chenoweth" |
Write a SQL query that answers the following question: What year was Aaron Tveit nominated in the Favorite Male Replacement category? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (year INTEGER, nominee VARCHAR, result VARCHAR, category VARCHAR) | SELECT AVG(year) FROM table_name_87 WHERE result = "nominated" AND category = "favorite male replacement" AND nominee = "aaron tveit" |
Write a SQL query that answers the following question: Tell me the sum of rank for placings of 58 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (rank INTEGER, placings VARCHAR) | SELECT SUM(rank) FROM table_name_39 WHERE placings = 58 |
Write a SQL query that answers the following question: Tell me the lowest placings for United Kingdom and rank less than 13 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (placings INTEGER, nation VARCHAR, rank VARCHAR) | SELECT MIN(placings) FROM table_name_30 WHERE nation = "united kingdom" AND rank < 13 |
Write a SQL query that answers the following question: I want to know the highest rank with placings more than 123 and points greater than 88.06 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (rank INTEGER, placings VARCHAR, points VARCHAR) | SELECT MAX(rank) FROM table_name_75 WHERE placings > 123 AND points > 88.06 |
Write a SQL query that answers the following question: Who is the drive for an Entrant of Scuderia Ambrosiana? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (driver VARCHAR, entrant VARCHAR) | SELECT driver FROM table_name_65 WHERE entrant = "scuderia ambrosiana" |
Write a SQL query that answers the following question: Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR) | SELECT rounds FROM table_name_72 WHERE entrant = "automobiles talbot-darracq" AND driver = "pierre levegh" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.